summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec
diff options
context:
space:
mode:
authoralbator <albator@arcadia.vtf>2011-10-29 23:32:41 +0200
committeralbator <albator@arcadia.vtf>2011-10-29 23:32:41 +0200
commit703986bfe4270bb901f594b92eebb265d04ad8f5 (patch)
treeca0361b20e1cf443754d4104663977e3f0a2077c /redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec
parent5a3c8c66709ef8eeb3708b0eb2732fa9e84d37d3 (diff)
downloadtde-packaging-703986bfe4270bb901f594b92eebb265d04ad8f5.tar.gz
tde-packaging-703986bfe4270bb901f594b92eebb265d04ad8f5.zip
Lot of updates for TDE 3.5.13 (RHEL 5, RHEL 6, Fedora 15)
Diffstat (limited to 'redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec')
-rwxr-xr-xredhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec18
1 files changed, 14 insertions, 4 deletions
diff --git a/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec b/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec
index 859afa0bd..d1a56fa18 100755
--- a/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec
+++ b/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec
@@ -27,12 +27,14 @@ Version: %{version}
Release: %{release}%{?dist}%{?_variant}
License: GPL
Summary: Trinity QT Interface
+Group: System Environment/Libraries
Vendor: Trinity Project
URL: http://www.trinitydesktop.org/
Packager: Francois Andriot <francois.andriot@free.fr>
Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{version}.tar.gz
@@ -45,8 +47,9 @@ BuildRequires: pth-devel
Trinity QT Interface
%package devel
-Requires: %{name}
+Group: Development/Libraries
Summary: %{name} - Development files
+Requires: %{name} = %{version}-%{release}
%description devel
Development files for %{name}
@@ -75,11 +78,18 @@ cd build
%install
%__rm -rf %{?buildroot}
%__mkdir_p %{?buildroot}%{_includedir}
-%make_install -C build
+%__make install DESTDIR=%{?buildroot} -C build
+
+# RHEL 5: add newline at end of include files
+%if 0%{?rhel} && 0%{?rhel} <= 5
+for i in %{?buildroot}%{_includedir}/*.h; do
+ echo "" >>${i}
+done
+%endif
# Fix 'tqt.pc': UIC executable is not correct
-sed -i %{?buildroot}%{_libdir}/pkgconfig/tqt.pc \
- -e '/^uic_executable=.*/ s,^\(uic_executable=\).*,\1%{_bindir}/uic-tqt,'
+#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}%{cmake_modules_dir}