summaryrefslogtreecommitdiffstats
path: root/redhat/kdelibs
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/kdelibs')
-rwxr-xr-xredhat/kdelibs/trinity-kdelibs-3.5.12.spec70
-rwxr-xr-xredhat/kdelibs/trinity-kdelibs-3.5.13.spec29
2 files changed, 68 insertions, 31 deletions
diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.12.spec b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec
index 65c60a318..b81d77cb5 100755
--- a/redhat/kdelibs/trinity-kdelibs-3.5.12.spec
+++ b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec
@@ -1,22 +1,36 @@
+# Default version for this component
+%if "%{?version}" == ""
+%define version 3.5.12
+%endif
+%define release 6
+
# 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 variables
+BuildRequires: autoconf automake libtool m4
+%define tde_docdir %{_docdir}
+%define tde_libdir %{_libdir}/kde3
+
Name: trinity-kdelibs
-Version: 3.5.12
-Release: 5%{?dist}%{?_variant}
+Version: %{version}
+Release: %{?release}%{?dist}%{?_variant}
License: GPL
+Summary: Trinity KDE Libraries
+Group: System Environment/Libraries
+
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
-Summary: Trinity KDE Libraries
+URL: http://www.trinitydesktop.org/
Source0: kdelibs-%{version}.tar.gz
Prefix: %{_prefix}
-BuildRequires: autoconf automake libtool m4
+BuildRequires: libtool
BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel
BuildRequires: qt3-devel
@@ -37,37 +51,51 @@ Obsoletes: kdelibs3
%endif
%description
-Libraries for the Trinity K Desktop Environment
+Libraries for the Trinity Desktop Environment:
+KDE Libraries included: kdecore (KDE core library), kdeui (user interface),
+kfm (file manager), khtmlw (HTML widget), kio (Input/Output, networking),
+kspell (spelling checker), jscript (javascript), kab (addressbook),
+kimgio (image manipulation).
+
%package devel
-Requires: %{name}
Summary: %{name} - Development files
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
%if "%{?_prefix}" == "/usr"
Obsoletes: kdelibs3-devel
%endif
%description devel
-Development files for %{name}
+This package includes the header files you will need to compile
+applications for TDE.
%package apidocs
-Requires: %{name}
+Group: Development/Libraries
Summary: %{name} - API documentation
+Requires: %{name} = %{version}-%{release}
+%if "%{?_prefix}" == "/usr"
+Obsoletes: kdelibs3-apidocs-devel
+%endif
%description apidocs
-This package includes the KDE 3 API documentation in HTML
+This package includes the TDE API documentation in HTML
format for easy browsing
%prep
%setup -q -n kdelibs
+
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
-%__make -f admin/Makefile.common
+%__make -f "admin/Makefile.common"
+
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
export PATH="%{_bindir}:${PATH}"
export LD_LIBRARY_PATH="%{_libdir}"
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
+
%configure \
--disable-rpath \
--enable-new-ldflags \
@@ -94,18 +122,12 @@ export LDFLAGS="-L%{_libdir} -I%{_includedir}"
# Do NOT use %{?_smp_mflags} for this package, or it will fail to build !
%__make
+
%install
%__rm -rf %{?buildroot}
%__mkdir_p %{?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
-%{_libdir}/trinity
-EOF
%clean
%__rm -rf %{?buildroot}
@@ -179,7 +201,7 @@ EOF
%{_libdir}/lib*.so.*
%{_libdir}/libkdeinit_*.so
%{_libdir}/lib*.la
-%{_libdir}/kde3/
+%{tde_libdir}/
%{_datadir}/applications/kde/*.desktop
%{_datadir}/autostart/kab2kabc.desktop
%{_datadir}/applnk/kio_iso.desktop
@@ -193,7 +215,7 @@ EOF
%{_datadir}/services/*
%{_datadir}/servicetypes/*
%{_datadir}/icons/crystalsvg/
-%{_docdir}/HTML/en/kspell
+%{tde_docdir}/HTML/en/kspell
# remove conflicts with kdelibs-4
%if "%{?_prefix}" != "/usr"
%{_bindir}/checkXML
@@ -202,7 +224,7 @@ EOF
%{_bindir}/preparetips
%{_datadir}/icons/hicolor/index.theme
%{_datadir}/locale/all_languages
-%{_docdir}/HTML/en/common/*
+%{tde_docdir}/HTML/en/common/*
%else
%exclude %{_bindir}/checkXML
%exclude %{_bindir}/ksvgtopng
@@ -215,9 +237,8 @@ EOF
%exclude %{_datadir}/config/ui/ui_standards.rc
%exclude %{_datadir}/icons/hicolor/index.theme
%exclude %{_datadir}/locale/all_languages
-%exclude %{_docdir}/HTML/en/common/*
+%exclude %{tde_docdir}/HTML/en/common/*
%endif
-%{_sysconfdir}/ld.so.conf.d/trinity.conf
# Provided by 'redhat-menus' package
%exclude %{_sysconfdir}/xdg/menus/applications.menu
@@ -236,10 +257,13 @@ EOF
%files apidocs
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}/
-%{_docdir}/HTML/en/kdelibs*
+%{tde_docdir}/HTML/en/kdelibs*
%changelog
+* Mon Sep 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-6
+- Add "Group" field
+
* Sun Sep 04 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.12-5
- Import to GIT
- Removes cmake stuff, build with autotools only
diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
index efa1ae90a..4b98b33f9 100755
--- a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
+++ b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
@@ -2,6 +2,7 @@
%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"
@@ -9,19 +10,25 @@
%define _docdir %{_prefix}/share/doc
%endif
+# TDE 3.5.13 specific variables
+BuildRequires: cmake >= 2.8
+%define tde_docdir %{_docdir}/kde
+%define tde_libdir %{_libdir}/trinity
+
Name: trinity-kdelibs
Version: %{version}
-Release: 0%{?dist}%{?_variant}
+Release: %{?release}%{?dist}%{?_variant}
License: GPL
+Summary: Trinity KDE Libraries
+
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
-Summary: Trinity KDE Libraries
+URL: http://www.trinitydesktop.org/
Source0: kdelibs-%{version}.tar.gz
Prefix: %{_prefix}
-BuildRequires: cmake >= 2.8
BuildRequires: libtool
BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel
@@ -66,6 +73,11 @@ format for easy browsing
%prep
%setup -q -n kdelibs
+# Gets the cmake modules in current build directory
+%__mkdir_p cmake/modules
+%__cp -f %{_datadir}/cmake/*.* cmake/modules
+
+
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
export PATH="%{_bindir}:${PATH}"
@@ -94,6 +106,7 @@ cd build
%__make %{?_smp_mflags}
+
%install
%__rm -rf %{?buildroot}
%__mkdir_p %{?buildroot}
@@ -179,7 +192,7 @@ EOF
%{_libdir}/lib*.so.*
%{_libdir}/libkdeinit_*.so
%{_libdir}/lib*.la
-%{_libdir}/trinity/
+%{tde_libdir}/
%{_datadir}/applications/kde/*.desktop
%{_datadir}/autostart/kab2kabc.desktop
%{_datadir}/applnk/kio_iso.desktop
@@ -193,7 +206,7 @@ EOF
%{_datadir}/services/*
%{_datadir}/servicetypes/*
%{_datadir}/icons/crystalsvg/
-%{_docdir}/kde/HTML/en/kspell
+%{tde_docdir}/HTML/en/kspell
# remove conflicts with kdelibs-4
%if "%{?_prefix}" != "/usr"
%{_bindir}/checkXML
@@ -202,7 +215,7 @@ EOF
%{_bindir}/preparetips
%{_datadir}/icons/hicolor/index.theme
%{_datadir}/locale/all_languages
-%{_docdir}/kde/HTML/en/common/*
+%{tde_docdir}/HTML/en/common/*
%else
%exclude %{_bindir}/checkXML
%exclude %{_bindir}/ksvgtopng
@@ -215,7 +228,7 @@ EOF
%exclude %{_datadir}/config/ui/ui_standards.rc
%exclude %{_datadir}/icons/hicolor/index.theme
%exclude %{_datadir}/locale/all_languages
-%exclude %{_docdir}/kde/HTML/en/common/*
+%exclude %{tde_docdir}/HTML/en/common/*
%endif
%{_sysconfdir}/ld.so.conf.d/trinity.conf
@@ -242,7 +255,7 @@ EOF
%files apidocs
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}/
-#%{_docdir}/kde/HTML/en/kdelibs*
+#%{tde_docdir}/HTML/en/kdelibs*
%changelog