summaryrefslogtreecommitdiffstats
path: root/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-04 12:48:59 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-04 12:48:59 -0500
commit169853a068683db6540e3b77542d5139bb7867d1 (patch)
tree2163209e7dc0569f9b0f68cf15284fe80f8c9e2e /redhat/kdelibs/trinity-kdelibs-3.5.13.spec
parent7acfaa9e6409ed0ebdbc2e6fb67e8bc9b64b33d2 (diff)
parent43240f192dbdd0c0d267bc7c4a96f123704f0e2b (diff)
downloadtde-packaging-169853a068683db6540e3b77542d5139bb7867d1.tar.gz
tde-packaging-169853a068683db6540e3b77542d5139bb7867d1.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'redhat/kdelibs/trinity-kdelibs-3.5.13.spec')
-rwxr-xr-xredhat/kdelibs/trinity-kdelibs-3.5.13.spec77
1 files changed, 51 insertions, 26 deletions
diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
index 4b98b33f9..404a432c7 100755
--- a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
+++ b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
@@ -2,7 +2,7 @@
%if "%{?version}" == ""
%define version 3.5.13
%endif
-%define release 0
+%define release 1
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr"
@@ -15,69 +15,91 @@ BuildRequires: cmake >= 2.8
%define tde_docdir %{_docdir}/kde
%define tde_libdir %{_libdir}/trinity
+# 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
Version: %{version}
Release: %{?release}%{?dist}%{?_variant}
License: GPL
-Summary: Trinity KDE Libraries
+Summary: TDE Libraries
+Group: System Environment/Libraries
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
URL: http://www.trinitydesktop.org/
-Source0: kdelibs-%{version}.tar.gz
Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Source0: kdelibs-%{version}.tar.gz
BuildRequires: libtool
BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel
-BuildRequires: qt3-devel
-BuildRequires: avahi-devel avahi-qt3-devel
-#BuildRequires: lua-devel
+BuildRequires: avahi-devel
+BuildRequires: lua-devel
BuildRequires: krb5-devel libxslt-devel cups-devel libart_lgpl-devel pcre-devel
BuildRequires: libutempter-devel
BuildRequires: bzip2-devel
BuildRequires: openssl-devel
-
-Requires: tqtinterface
-Requires: trinity-arts
-Requires: qt3
-Requires: avahi avahi-qt3
+BuildRequires: gcc-c++
+BuildRequires: alsa-lib-devel
+BuildRequires: libidn-devel
+BuildRequires: qt%{?_qt_suffix}-devel
+BuildRequires: avahi-qt3-devel
+BuildRequires: jasper-devel
+
+Requires: tqtinterface
+Requires: trinity-arts
+Requires: avahi
+Requires: qt%{?_qt_suffix}
+Requires: avahi-qt3
%if "%{?_prefix}" == "/usr"
-Obsoletes: kdelibs3
+Obsoletes: kdelibs%{?_qt_suffix}
%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
+Obsoletes: kdelibs%{?_qt_suffix}-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: kdelibs%{?_qt_suffix}-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
-# 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}"
@@ -109,17 +131,17 @@ cd build
%install
%__rm -rf %{?buildroot}
-%__mkdir_p %{?buildroot}
-%make_install -C build
+%__make install DESTDIR=%{?buildroot} -C build
%__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
+%{tde_libdir}
EOF
+
%clean
%__rm -rf %{?buildroot}
@@ -259,6 +281,9 @@ EOF
%changelog
+* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-1
+- Initial release for RHEL 6, RHEL 5 and Fedora 15
+
* Wed Sep 02 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13pre.svn20110902-0.el6
- Import to GIT
- Built with future TDE version (3.5.13 + cmake + QT3.3.8d)