Slight updates on basic components

v3.5.13-sru
albator 13 years ago
parent f14a4cc47a
commit 89bffdf461

@ -5,3 +5,7 @@ dependencies/arts
kdelibs
kdebase
kdebindings
kdeutils
kdepim
kdesdk
kdevelop

@ -7,6 +7,9 @@
# 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 cmake_modules_dir %{_datadir}/cmake
%else
%define cmake_modules_dir %{_datadir}/cmake/Modules
%endif
# TQT include files may conflict with QT4 includes, so we move them to a subdirectory.
@ -77,9 +80,9 @@ sed -i %{?buildroot}%{_libdir}/pkgconfig/tqt.pc \
-e '/^uic_executable=.*/ s,^\(uic_executable=\).*,\1%{_bindir}/uic-tqt,'
# Install 'cmake' modules for a specific package (for later use)
%__mkdir_p %{?buildroot}%{_usr}/share/cmake/Modules
%__mkdir_p %{?buildroot}%{cmake_modules_dir}
for i in cmake/modules/*.cmake; do
install -m 644 $i %{?buildroot}%{_usr}/share/cmake/Modules
install -m 644 $i %{?buildroot}%{cmake_modules_dir}
done
%clean
@ -94,7 +97,7 @@ done
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/pkgconfig/*.pc
%{_usr}/share/cmake/Modules/*.cmake
%{cmake_modules_dir}/*.cmake
%changelog

@ -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"
@ -12,7 +13,7 @@
Name: trinity-kdebase
Version: %{version}
Release: 0%{?dist}%{?_variant}
Release: %{?release}%{?dist}%{?_variant}
License: GPL
Vendor: Trinity Project
Packager: Francois Andriot <francois.andriot@free.fr>
@ -34,6 +35,7 @@ BuildRequires: tqtinterface-devel
BuildRequires: trinity-arts-devel
BuildRequires: trinity-kdelibs-devel
BuildRequires: qt3-devel >= 3.3.8d
BuildRequires: cmake >= 2.8
BuildRequires: openssl-devel
BuildRequires: avahi-devel avahi-qt3-devel
BuildRequires: imake
@ -136,6 +138,9 @@ Protocol handlers (KIOslaves) for personal information management, including:
%patch5 -p1
%patch6 -p1
# 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

@ -71,6 +71,10 @@ 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

Loading…
Cancel
Save