Timothy Pearson 13 years ago
commit e5d52a2b30

@ -2,7 +2,7 @@
%if "%{?version}" == "" %if "%{?version}" == ""
%define version 3.5.12 %define version 3.5.12
%endif %endif
%define release 5 %define release 6
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr" %if "%{?_prefix}" != "/usr"
@ -24,8 +24,10 @@ Vendor: Trinity Project
URL: http://www.trinitydesktop.org/ URL: http://www.trinitydesktop.org/
Packager: Francois Andriot <francois.andriot@free.fr> Packager: Francois Andriot <francois.andriot@free.fr>
Source0: arts-%{version}.tar.gz
Prefix: %{_prefix} Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: arts-%{version}.tar.gz
BuildRequires: tqtinterface-devel BuildRequires: tqtinterface-devel
BuildRequires: audiofile-devel BuildRequires: audiofile-devel
@ -69,7 +71,7 @@ Development files for %{name}
%setup -q -n dependencies/arts %setup -q -n dependencies/arts
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" %__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common" %__make -f "admin/Makefile.common"
%build %build
@ -84,12 +86,14 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
--disable-libmad \ --disable-libmad \
--with-alsa \ --with-alsa \
--enable-final \ --enable-final \
--enable-closure \
--with-extra-includes=%{_includedir}/tqt --with-extra-includes=%{_includedir}/tqt
%__make %{?_smp_mflags} %__make %{?_smp_mflags}
%install %install
%make_install %__rm -rf %{?buildroot}
%__make install DESTDIR=%{?buildroot}
%clean %clean
%__rm -rf %{?buildroot} %__rm -rf %{?buildroot}
@ -123,6 +127,9 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
%changelog %changelog
* Fri Sep 16 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-6
- Add support for RHEL 5.
* Mon Sep 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-5 * Mon Sep 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-5
- Add "Group" field - Add "Group" field

