[globus-xio-pipe-driver/f19] Implement updated packaging guidelines
Mattias Ellert
ellert at fedoraproject.org
Sun Jul 28 08:16:49 UTC 2013
commit f31b046f0e0f5c0e4bc0277e7c5cce28a194c711
Author: Mattias Ellert <mattias.ellert at fysast.uu.se>
Date: Sun Jul 28 07:56:08 2013 +0200
Implement updated packaging guidelines
globus-xio-pipe-driver.spec | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/globus-xio-pipe-driver.spec b/globus-xio-pipe-driver.spec
index c33e3ee..7f8851f 100644
--- a/globus-xio-pipe-driver.spec
+++ b/globus-xio-pipe-driver.spec
@@ -4,10 +4,12 @@
%global flavor gcc32
%endif
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
+
Name: globus-xio-pipe-driver
%global _name %(tr - _ <<< %{name})
Version: 2.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Globus Toolkit - Globus Pipe Driver
Group: System Environment/Libraries
@@ -21,9 +23,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: globus-common%{?_isa} >= 14
Requires: globus-xio%{?_isa} >= 3
BuildRequires: grid-packaging-tools >= 3.4
-BuildRequires: globus-core%{?_isa} >= 8
-BuildRequires: globus-common-devel%{?_isa} >= 14
-BuildRequires: globus-xio-devel%{?_isa} >= 3
+BuildRequires: globus-core >= 8
+BuildRequires: globus-common-devel >= 14
+BuildRequires: globus-xio-devel >= 3
%package devel
Summary: Globus Toolkit - Globus Pipe Driver Development Files
@@ -66,7 +68,7 @@ unset GPT_LOCATION
%{_datadir}/globus/globus-bootstrap.sh
%configure --disable-static --with-flavor=%{flavor} \
- --with-docdir=%{_docdir}/%{name}-%{version}
+ --with-docdir=%{_pkgdocdir}
# Reduce overlinking
sed 's!CC -shared !CC \${wl}--as-needed -shared !g' -i libtool
@@ -91,7 +93,7 @@ grep 'lib.*\.la$' $GLOBUSPACKAGEDIR/%{_name}/%{flavor}_dev.filelist \
sed '/lib.*\.la$/d' -i $GLOBUSPACKAGEDIR/%{_name}/%{flavor}_dev.filelist
# Install README file
-install -m 644 -p %{SOURCE8} %{buildroot}%{_docdir}/%{name}-%{version}/README
+install -m 644 -p %{SOURCE8} %{buildroot}%{_pkgdocdir}/README
# Generate package filelists
cat $GLOBUSPACKAGEDIR/%{_name}/%{flavor}_rtl.filelist \
@@ -101,18 +103,24 @@ cat $GLOBUSPACKAGEDIR/%{_name}/noflavor_doc.filelist \
cat $GLOBUSPACKAGEDIR/%{_name}/%{flavor}_dev.filelist \
| sed s!^!%{_prefix}! > package-devel.filelist
+%clean
+rm -rf %{buildroot}
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f package.filelist
%dir %{_datadir}/globus/packages/%{_name}
-%dir %{_docdir}/%{name}-%{version}
-%doc %{_docdir}/%{name}-%{version}/README
+%dir %{_pkgdocdir}
+%doc %{_pkgdocdir}/README
%files -f package-devel.filelist devel
%changelog
+* Sun Jul 28 2013 Mattias Ellert <mattias.ellert at fysast.uu.se> - 2.2-6
+- Implement updated packaging guidelines
+
* Tue May 21 2013 Mattias Ellert <mattias.ellert at fysast.uu.se> - 2.2-5
- Add aarch64 to the list of 64 bit platforms
More information about the scm-commits
mailing list