diff options
Diffstat (limited to 'redhat')
-rw-r--r-- | redhat/kdesdk/kdesdk-3.5.7-subversion.patch | 21 | ||||
-rw-r--r-- | redhat/kdesdk/trinity-kdesdk-3.5.12.spec | 237 | ||||
-rw-r--r-- | redhat/kdesdk/trinity-kdesdk-3.5.13.spec | 232 |
3 files changed, 490 insertions, 0 deletions
diff --git a/redhat/kdesdk/kdesdk-3.5.7-subversion.patch b/redhat/kdesdk/kdesdk-3.5.7-subversion.patch new file mode 100644 index 000000000..4c3470e6d --- /dev/null +++ b/redhat/kdesdk/kdesdk-3.5.7-subversion.patch @@ -0,0 +1,21 @@ +diff -up kdesdk-3.5.7/kioslave/svn/configure.in.in.svn kdesdk-3.5.7/kioslave/svn/configure.in.in +--- kdesdk-3.5.7/kioslave/svn/configure.in.in.svn 2005-10-10 09:58:25.000000000 -0500 ++++ kdesdk-3.5.7/kioslave/svn/configure.in.in 2007-09-12 09:39:42.000000000 -0500 +@@ -86,7 +86,7 @@ fi + AC_SUBST(SVNCONFIG) + if test -x "$SVNCONFIG"; then + SVNLD="`$SVNCONFIG --ldflags`" +- SVN_LIB="`$SVNCONFIG --libs` -lsvn_client-1" ++ SVN_LIB="`$SVNCONFIG --libs` -lsvn_client-1 -lsvn_subr-1" + SVN_CPPFLAGS="`$SVNCONFIG --cppflags`" + dnl ugly hack for subversion svn-config problems in 0.14.x, to be removed when svn-config is fixed + SVN_INCLUDE="`$SVNCONFIG --includes` -I$_SVNCONFIG/include/subversion-1/" +@@ -141,7 +141,7 @@ dnl AC_MSG_ERROR([Subversion headers ar + SVN_SUBDIR= + fi + fi +-SVN_LIB="$SVN_LIB $APR_LIBS -lsvn_client-1" ++SVN_LIB="$SVN_LIB $APR_LIBS -lsvn_client-1 -lsvn_subr-1" + SVN_INCLUDE="$SVN_INCLUDE $APR_INCLUDE" + SVN_CPPFLAGS="$APR_CPPFLAGS $SVN_CPPFLAGS" + diff --git a/redhat/kdesdk/trinity-kdesdk-3.5.12.spec b/redhat/kdesdk/trinity-kdesdk-3.5.12.spec new file mode 100644 index 000000000..0da572d1d --- /dev/null +++ b/redhat/kdesdk/trinity-kdesdk-3.5.12.spec @@ -0,0 +1,237 @@ +# If _kde3_prefix is # Default version for this component +%if "%{?version}" == "" +%define version 3.5.12 +%endif +%define release 2 + +# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". +%if "%{?_prefix}" != "/usr" +%define _variant .opt +%define _docdir %{_prefix}/share/doc +%endif + +# TDE 3.5.12 specific building variables +BuildRequires: autoconf automake libtool m4 +%define tde_docdir %{_docdir} +%define tde_libdir %{_libdir}/kde3 + + +%define _with_subversion --with-subversion +%if 0%{?fedora} > 6 || 0%{?rhel} > 4 +%define _with_apr_config --with-apr-config=apr-1-config +%define _with_apu_config --with-apu-config=apu-1-config +%endif + + +Name: trinity-kdesdk +Summary: The KDE Software Development Kit (SDK) +Version: %{?version} +Release: %{?release}%{?dist}%{?_variant} + +License: GPLv2 +Group: User Interface/Desktops +URL: http://www.trinitydesktop.org/ +Vendor: Trinity Project +Packager: Francois Andriot <francois.andriot@free.fr> +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Source: kdesdk-%{version}.tar.gz + +# RedHat Legacy patches +Patch1: kdesdk-3.5.7-subversion.patch + +# Official patches from SVN +# Import of revision 66 from svn.trinitydesktop.org +Patch2: r1225998.diff + +Provides: kdesdk3 = %{version}-%{release} + +Requires: %{name}-libs = %{version}-%{release} + +BuildRequires: automake libtool +BuildRequires: tqtinterface-devel +BuildRequires: pcre-devel +BuildRequires: trinity-kdelibs-devel +# for kbugbuster/libkcal +BuildRequires: trinity-kdepim-devel +BuildRequires: db4-devel +BuildRequires: desktop-file-utils +# kbabel, F-7+: flex >= 2.5.33-9 +BuildRequires: flex +# umbrello +BuildRequires: libxslt-devel libxml2-devel +%if 0%{?fedora} > 5 || 0%{?rhel} > 4 +BuildRequires: binutils-devel +%endif +BuildRequires: perl +%{?_with_subversion:BuildRequires: subversion-devel neon-devel} + +# Obsoletes/Provides +%define cervisia_ver 2.4.7 +Provides: cervisia = %{cervisia_ver}-%{release} + +%define umbrello_ver 1.5.7 +Obsoletes: umbrello < %{umbrello_ver}-%{release} +Provides: umbrello = %{umbrello_ver}-%{release} + + +%description +A collection of applications and tools used by developers, including: +* cervisia: a CVS frontend +* kbabel: PO file management +* kbugbuster: a tool to manage the KDE bug report system +* kcachegrind: a browser for data produced by profiling tools (e.g. cachegrind) +* kompare: diff tool +* kuiviewer: displays designer's UI files +* umbrello: UML modeller and UML diagram tool + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Provides: trinity-kdesdk-devel = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} +Requires: trinity-kdelibs-devel +%description devel +%{summary}. + +%package libs +Summary: %{name} runtime libraries +Group: System Environment/Libraries +Requires: trinity-kdelibs >= %{version} +# helps multilib upgrades +Obsoletes: %{name} < %{?epoch:%{epoch}:}%{version}-%{release} +# include to be paranoid, installing libs-only is still mostly untested -- Rex +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +%description libs +%{summary}. + + +%prep +%setup -q -n kdesdk +%patch1 -p1 -b .subversion +%patch2 -p1 + +%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" +%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" +%__make -f admin/Makefile.common + + +%build +unset QTDIR || :; . /etc/profile.d/qt.sh +export PATH="%{_bindir}:${PATH}" +export LDFLAGS="-L%{_libdir} -I%{_includedir}" + +%configure \ + --includedir=%{_includedir}/kde \ + --disable-rpath \ + --enable-new-ldflags \ + --disable-debug --disable-warnings \ + --disable-dependancy-tracking --enable-final \ + %{?_with_subversion} %{?_with_apr_config} %{?_with_apu_config} \ + --with-extra-includes=%{_includedir}/tqt \ + --without-svn \ + --enable-closure + +# Do not use %{?_smp_mflags} ! +%__make + + +%install +export PATH="%{_bindir}:${PATH}" +%__rm -rf %{buildroot} + +%make_install + +desktop-file-install --vendor "" \ + --dir %{buildroot}%{_datadir}/applications/kde \ + %{buildroot}%{_datadir}/applications/kde/*.desktop \ + +# make symlinks relative +if [ -d %{buildroot}%{tde_docdir}/HTML/en ]; then + pushd %{buildroot}%{tde_docdir}/HTML/en + for i in *; do + if [ -d $i -a -L $i/common ]; then + rm -f $i/common + ln -nfs ../common $i + fi + done + popd +fi + +%__rm -f %{buildroot}/%{_datadir}/apps/kapptemplate/admin/Makefile \ + %{buildroot}/%{_datadir}/apps/kapptemplate/admin/Makefile.in + + +%clean +%__rm -rf %{buildroot} + + +# trick to replace a dir by a symlink -- Rex +%pre +if [ $1 -gt 0 -a ! -L %{_docdir}/HTML/en/cervisia/common ]; then + rm -rf %{tde_docdir}/HTML/en/cervisia/common ||: +fi + +%post +for f in crystalsvg hicolor locolor ; do + touch --no-create %{_datadir}/icons/$f 2> /dev/null ||: + gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||: +done +update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : + +%postun +for f in crystalsvg hicolor locolor ; do + touch --no-create %{_datadir}/icons/$f 2> /dev/null ||: + gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||: +done +update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%{_bindir}/* +%{tde_docdir}/HTML/en/* +%{_datadir}/apps/* +%{_datadir}/mimelnk/application/* +%{_datadir}/services/* +%{_datadir}/servicetypes/* +%{_datadir}/icons/crystalsvg/*/*/* +%{_datadir}/icons/hicolor/*/*/* +%{_datadir}/icons/locolor/*/*/* +%{_datadir}/applications/kde/* +%{_datadir}/config.kcfg/* +%{tde_libdir}/* +%{_libdir}/libkdeinit_*.so +%{_mandir}/man1/* + +# Removes conflict with package 'rpmdevtool' on RHEL 6 +%if "%{_prefix}" == "/usr" +%exclude %{_bindir}/licensecheck +%endif + +%files libs +%defattr(-,root,root,-) +%{_libdir}/lib*.so.* +%{_libdir}/lib*.la + +%files devel +%defattr(-,root,root,-) +%{_includedir}/kde/* +%{_libdir}/lib*.so +%exclude %{_libdir}/libkdeinit_*.so +%{_libdir}/kmtrace/* + + +%changelog +* Mon Sep 05 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-2 +- Import to GIT + +* Mon Aug 22 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-1 +- Correct macro to install under "/opt", if desired + +* Tue Jun 21 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-0 +- Initial version for RHEL 6 +- Specfile based on Fedora 8 'kdesdk 3.5.10-1' diff --git a/redhat/kdesdk/trinity-kdesdk-3.5.13.spec b/redhat/kdesdk/trinity-kdesdk-3.5.13.spec new file mode 100644 index 000000000..a9d1d3570 --- /dev/null +++ b/redhat/kdesdk/trinity-kdesdk-3.5.13.spec @@ -0,0 +1,232 @@ +# If _kde3_prefix is # Default version for this component +%if "%{?version}" == "" +%define version 3.5.13 +%endif +%define release 0 + +# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". +%if "%{?_prefix}" != "/usr" +%define _variant .opt +%define _docdir %{_prefix}/share/doc +%endif + +# TDE 3.5.13 specific building variables +BuildRequires: autoconf automake libtool m4 +%define tde_docdir %{_docdir} +%define tde_libdir %{_libdir}/trinity + + +%define _with_subversion --with-subversion +%if 0%{?fedora} > 6 || 0%{?rhel} > 4 +%define _with_apr_config --with-apr-config=apr-1-config +%define _with_apu_config --with-apu-config=apu-1-config +%endif + + +Name: trinity-kdesdk +Summary: The KDE Software Development Kit (SDK) +Version: %{?version} +Release: %{?release}%{?dist}%{?_variant} + +License: GPLv2 +Group: User Interface/Desktops +URL: http://www.trinitydesktop.org/ +Vendor: Trinity Project +Packager: Francois Andriot <francois.andriot@free.fr> +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Source: kdesdk-%{version}.tar.gz + +# RedHat Legacy patches +Patch1: kdesdk-3.5.7-subversion.patch + +Provides: kdesdk3 = %{version}-%{release} + +Requires: %{name}-libs = %{version}-%{release} + +BuildRequires: automake libtool +BuildRequires: tqtinterface-devel +BuildRequires: pcre-devel +BuildRequires: trinity-kdelibs-devel +# for kbugbuster/libkcal +BuildRequires: trinity-kdepim-devel +BuildRequires: db4-devel +BuildRequires: desktop-file-utils +# kbabel, F-7+: flex >= 2.5.33-9 +BuildRequires: flex +# umbrello +BuildRequires: libxslt-devel libxml2-devel +%if 0%{?fedora} > 5 || 0%{?rhel} > 4 +BuildRequires: binutils-devel +%endif +BuildRequires: perl +%{?_with_subversion:BuildRequires: subversion-devel neon-devel} + +# Obsoletes/Provides +%define cervisia_ver 2.4.7 +Provides: cervisia = %{cervisia_ver}-%{release} + +%define umbrello_ver 1.5.7 +Obsoletes: umbrello < %{umbrello_ver}-%{release} +Provides: umbrello = %{umbrello_ver}-%{release} + + +%description +A collection of applications and tools used by developers, including: +* cervisia: a CVS frontend +* kbabel: PO file management +* kbugbuster: a tool to manage the KDE bug report system +* kcachegrind: a browser for data produced by profiling tools (e.g. cachegrind) +* kompare: diff tool +* kuiviewer: displays designer's UI files +* umbrello: UML modeller and UML diagram tool + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Provides: trinity-kdesdk-devel = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} +Requires: trinity-kdelibs-devel +%description devel +%{summary}. + +%package libs +Summary: %{name} runtime libraries +Group: System Environment/Libraries +Requires: trinity-kdelibs >= %{version} +# helps multilib upgrades +Obsoletes: %{name} < %{?epoch:%{epoch}:}%{version}-%{release} +# include to be paranoid, installing libs-only is still mostly untested -- Rex +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +%description libs +%{summary}. + + +%prep +%setup -q -n kdesdk +%patch1 -p1 -b .subversion + +# Ugly hack to modify TQT include directory inside autoconf files. +# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! +sed -i admin/acinclude.m4.in \ + -e "s,/usr/include/tqt,%{_includedir}/tqt,g" + +%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" +%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" +%__make -f admin/Makefile.common + + +%build +unset QTDIR || :; . /etc/profile.d/qt.sh +export PATH="%{_bindir}:${PATH}" +export LDFLAGS="-L%{_libdir} -I%{_includedir}" +export LDFLAGS="${LDFLAGS} -lqt-mt -L${QTLIB}" + +%configure \ + --includedir=%{_includedir}/kde \ + --disable-rpath \ + --enable-new-ldflags \ + --disable-debug --disable-warnings \ + --disable-dependancy-tracking --enable-final \ + %{?_with_subversion} %{?_with_apr_config} %{?_with_apu_config} \ + --with-extra-includes=%{_includedir}/tqt \ + --without-svn \ + --enable-closure + +# Do not use %{?_smp_mflags} ! +%__make + + +%install +export PATH="%{_bindir}:${PATH}" +%__rm -rf %{buildroot} + +%make_install + +desktop-file-install --vendor "" \ + --dir %{buildroot}%{_datadir}/applications/kde \ + %{buildroot}%{_datadir}/applications/kde/*.desktop \ + +# make symlinks relative +if [ -d %{buildroot}%{tde_docdir}/HTML/en ]; then + pushd %{buildroot}%{tde_docdir}/HTML/en + for i in *; do + if [ -d $i -a -L $i/common ]; then + rm -f $i/common + ln -nfs ../common $i + fi + done + popd +fi + +%__rm -f %{buildroot}/%{_datadir}/apps/kapptemplate/admin/Makefile \ + %{buildroot}/%{_datadir}/apps/kapptemplate/admin/Makefile.in + + +%clean +%__rm -rf %{buildroot} + + +# trick to replace a dir by a symlink -- Rex +%pre +if [ $1 -gt 0 -a ! -L %{_docdir}/HTML/en/cervisia/common ]; then + rm -rf %{tde_docdir}/HTML/en/cervisia/common ||: +fi + +%post +for f in crystalsvg hicolor locolor ; do + touch --no-create %{_datadir}/icons/$f 2> /dev/null ||: + gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||: +done +update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : + +%postun +for f in crystalsvg hicolor locolor ; do + touch --no-create %{_datadir}/icons/$f 2> /dev/null ||: + gtk-update-icon-cache -q %{_datadir}/icons/$f 2> /dev/null ||: +done +update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%{_bindir}/* +%{tde_docdir}/HTML/en/* +%{_datadir}/apps/* +%{_datadir}/mimelnk/application/* +%{_datadir}/services/* +%{_datadir}/servicetypes/* +%{_datadir}/icons/crystalsvg/*/*/* +%{_datadir}/icons/hicolor/*/*/* +%{_datadir}/icons/locolor/*/*/* +%{_datadir}/applications/kde/* +%{_datadir}/config.kcfg/* +%{tde_libdir}/* +%{_libdir}/libkdeinit_*.so +%{_mandir}/man1/* + +# Removes conflict with package 'rpmdevtool' on RHEL 6 +%if "%{_prefix}" == "/usr" +%exclude %{_bindir}/licensecheck +%endif + +%files libs +%defattr(-,root,root,-) +%{_libdir}/lib*.so.* +%{_libdir}/lib*.la + +%files devel +%defattr(-,root,root,-) +%{_includedir}/kde/* +%{_libdir}/lib*.so +%exclude %{_libdir}/libkdeinit_*.so +%{_libdir}/kmtrace/* + + +%changelog +* Mon Sep 05 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-0 +- Import to GIT +- Built with future TDE version (3.5.13 + cmake + QT3.3.8d) |