@ -2,21 +2,28 @@
%if "%{?version}" == "" %if "%{?version}" == ""
%define version 3.5.12 %define version 3.5.12
%endif %endif
%define release 8 %define release 9
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr" %if "%{?_prefix}" != "/usr"
%define _variant .opt %define _variant .opt
%endif %endif
# Older RHEL/Fedora versions use packages named "qt", "qt-devel", ..
# whereas newer versions use "qt3", "qt3-devel" ...
%if 0%{?rhel} >= 6 || 0%{?fedora} >= 8
%define _qt_suffix 3
%endif
# TQT include files may conflict with QT4 includes, so we move them to a subdirectory. # TQT include files may conflict with QT4 includes, so we move them to a subdirectory.
# Later compiled Trinity products should be aware of that ! # Later compiled Trinity products should be aware of that !
%define _includedir %{_prefix}/include/tqt %define _includedir %{_prefix}/include/tqt
# TDE 3.5.12 specific building variables # TDE 3.5.12 specific building variables
BuildRequires: autoconf automake libtool m4 BuildRequires: autoconf automake libtool m4
BuildRequires: qt3-devel >= 3.3.8b BuildRequires: qt%{?_qt_suffix}-devel >= 3.3.8b
Requires: qt3 >= 3.3.8b Requires: qt%{?_qt_suffix} >= 3.3.8b
Name: tqtinterface Name: tqtinterface
@ -31,8 +38,10 @@ URL: http://www.trinitydesktop.org/
Packager: Francois Andriot <francois.andriot@free.fr> Packager: Francois Andriot <francois.andriot@free.fr>
Prefix: %{_prefix} Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
Patch0: tqtinterface-3.5.12-qtinterface-makefile.patch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libXi-devel BuildRequires: libXi-devel
@ -52,9 +61,10 @@ Development files for %{name}
%prep %prep
%setup -q -n dependencies/%{name} %setup -q -n dependencies/%{name}
%patch0 -p1
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" %__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common" %__make -f "admin/Makefile.common"
%build %build
@ -71,7 +81,14 @@ CFLAGS=$( pkg-config --libs qt-mt )
%install %install
%__rm -rf %{?buildroot} %__rm -rf %{?buildroot}
%__mkdir_p %{?buildroot}%{_includedir} %__mkdir_p %{?buildroot}%{_includedir}
%make_install %__make install DESTDIR=%{?buildroot}
# RHEL 5: add newline at end of include files
%if 0%{?rhel} && 0%{?rhel} <= 5
for i in %{?buildroot}%{_includedir}/*.h; do
echo "" >>${i}
done
%endif
%clean %clean
%__rm -rf %{?buildroot} %__rm -rf %{?buildroot}
@ -87,6 +104,9 @@ CFLAGS=$( pkg-config --libs qt-mt )
%changelog %changelog
* Fri Sep 16 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-9
- Add support for RHEL 5.
* Mon Sep 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-8 * Mon Sep 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-8
- Add "Group" - Add "Group"

@ -92,6 +92,7 @@ export CXXFLAGS="${CXXFLAGS} -fpermissive"
%__make %{?_smp_mflags} %__make %{?_smp_mflags}
%install %install
export PATH="%{_bindir}:${PATH}"
%__rm -rf %{buildroot} %__rm -rf %{buildroot}
%make_install %make_install
@ -173,11 +174,11 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
%endif %endif
%{_datadir}/apps/* %{_datadir}/apps/*
%{_datadir}/applications/kde/*.desktop %{_datadir}/applications/kde/*.desktop
#%{_datadir}/config*/* %{_datadir}/config*/*
#%{_datadir}/icons/crystalsvg/*/*/* %{_datadir}/icons/crystalsvg/*/*/*
%{_datadir}/icons/hicolor/*/*/* %{_datadir}/icons/hicolor/*/*/*
%{_datadir}/icons/locolor/*/*/* %{_datadir}/icons/locolor/*/*/*
#%{_datadir}/mimelnk/*/*.desktop %{_datadir}/mimelnk/*/*.desktop
%{_datadir}/service*/*.desktop %{_datadir}/service*/*.desktop
%{tde_libdir}/* %{tde_libdir}/*
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc

@ -2,7 +2,7 @@
%if "%{?version}" == "" %if "%{?version}" == ""
%define version 3.5.12 %define version 3.5.12
%endif %endif
%define release 10 %define release 11
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr" %if "%{?_prefix}" != "/usr"
@ -15,6 +15,12 @@ BuildRequires: autoconf automake libtool m4
%define tde_docdir %{_docdir} %define tde_docdir %{_docdir}
%define tde_libdir %{_libdir}/kde3 %define tde_libdir %{_libdir}/kde3
# Older RHEL/Fedora versions use packages named "qt", "qt-devel", ..
# whereas newer versions use "qt3", "qt3-devel" ...
%if 0%{?rhel} >= 6 || 0%{?fedora} >= 8
%define _qt_suffix 3
%endif
Name: trinity-kdebase Name: trinity-kdebase
Version: %{?version} Version: %{?version}
@ -28,6 +34,7 @@ Packager: Francois Andriot <francois.andriot@free.fr>
URL: http://www.trinitydesktop.org/ URL: http://www.trinitydesktop.org/
Prefix: %{_prefix} Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: kdebase-%{version}.tar.gz Source0: kdebase-%{version}.tar.gz
@ -59,11 +66,13 @@ Patch3: kdebase-3.5.12-kdesu-noignorebutton.patch
Patch5: kdebase-3.5.12-desktop-openterminalhere.patch Patch5: kdebase-3.5.12-desktop-openterminalhere.patch
# [kdebase/kioslave]: Forces HAL backend to use HAL mount options # [kdebase/kioslave]: Forces HAL backend to use HAL mount options
Patch6: kdebase-3.5.12-halmountoptions.patch Patch6: kdebase-3.5.12-halmountoptions.patch
# [kdebase/kcontrol]: disable components that depends of krandr (old distros)
Patch10: kdebase-3.5.12-disable-krandr.patch
BuildRequires: tqtinterface-devel BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel BuildRequires: trinity-arts-devel
BuildRequires: trinity-kdelibs-devel BuildRequires: trinity-kdelibs-devel
BuildRequires: qt3-devel >= 3.3.8b BuildRequires: qt%{?_qt_suffix}-devel
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: avahi-devel avahi-qt3-devel BuildRequires: avahi-devel avahi-qt3-devel
BuildRequires: imake BuildRequires: imake
@ -74,7 +83,7 @@ BuildRequires: dbus-devel dbus-qt-devel
BuildRequires: lm_sensors-devel BuildRequires: lm_sensors-devel
BuildRequires: libfontenc-devel BuildRequires: libfontenc-devel
BuildRequires: hal-devel BuildRequires: hal-devel
BuildRequires: audiofile-devel BuildRequires: audiofile-devel alsa-lib-devel
BuildRequires: jack-audio-connection-kit-devel BuildRequires: jack-audio-connection-kit-devel
BuildRequires: libraw1394-devel BuildRequires: libraw1394-devel
BuildRequires: openldap-devel BuildRequires: openldap-devel
@ -82,11 +91,14 @@ BuildRequires: libvorbis-devel
BuildRequires: pam-devel BuildRequires: pam-devel
BuildRequires: libXdmcp-devel BuildRequires: libXdmcp-devel
BuildRequires: libxkbfile-devel BuildRequires: libxkbfile-devel
BuildRequires: libusb-devel
BuildRequires: esound-devel glib2-devel nas-devel
BuildRequires: libXcomposite-devel
Requires: tqtinterface Requires: tqtinterface
Requires: trinity-arts Requires: trinity-arts
Requires: trinity-kdelibs Requires: trinity-kdelibs
Requires: qt3 >= 3.3.8b Requires: qt%{?_qt_suffix}
Requires: openssl Requires: openssl
Requires: avahi avahi-qt3 Requires: avahi avahi-qt3
@ -110,11 +122,11 @@ kfontmanager, kmenuedit).
%package devel %package devel
Requires: %{name} Requires: %{name}
Requires: %{name}-libs = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: trinity-kdelibs-devel Requires: trinity-kdelibs-devel
Summary: %{summary} - Development files Summary: %{summary} - Development files
%if "%{?_prefix}" == "/usr" %if "%{?_prefix}" == "/usr"
Obsoletes: kdebase3-devel Obsoletes: kdebase%{?_qt_suffix}-devel
%endif %endif
Group: Development/Libraries Group: Development/Libraries
%description devel %description devel
@ -126,7 +138,7 @@ Kate plugins or KWin styles.
%package extras %package extras
Summary: Extra applications from %{name} Summary: Extra applications from %{name}
Group: User Interface/Desktops Group: User Interface/Desktops
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name} = %{version}-%{release}
%description extras %description extras
%{summary}, including: %{summary}, including:
* kappfinder * kappfinder
@ -140,9 +152,9 @@ Summary: %{name} runtime libraries
Group: System Environment/Libraries Group: System Environment/Libraries
Requires: trinity-kdelibs >= %{version} Requires: trinity-kdelibs >= %{version}
%if "%{?_prefix}" == "/usr" %if "%{?_prefix}" == "/usr"
Obsoletes: kdebase3-libs Obsoletes: kdebase%{?_qt_suffix}-libs
%endif %endif
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name} = %{version}-%{release}
%description libs %description libs
%{summary} %{summary}
@ -170,9 +182,12 @@ Protocol handlers (KIOslaves) for personal information management, including:
%patch7 -p1 %patch7 -p1
%patch8 -p1 %patch8 -p1
%patch9 -p1 %patch9 -p1
%if 0%{?rhel} && 0%{?rhel} < 6
%patch10 -p1
%endif
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" %__cp "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common" %__make -f "admin/Makefile.common"
%build %build
@ -196,6 +211,7 @@ export IMAKEINCLUDE="-I/usr/share/X11/config"
--with-xinerama \ --with-xinerama \
--with-xscreensaver \ --with-xscreensaver \
--without-shadow \ --without-shadow \
--enable-closure \
--with-extra-includes=%{_includedir}/tqt --with-extra-includes=%{_includedir}/tqt
# Do NOT use %{?_smp_mflags} for this package, or it will fail to build ! # Do NOT use %{?_smp_mflags} for this package, or it will fail to build !
@ -203,8 +219,7 @@ export IMAKEINCLUDE="-I/usr/share/X11/config"
%install %install
%__rm -rf %{?buildroot} %__rm -rf %{?buildroot}
%__mkdir_p %{?buildroot} %__make install DESTDIR=%{?buildroot}
%make_install
# Adds a GDM/KDM/XDM session called 'TDE' # Adds a GDM/KDM/XDM session called 'TDE'
%if "%{?_prefix}" != "/usr" %if "%{?_prefix}" != "/usr"
@ -344,7 +359,6 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
%{_bindir}/konqueror %{_bindir}/konqueror
%{_bindir}/konsole %{_bindir}/konsole
%{_bindir}/krandom.kss %{_bindir}/krandom.kss
%{_bindir}/krandrtray
%{_bindir}/krdb %{_bindir}/krdb
%{_bindir}/kreadconfig %{_bindir}/kreadconfig
%{_bindir}/ksmserver %{_bindir}/ksmserver
@ -392,7 +406,10 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
%{_bindir}/khc_mansearch.pl %{_bindir}/khc_mansearch.pl
%{_bindir}/kicker %{_bindir}/kicker
%{_bindir}/knetattach %{_bindir}/knetattach
%if 0%{?rhel} >= 6 || 0%{?fedora} >= 15
%{_bindir}/krandrtray
%{_bindir}/kompmgr %{_bindir}/kompmgr
%endif
%{_bindir}/kpm %{_bindir}/kpm
%{_bindir}/ksplash %{_bindir}/ksplash
%{_libdir}/kconf_update_bin %{_libdir}/kconf_update_bin
@ -425,7 +442,11 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
%{tde_libdir}/* %{tde_libdir}/*
%{_libdir}/libkdeinit_*.* %{_libdir}/libkdeinit_*.*
%{_sysconfdir}/xdg/menus/applications-merged/kde-essential.menu %{_sysconfdir}/xdg/menus/applications-merged/kde-essential.menu
%if 0%{?fedora} >= 15 && "%{?_prefix}" != "/usr"
%exclude %{_sysconfdir}/xdg/menus/kde-information.menu
%else
%{_sysconfdir}/xdg/menus/kde-information.menu %{_sysconfdir}/xdg/menus/kde-information.menu
%endif
%{_sysconfdir}/xdg/menus/kde-screensavers.menu %{_sysconfdir}/xdg/menus/kde-screensavers.menu
%{_sysconfdir}/xdg/menus/kde-settings.menu %{_sysconfdir}/xdg/menus/kde-settings.menu
/usr/share/xsessions/*.desktop /usr/share/xsessions/*.desktop
@ -478,6 +499,10 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
%exclude %{_libdir}/libkdeinit_*.* %exclude %{_libdir}/libkdeinit_*.*
%changelog %changelog
* Fri Sep 16 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-11
- Add support for RHEL 5.
- Remove file conflicts with KDE 4.6.5 under Fedora 15
* Mon Sep 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-10 * Mon Sep 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-10
- Add "Group" field - Add "Group" field

@ -2,7 +2,7 @@
%if "%{?version}" == "" %if "%{?version}" == ""
%define version 3.5.12 %define version 3.5.12
%endif %endif
%define release 3 %define release 4
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr" %if "%{?_prefix}" != "/usr"
@ -14,6 +14,7 @@
BuildRequires: autoconf automake libtool m4 BuildRequires: autoconf automake libtool m4
%define tde_docdir %{_docdir} %define tde_docdir %{_docdir}
%define tde_libdir %{_libdir}/kde3 %define tde_libdir %{_libdir}/kde3
%define tde_includedir %{_includedir}/kde
Name: trinity-kdebindings Name: trinity-kdebindings
@ -30,6 +31,10 @@ URL: http://developer.kde.org/language-bindings/
Source0: kdebindings-%{version}.tar.gz Source0: kdebindings-%{version}.tar.gz
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# RedHat Legacy patches (from Fedora) # RedHat Legacy patches (from Fedora)
Patch1: kdebindings-3.5.6-libgcj.patch Patch1: kdebindings-3.5.6-libgcj.patch
@ -43,6 +48,7 @@ BuildRequires: trinity-kdelibs-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: trinity-arts-devel BuildRequires: trinity-arts-devel
BuildRequires: glib-devel gtk+-devel
%define perl_ver %{expand:%%(eval `perl -V:version`; echo $version)} %define perl_ver %{expand:%%(eval `perl -V:version`; echo $version)}
%define perl_vendorarch %{expand:%%(eval `perl -V:installvendorarch`; echo $installvendorarch)} %define perl_vendorarch %{expand:%%(eval `perl -V:installvendorarch`; echo $installvendorarch)}
%define perl_vendorlib %{expand:%%(eval `perl -V:installvendorlib`; echo $installvendorlib)} %define perl_vendorlib %{expand:%%(eval `perl -V:installvendorlib`; echo $installvendorlib)}
@ -63,12 +69,16 @@ Provides: %{name}-dcoppython = %{version}-%{release}
## ruby ## ruby
BuildRequires: ruby-devel >= 1.8, ruby BuildRequires: ruby-devel >= 1.8, ruby
Provides: %{name}-ruby = %{version}-%{release} Provides: %{name}-ruby = %{version}-%{release}
%{!?ruby_arch: %define ruby_arch %(ruby -rrbconfig -e 'puts Config::CONFIG["archdir"]')}
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')} %{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')} %{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
## java ## java
#BuildRequires: java-1.4.2-gcj-compat-devel libgcj-devel gcc-java %if 0%{?rhel} && 0%{?rhel} < 6
BuildRequires: java-1.4.2-gcj-compat-devel libgcj-devel gcc-java
%else
BuildRequires: java-devel >= 1.4.2 BuildRequires: java-devel >= 1.4.2
%endif
%define java_home %{_usr}/lib/jvm/java %define java_home %{_usr}/lib/jvm/java
%define _with_java --with-java=%{java_home} %define _with_java --with-java=%{java_home}
Provides: %{name}-java = %{version}-%{release} Provides: %{name}-java = %{version}-%{release}
@ -114,7 +124,7 @@ unset JAVA_HOME ||:
export DO_NOT_COMPILE="$DO_NOT_COMPILE python" export DO_NOT_COMPILE="$DO_NOT_COMPILE python"
%configure \ %configure \
--includedir=%{_includedir}/kde \ --includedir=%{tde_includedir} \
--disable-rpath \ --disable-rpath \
--enable-new-ldflags \ --enable-new-ldflags \
--disable-debug --disable-warnings \ --disable-debug --disable-warnings \
@ -146,10 +156,10 @@ popd
%install %install
%__rm -rf $RPM_BUILD_ROOT
export PATH="%{_bindir}:${PATH}" export PATH="%{_bindir}:${PATH}"
%__rm -rf $RPM_BUILD_ROOT
%make_install \ %__make install DESTDIR=%{?buildroot} \
PYTHON=%{__python} PYTHON=%{__python}
desktop-file-install \ desktop-file-install \
@ -199,7 +209,7 @@ for dir in dcopperl dcoppython kalyptus %{?_with_java:kdejava qtjava} kjsembed k
done done
%clean %clean
rm -rf $RPM_BUILD_ROOT %__rm -rf $RPM_BUILD_ROOT
%post %post
/sbin/ldconfig ||: /sbin/ldconfig ||:
@ -239,11 +249,7 @@ update-desktop-database >& /dev/null ||:
#%{ruby_sitelib}/K* #%{ruby_sitelib}/K*
#%{ruby_sitelib}/Qt* #%{ruby_sitelib}/Qt*
%{_usr}/lib/ruby/*/* %{_usr}/lib/ruby/*/*
%if 0%{?fedora} >= 15 %{ruby_arch}/*.so.*
%{_usr}/lib64/ruby/*/*/*.so.*
%else
%{_usr}/lib64/ruby/*/*.so.*
%endif
# Excludes 'kjscmd' (conflicts with 'kdelibs' from RHEL6) # Excludes 'kjscmd' (conflicts with 'kdelibs' from RHEL6)
%if "%{?_prefix}" == "/usr" %if "%{?_prefix}" == "/usr"
@ -265,15 +271,14 @@ update-desktop-database >& /dev/null ||:
%{_libdir}/jni/*.so %{_libdir}/jni/*.so
%{_libdir}/jni/*.la %{_libdir}/jni/*.la
%endif %endif
%if 0%{?fedora} >= 15 %{ruby_arch}/*.so
%{_usr}/lib64/ruby/*/*/*.so %{ruby_arch}/*.la
%{_usr}/lib64/ruby/*/*/*.la
%else
%{_usr}/lib64/ruby/*/*.so
%{_usr}/lib64/ruby/*/*.la
%endif
%changelog %changelog
* Sun Sep 18 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-4
- Add RHEL5 support
- Add 'ruby_arch' macro to avoid handling distro-specific ruby path
* Sun Sep 04 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-3 * Sun Sep 04 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-3
- Import to GIT - Import to GIT

@ -2,7 +2,7 @@
%if "%{?version}" == "" %if "%{?version}" == ""
%define version 3.5.12 %define version 3.5.12
%endif %endif
%define release 6 %define release 8
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr" %if "%{?_prefix}" != "/usr"
@ -15,39 +15,52 @@ BuildRequires: autoconf automake libtool m4
%define tde_docdir %{_docdir} %define tde_docdir %{_docdir}
%define tde_libdir %{_libdir}/kde3 %define tde_libdir %{_libdir}/kde3
# Older RHEL/Fedora versions use packages named "qt", "qt-devel", ..
# whereas newer versions use "qt3", "qt3-devel" ...
%if 0%{?rhel} >= 6 || 0%{?fedora} >= 8
%define _qt_suffix 3
%endif
Name: trinity-kdelibs Name: trinity-kdelibs
Version: %{version} Version: %{version}
Release: %{?release}%{?dist}%{?_variant} Release: %{?release}%{?dist}%{?_variant}
License: GPL License: GPL
Summary: Trinity KDE Libraries Summary: TDE Libraries
Group: System Environment/Libraries Group: System Environment/Libraries
Vendor: Trinity Project Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr> Packager: Francois Andriot <francois.andriot@free.fr>
URL: http://www.trinitydesktop.org/ URL: http://www.trinitydesktop.org/
Source0: kdelibs-%{version}.tar.gz
Prefix: %{_prefix} Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: kdelibs-%{version}.tar.gz
BuildRequires: libtool BuildRequires: libtool
BuildRequires: tqtinterface-devel BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel BuildRequires: trinity-arts-devel
BuildRequires: qt3-devel BuildRequires: avahi-devel
BuildRequires: avahi-devel avahi-qt3-devel
BuildRequires: lua-devel BuildRequires: lua-devel
BuildRequires: krb5-devel libxslt-devel cups-devel libart_lgpl-devel pcre-devel BuildRequires: krb5-devel libxslt-devel cups-devel libart_lgpl-devel pcre-devel
BuildRequires: libutempter-devel BuildRequires: libutempter-devel
BuildRequires: bzip2-devel BuildRequires: bzip2-devel
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: gcc-c++
Requires: tqtinterface BuildRequires: alsa-lib-devel
Requires: trinity-arts BuildRequires: libidn-devel
Requires: qt3 BuildRequires: qt%{?_qt_suffix}-devel
Requires: avahi avahi-qt3 BuildRequires: avahi-qt3-devel
Requires: tqtinterface
Requires: trinity-arts
Requires: avahi
Requires: qt%{?_qt_suffix}
Requires: avahi-qt3
%if "%{?_prefix}" == "/usr" %if "%{?_prefix}" == "/usr"
Obsoletes: kdelibs3 Obsoletes: kdelibs%{?_qt_suffix}
%endif %endif
%description %description
@ -63,7 +76,7 @@ Summary: %{name} - Development files
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%if "%{?_prefix}" == "/usr" %if "%{?_prefix}" == "/usr"
Obsoletes: kdelibs3-devel Obsoletes: kdelibs%{?_qt_suffix}-devel
%endif %endif
%description devel %description devel
@ -75,7 +88,7 @@ Group: Development/Libraries
Summary: %{name} - API documentation Summary: %{name} - API documentation
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%if "%{?_prefix}" == "/usr" %if "%{?_prefix}" == "/usr"
Obsoletes: kdelibs3-apidocs-devel Obsoletes: kdelibs%{?_qt_suffix}-apidocs-devel
%endif %endif
%description apidocs %description apidocs
@ -86,7 +99,7 @@ format for easy browsing
%setup -q -n kdelibs %setup -q -n kdelibs
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" %__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" %__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common" %__make -f "admin/Makefile.common"
@ -96,6 +109,12 @@ export PATH="%{_bindir}:${PATH}"
export LD_LIBRARY_PATH="%{_libdir}" export LD_LIBRARY_PATH="%{_libdir}"
export LDFLAGS="-L%{_libdir} -I%{_includedir}" export LDFLAGS="-L%{_libdir} -I%{_includedir}"
# On older RHEL, libXrandr is too old so krandr cannot be compiled.
# Kspell2 does not compile either.
%if 0%{?rhel} && 0%{?rhel} < 6
export DO_NOT_COMPILE="krandr"
%endif
%configure \ %configure \
--disable-rpath \ --disable-rpath \
--enable-new-ldflags \ --enable-new-ldflags \
@ -117,6 +136,7 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
--with-jasper \ --with-jasper \
--with-openexr \ --with-openexr \
--with-xinerama \ --with-xinerama \
--enable-closure \
--with-extra-includes=%{_includedir}/tqt --with-extra-includes=%{_includedir}/tqt
# Do NOT use %{?_smp_mflags} for this package, or it will fail to build ! # Do NOT use %{?_smp_mflags} for this package, or it will fail to build !
@ -125,8 +145,15 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
%install %install
%__rm -rf %{?buildroot} %__rm -rf %{?buildroot}
%__mkdir_p %{?buildroot} %__make install DESTDIR=%{?buildroot}
%make_install
%__mkdir_p %{?buildroot}%{_sysconfdir}/ld.so.conf.d
cat <<EOF >%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf
%if "%{?_prefix}" != "/usr"
%{_libdir}
%endif
%{tde_libdir}
EOF
%clean %clean
@ -239,6 +266,7 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
%exclude %{_datadir}/locale/all_languages %exclude %{_datadir}/locale/all_languages
%exclude %{tde_docdir}/HTML/en/common/* %exclude %{tde_docdir}/HTML/en/common/*
%endif %endif
%{_sysconfdir}/ld.so.conf.d/trinity.conf
# Provided by 'redhat-menus' package # Provided by 'redhat-menus' package
%exclude %{_sysconfdir}/xdg/menus/applications.menu %exclude %{_sysconfdir}/xdg/menus/applications.menu
@ -261,6 +289,13 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
%changelog %changelog
* Fri Sep 16 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-8
- Add support for RHEL 5.
* Thu Sep 15 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-7
- Add missings 'BuildRequires'
- Re-add lost 'ld.so.conf' file
* Mon Sep 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-6 * Mon Sep 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-6
- Add "Group" field - Add "Group" field

@ -204,7 +204,7 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
%{?_with_xmms} %{!?_with_xmms:--without-xmms} \ %{?_with_xmms} %{!?_with_xmms:--without-xmms} \
--with-extra-includes=%{_includedir}/tqt --with-extra-includes=%{_includedir}/tqt
%__make %{?_smp_mflags} %__make %{?_smp_mflags} || %__make
%install %install

@ -59,11 +59,16 @@ Requires: qt3-designer
Requires: gettext Requires: gettext
Requires: ctags Requires: ctags
BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel
BuildRequires: trinity-kdelibs-devel BuildRequires: trinity-kdelibs-devel
BuildRequires: trinity-kdelibs-apidocs BuildRequires: trinity-kdelibs-apidocs
BuildRequires: qt3-devel-docs BuildRequires: qt3-devel-docs
BuildRequires: db4-devel BuildRequires: db4-devel
BuildRequires: flex BuildRequires: flex flex-static
BuildRequires: pcre-devel
BuildRequires: libacl-devel libattr-devel libidn-devel libart_lgpl-devel
BuildRequires: gcc-c++
# FIXME: No CVS support in KDevelop? This is going to suck... # FIXME: No CVS support in KDevelop? This is going to suck...
# Requires kdesdk3. # Requires kdesdk3.
BuildRequires: trinity-kdesdk-devel BuildRequires: trinity-kdesdk-devel
@ -141,6 +146,10 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
# Fix KDE detection fail in "./configure" because tqt.h cannot be found # Fix KDE detection fail in "./configure" because tqt.h cannot be found
export CXXFLAGS="${CXXFLAGS} -I%{_includedir}/tqt" export CXXFLAGS="${CXXFLAGS} -I%{_includedir}/tqt"
%if 0%{?fedora} >= 15
export CXXFLAGS="${CXXFLAGS} -fpermissive"
%endif
# c references # c references
pushd c_cpp_reference-2.0.2_for_KDE_3.0 pushd c_cpp_reference-2.0.2_for_KDE_3.0
%configure \ %configure \

Loading…
Cancel
Save