Splitted hwloc package to hwloc-libs subpackage (with only few dependencies) and to the hwloc main package which includes users utilities

This commit is contained in:
Jirka Hladky 2013-02-01 01:53:42 +01:00
parent 7022980bcd
commit 58c94c3d04

View File

@ -1,11 +1,12 @@
Summary: Portable Hardware Locality - portable abstraction of hierarchical architectures
Name: hwloc
Version: 1.6.1
Release: 0%{?dist}
Release: 1%{?dist}
License: BSD
Group: Applications/System
URL: http://www.open-mpi.org/projects/hwloc/
Source0: http://www.open-mpi.org/software/hwloc/v1.5/downloads/%{name}-%{version}.tar.bz2
Source0: http://www.open-mpi.org/software/hwloc/v1.6/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
@ -33,11 +34,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,24 +71,17 @@ 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
%{_bindir}/lstopo-no-graphics
%{_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, -)
@ -92,8 +93,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
* Thu Jan 31 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.6.1-1
- Created libs package with reduced dependencies
* Sat Jan 19 2013 Jirka Hladky <hladky.jiri@gmail.com> - 1.6.1-0
- Update to version 1.6.1