[hwloc/f18] Created libs package with reduced dependencies
Jirka Hladky
jhladky at fedoraproject.org
Sun Feb 3 21:00:19 UTC 2013
commit 4bcbf45b3777e59c559b9bc5a693c714f55dca5c
Author: Jirka Hladky <hladky.jiri at gmail.com>
Date: Sun Feb 3 22:00:13 2013 +0100
Created libs package with reduced dependencies
hwloc.spec | 37 +++++++++++++++++++++++++------------
1 files changed, 25 insertions(+), 12 deletions(-)
---
diff --git a/hwloc.spec b/hwloc.spec
index 6b536e8..80a6122 100644
--- a/hwloc.spec
+++ b/hwloc.spec
@@ -1,11 +1,12 @@
Summary: Portable Hardware Locality - portable abstraction of hierarchical architectures
Name: hwloc
Version: 1.4.2
-Release: 2%{?dist}
+Release: 3%{?dist}
License: BSD
Group: Applications/System
URL: http://www.open-mpi.org/projects/hwloc/
Source0: http://www.open-mpi.org/software/hwloc/v1.4/downloads/%{name}-%{version}.tar.bz2
+Requires: %{name}-libs = %{version}-%{release}
BuildRequires: libX11-devel libxml2-devel cairo-devel ncurses-devel pciutils-devel transfig doxygen w3m
%ifnarch s390 s390x
@@ -13,7 +14,6 @@ BuildRequires: libibverbs-devel
%endif
%ifnarch s390 s390x %{arm}
BuildRequires: numactl-devel
-Requires: numactl-libs
%endif
%description
@@ -33,11 +33,18 @@ about the hardware, bind processes, and much more.
%package devel
Summary: Headers and shared development libraries for hwloc
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
%description devel
Headers and shared object symbolic links for the hwloc.
+%package libs
+Summary: Run time libraries for the hwloc
+Group: Development/Libraries
+
+%description libs
+Run time libraries for the hwloc
+
%prep
%setup -q
@@ -63,23 +70,16 @@ Headers and shared object symbolic links for the hwloc.
%check
%{__make} check
-%post -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%files
%defattr(-, root, root, -)
%{_bindir}/%{name}*
%{_bindir}/lstopo
-%{_mandir}/man7/%{name}*
%{_mandir}/man1/%{name}*
%{_mandir}/man1/lstopo*
-%dir %{_datadir}/%{name}
-%{_datadir}/%{name}/%{name}.dtd
-%{_datadir}/%{name}/%{name}-valgrind.supp
-%dir %{_defaultdocdir}/%{name}-%{version}
-%{_defaultdocdir}/%{name}-%{version}/*[^c]
-%{_libdir}/libhwloc*so.*
%files devel
%defattr(-, root, root, -)
@@ -91,8 +91,21 @@ Headers and shared object symbolic links for the hwloc.
%{_defaultdocdir}/%{name}-%{version}/*c
%{_libdir}/*.so
+%files libs
+%defattr(-, root, root, -)
+%{_mandir}/man7/%{name}*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/%{name}.dtd
+%{_datadir}/%{name}/%{name}-valgrind.supp
+%dir %{_defaultdocdir}/%{name}-%{version}
+%{_defaultdocdir}/%{name}-%{version}/*[^c]
+%{_libdir}/libhwloc*so.*
+
%changelog
+* Sun Feb 3 2013 Jirka Hladky <hladky.jiri at gmail.com> - 1.4.2-3
+- Created libs package with reduced dependencies
+
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list