summaryrefslogtreecommitdiffstats
path: root/redhat/kdelibs
diff options
context:
space:
mode:
authoralbator <albator@arcadia.vtf>2011-09-06 18:59:37 +0200
committeralbator <albator@arcadia.vtf>2011-09-06 18:59:37 +0200
commitf14a4cc47a9364e56b0fe7db659499b33cb951ae (patch)
tree9e72a9f1d0f107a5f8244c4a3417f0a8abb2b6df /redhat/kdelibs
parentcefafdaf87f83138d87a4c8136be3f791a1ed308 (diff)
downloadtde-packaging-f14a4cc47a9364e56b0fe7db659499b33cb951ae.tar.gz
tde-packaging-f14a4cc47a9364e56b0fe7db659499b33cb951ae.zip
Small updates for kdelibs & kdesdk
Diffstat (limited to 'redhat/kdelibs')
-rwxr-xr-xredhat/kdelibs/trinity-kdelibs-3.5.12.spec22
-rwxr-xr-xredhat/kdelibs/trinity-kdelibs-3.5.13.spec11
2 files changed, 27 insertions, 6 deletions
diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.12.spec b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec
index 65c60a318..a8dee7851 100755
--- a/redhat/kdelibs/trinity-kdelibs-3.5.12.spec
+++ b/redhat/kdelibs/trinity-kdelibs-3.5.12.spec
@@ -1,13 +1,24 @@
+# Default version for this component
+%if "%{?version}" == ""
+%define version 3.5.12
+%endif
+%define release 5
+
# 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 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
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
@@ -16,7 +27,7 @@ Summary: Trinity KDE Libraries
Source0: kdelibs-%{version}.tar.gz
Prefix: %{_prefix}
-BuildRequires: autoconf automake libtool m4
+BuildRequires: libtool
BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel
BuildRequires: qt3-devel
@@ -59,10 +70,12 @@ 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
+
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
export PATH="%{_bindir}:${PATH}"
@@ -94,6 +107,7 @@ 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}
@@ -104,7 +118,7 @@ cat <<EOF >%{?buildroot}%{_sysconfdir}/ld.so.conf.d/trinity.conf
%if "%{?_prefix}" != "/usr"
%{_libdir}
%endif
-%{_libdir}/trinity
+%{tde_libdir}
EOF
%clean
diff --git a/redhat/kdelibs/trinity-kdelibs-3.5.13.spec b/redhat/kdelibs/trinity-kdelibs-3.5.13.spec
index efa1ae90a..569f1942d 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,10 +10,15 @@
%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
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
@@ -21,7 +27,6 @@ Summary: Trinity KDE Libraries
Source0: kdelibs-%{version}.tar.gz
Prefix: %{_prefix}
-BuildRequires: cmake >= 2.8
BuildRequires: libtool
BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel
@@ -66,6 +71,7 @@ format for easy browsing
%prep
%setup -q -n kdelibs
+
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
export PATH="%{_bindir}:${PATH}"
@@ -94,6 +100,7 @@ cd build
%__make %{?_smp_mflags}
+
%install
%__rm -rf %{?buildroot}
%__mkdir_p %{?buildroot}