Update to 1.8, No numa on aarch64, Cleanup and modernise spec
This commit is contained in:
parent
a5b9fe2583
commit
9ef68eac27
16
.gitignore
vendored
16
.gitignore
vendored
@ -1,15 +1 @@
|
||||
hwloc-1.0.2.tar.bz2
|
||||
/hwloc-1.1.tar.bz2
|
||||
/hwloc-1.2.tar.bz2
|
||||
/hwloc-1.2.1.tar.bz2
|
||||
/hwloc-1.2.2.tar.bz2
|
||||
/hwloc-1.3.tar.bz2
|
||||
/hwloc-1.4.tar.bz2
|
||||
/hwloc-1.4.1.tar.bz2
|
||||
/hwloc-1.4.2.tar.bz2
|
||||
/hwloc-1.5.tar.bz2
|
||||
/hwloc-1.5.1.tar.bz2
|
||||
/hwloc-1.6.1.tar.bz2
|
||||
/hwloc-1.7.tar.bz2
|
||||
/hwloc-1.7.patch
|
||||
/hwloc-1.7-manpage.patch
|
||||
/hwloc-*.tar.bz2
|
||||
|
52
hwloc.spec
52
hwloc.spec
@ -1,23 +1,28 @@
|
||||
Summary: Portable Hardware Locality - portable abstraction of hierarchical architectures
|
||||
Name: hwloc
|
||||
Version: 1.7
|
||||
Release: 2%{?dist}
|
||||
Version: 1.8
|
||||
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.7/downloads/%{name}-%{version}.tar.bz2
|
||||
Patch0: hwloc-1.7.patch
|
||||
Patch1: hwloc-1.7-manpage.patch
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
Source0: http://www.open-mpi.org/software/hwloc/v%{version}/downloads/%{name}-%{version}.tar.bz2
|
||||
|
||||
BuildRequires: libX11-devel libxml2-devel cairo-devel ncurses-devel libpciaccess-devel libXNVCtrl-devel transfig doxygen w3m texlive-latex texlive-makeindex libtool-ltdl-devel autoconf automake libtool
|
||||
BuildRequires: cairo-devel
|
||||
BuildRequires: libpciaccess-devel
|
||||
BuildRequires: libtool-ltdl-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libXNVCtrl-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: transfig doxygen w3m
|
||||
BuildRequires: texlive-latex texlive-makeindex
|
||||
%ifnarch s390 s390x
|
||||
BuildRequires: libibverbs-devel
|
||||
%endif
|
||||
%ifnarch s390 s390x %{arm}
|
||||
%ifnarch s390 s390x %{arm} aarch64
|
||||
BuildRequires: numactl-devel
|
||||
##Requires: numactl-libs
|
||||
%endif
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description
|
||||
The Portable Hardware Locality (hwloc) software package provides
|
||||
@ -50,38 +55,32 @@ Run time libraries for the hwloc
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
autoreconf --force --install
|
||||
%configure
|
||||
##sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
##sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
%{__make} %{?_smp_mflags} V=1
|
||||
make %{?_smp_mflags} V=1
|
||||
|
||||
%install
|
||||
%{__make} install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
|
||||
make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
|
||||
|
||||
#Fix wrong permition on file hwloc-assembler-remote => I have reported this to upstream already
|
||||
%{__chmod} 0755 %{buildroot}%{_bindir}/hwloc-assembler-remote
|
||||
chmod 0755 %{buildroot}%{_bindir}/hwloc-assembler-remote
|
||||
|
||||
# We don't ship .la files.
|
||||
%{__rm} -rf %{buildroot}%{_libdir}/libhwloc.la
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
%{__mv} %{buildroot}%{_defaultdocdir}/%{name} %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
||||
%{__cp} -p AUTHORS COPYING NEWS README VERSION %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
||||
%{__cp} -p doc/hwloc-hello.c %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
||||
mv %{buildroot}%{_defaultdocdir}/%{name} %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
||||
cp -p AUTHORS COPYING NEWS README VERSION %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
||||
cp -p doc/hwloc-hello.c %{buildroot}%{_defaultdocdir}/%{name}-%{version}
|
||||
|
||||
%check
|
||||
%{__make} check
|
||||
make check
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-, root, root, -)
|
||||
%{_bindir}/%{name}*
|
||||
%{_bindir}/lstopo
|
||||
%{_bindir}/lstopo-no-graphics
|
||||
@ -89,7 +88,6 @@ autoreconf --force --install
|
||||
%{_mandir}/man1/lstopo*
|
||||
|
||||
%files devel
|
||||
%defattr(-, root, root, -)
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_mandir}/man3/*
|
||||
%dir %{_includedir}/%{name}
|
||||
@ -99,7 +97,6 @@ autoreconf --force --install
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files libs
|
||||
%defattr(-, root, root, -)
|
||||
%{_mandir}/man7/%{name}*
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/%{name}.dtd
|
||||
@ -110,6 +107,11 @@ autoreconf --force --install
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Dec 19 2013 Peter Robinson <pbrobinson@fedoraproject.org> 1.8-1
|
||||
- Update to 1.8
|
||||
- No numa on aarch64
|
||||
- Cleanup and modernise spec
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user