Accepting request 455568 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/455568
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hwloc?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2017-02-13 23:43:23 +00:00 committed by Git OBS Bridge
commit f682fc9d99
5 changed files with 120 additions and 85 deletions

5
_service Normal file
View File

@ -0,0 +1,5 @@
<services>
<service name="download_files" mode="localonly">
<param name="enforceupstream">yes</param>
</service>
</services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c029b6b1638245837707bfa6c865f448af4e49e7d352335e019d818b51fecf8
size 4019136

3
hwloc-1.11.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3211d30e3d54ec4d2c7c5eda8aa267f618ac2d25497b9f16a6349af8a2e26433
size 1582550

View File

@ -1,3 +1,54 @@
-------------------------------------------------------------------
Wed Feb 8 12:46:42 UTC 2017 - jengelh@inai.de
- fix grammar errors
-------------------------------------------------------------------
Fri Jan 27 13:14:01 UTC 2017 - Thomas.Blume@suse.com
- use correct upstream source version
-------------------------------------------------------------------
Tue Jan 24 15:10:18 UTC 2017 - Thomas.Blume@suse.com
- use version_prefix in specfile and download_files service to get sources
-------------------------------------------------------------------
Mon Jan 23 14:37:16 UTC 2017 - tchvatal@suse.com
- Set noarch on the subpackages that are arch independent
- Run configure with enabling verbose mode and disable needless knobs
- Set version in the package fully (not 1.11 but 1.11.5+git...)
- Rename files to name of the package, if it needs to be renamed the folder
needs to keep the other name too
- Do not mess with provides/obsoletes about the hwloc-2.0 it won't work
with libsolv anyway without user interaction
* Bump the user version to 2.0.0.1.11.5+git... to allow 'fake' update
for user in order to work with fate#321929c#5
-------------------------------------------------------------------
Tue Jan 17 12:34:11 UTC 2017 - Thomas.Blume@suse.com
- switch to version 1.11.5 since 2.0 is a development version with
no .so-version set fate#321929 comment#5)
-------------------------------------------------------------------
Mon Aug 29 13:28:27 UTC 2016 - Thomas.Blume@suse.com
- fix missing manpage bug (bsc#995407)
- remove dependency to selinux-policy, selinux is not essential
for hwloc (bsc#976559 comment#4)
-------------------------------------------------------------------
Fri Apr 22 08:28:22 UTC 2016 - Thomas.Blume@suse.com
- add dependency to selinux-policy (bsc#976559)
-------------------------------------------------------------------
Fri Mar 11 05:39:24 UTC 2016 - thomas.blume@suse.com
- Update to 2.0 to support memory side cache (fate#319511)
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Dec 26 17:24:37 UTC 2015 - mpluskal@suse.com Sat Dec 26 17:24:37 UTC 2015 - mpluskal@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package hwloc # spec file for package hwloc
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,59 +17,48 @@
%global lname libhwloc5 %global lname libhwloc5
%define sversion 1.11 %if ! 0%{?is_opensuse}
%define version_prefix 2.0.0.
%endif
%define mainversion 1.11.5
Name: hwloc Name: hwloc
Version: 1.11.2 Version: %{?version_prefix}%{?mainversion}
Release: 0 Release: 0
Summary: Portable Hardware Locality Summary: Portable Hardware Locality
License: BSD-3-Clause License: BSD-3-Clause
Group: Productivity/Clustering/Computing Group: Productivity/Clustering/Computing
Url: http://www.open-mpi.org/projects/hwloc/ Url: http://www.open-mpi.org/projects/hwloc/
Source0: http://www.open-mpi.org/software/hwloc/v%{sversion}/downloads/%{name}-%{version}.tar.bz2 #Source0: %{name}-%{version}.tar.xz
Source0: https://github.com/open-mpi/hwloc/archive/%{name}-%{mainversion}.tar.gz
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libtool BuildRequires: libtool
#BuildRequires: libXNVCtrl-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: transfig BuildRequires: perl
BuildRequires: pkgconfig
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: w3m
Requires: %{lname} = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} <= 1220 && !0%{?suse_version}
BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(pciaccess) BuildRequires: pkgconfig(pciaccess)
BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(x11)
%else Requires: %{lname} = %{version}-%{release}
BuildRequires: cairo-devel Requires: perl-JSON
BuildRequires: libxml2-devel Requires: perl-base >= 5.18.2
BuildRequires: ncurses-devel Requires(post): desktop-file-utils
BuildRequires: xorg-x11-libICE-devel Requires(postun): desktop-file-utils
BuildRequires: xorg-x11-libSM-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: xorg-x11-libX11-devel %ifnarch s390 s390x i586 aarch64 %{arm}
%endif
#BuildRequires: texlive-latex
%if 0%{?suse_version} <= 1220
BuildRequires: texlive-bin-latex
%else
BuildRequires: texlive-makeindex-bin
%endif
# % ifnarch s390 s390x
# BuildRequires: libibverbs-devel
# % endif
%ifnarch s390 s390x i586 %arm
BuildRequires: libnuma-devel BuildRequires: libnuma-devel
%endif %endif
%description %description
The Portable Hardware Locality (hwloc) software package provides The Portable Hardware Locality (hwloc) software package provides
a portable abstraction (across OS, versions, architectures, ...) an abstraction (across OS, versions, architectures, ...)
of the hierarchical topology of modern architectures, including of the hierarchical topology of modern architectures, including
NUMA memory nodes, shared caches, processor sockets, processor cores NUMA memory nodes, shared caches, processor sockets, processor cores
and processing units (logical processors or "threads"). It also gathers and processing units (logical processors or "threads"). It also gathers
various system attributes such as cache and memory information. It primarily various system attributes such as cache and memory information. It primarily
aims at helping applications with gathering information about modern aims at helping applications with gathering information about modern
@ -79,73 +68,62 @@ hwloc may display the topology in multiple convenient formats.
It also offers a powerful programming interface (C API) to gather information It also offers a powerful programming interface (C API) to gather information
about the hardware, bind processes, and much more. about the hardware, bind processes, and much more.
%package lstopo
Summary: Shows the topology in various formats
Group: Productivity/Clustering/Computing
%description lstopo
Lstopo shows the topology of the system in various formats.
%package devel %package devel
Summary: Headers and shared development libraries for hwloc Summary: Headers and shared development libraries for hwloc
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{lname} = %{version} Requires: %{lname} = %{version}
Provides: lib%{name}-devel = %{version}-%{release} Provides: libhwloc-devel = %{version}
Obsoletes: lib%{name}-devel <= 1.4.1 Obsoletes: libhwloc-devel < %{version}
Obsoletes: libhwloc-devel = 0.0.0
%description devel %description devel
Headers and shared object symbolic links for the hwloc. This package contains the headers and shared object symbolic links
for the hwloc.
%package -n %{lname} %package -n %{lname}
Summary: Run time libraries for the hwloc Summary: Runtime libraries for hwloc
Group: System/Libraries Group: System/Libraries
Requires: %{name}-data Requires: %{name}-data
%description -n %{lname} %description -n %{lname}
Run time libraries for the %{name}. Package contains run time libraries for the hwloc.
%package data %package data
Summary: Run time data for hwloc Summary: Runtime data for hwloc
Group: Development/Libraries/C and C++ Group: System/Libraries
BuildArch: noarch
%description data %description data
Run time data for the hwloc. This package contains the runtime data for hwloc.
%package doc %package doc
Summary: Documentation for hwloc Summary: Documentation for hwloc
Group: Documentation/Other Group: Documentation/Other
BuildArch: noarch
%description doc %description doc
Package contains documentation for %{name}. This package contains the documentation for hwlock.
%prep %prep
%setup -q %setup -q -n %{name}-%{name}-%{mainversion}
%build %build
%if 0%{?sles_version} autoreconf -fvi
sed -i 's/1.11 dist-bzip2 subdir-objects foreign tar-ustar parallel-tests -Wall -Werror/1.10 dist-bzip2 subdir-objects foreign tar-ustar -Wall -Werror/g' configure.ac
%endif %configure \
autoreconf --force --install --disable-silent-rules
sed -i "s;(LN_S) lstopo-no-graphics;(LN_S) lstopo;g" utils/lstopo/Makefile.in make %{?_smp_mflags}
%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
%install %install
make install DESTDIR=%{buildroot} INSTALL="install -p" %make_install
%suse_update_desktop_file -r lstopo System Monitor %suse_update_desktop_file -r lstopo System Monitor
#Fix wrong permition on file hwloc-assembler-remote => I have reported this to upstream already
chmod 0755 %{buildroot}%{_bindir}/hwloc-assembler-remote
# We don't ship .la files. # We don't ship .la files.
rm -rf %{buildroot}%{_libdir}/libhwloc.la rm -rf %{buildroot}%{_libdir}/libhwloc.la
# documentation will be handled by % doc macro # documentation will be handled by % doc macro
rm -rf %{buildroot}%{_datadir}/doc/ rm -rf %{buildroot}%{_datadir}/doc/
%fdupes -s %{buildroot}/%{_mandir}/man1 %fdupes -s %{buildroot}/%{_mandir}/man1
%fdupes -s %{buildroot}/%{_mandir}/man3
%fdupes -s %{buildroot}/%{_mandir}/man7 %fdupes -s %{buildroot}/%{_mandir}/man7
%fdupes -s doc/doxygen-doc
%check %check
#XXX: this is weird, but make check got broken by removing doxygen-doc/man above #XXX: this is weird, but make check got broken by removing doxygen-doc/man above
@ -153,34 +131,36 @@ rm -rf %{buildroot}%{_datadir}/doc/
make %{?_smp_mflags} check || : make %{?_smp_mflags} check || :
%post -n %{lname} -p /sbin/ldconfig %post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig
%post
%desktop_database_post
%postun
%desktop_database_postun
%files %files
%defattr(-, root, root, -) %defattr(-, root, root, -)
%doc AUTHORS COPYING NEWS README VERSION %doc AUTHORS COPYING NEWS README VERSION
%attr(0755,root,root) %{_bindir}/%{name}*
# This binary is built only for intel architectures # This binary is built only for intel architectures
%ifarch %ix86 x86_64 %ifarch %{ix86} x86_64
%attr(0755,root,root) %{_sbindir}/hwloc-dump-hwdata %attr(0755,root,root) %{_sbindir}/hwloc-dump-hwdata
%endif %endif
%doc %{_mandir}/man1/%{name}* %{_mandir}/man1/hwloc*
%{_mandir}/man1/lstopo*
%files lstopo %{_bindir}/hwloc*
%defattr(-,root,root) %{_bindir}/lstopo*
%attr(0755,root,root) %{_bindir}/lstopo* %dir %{_datadir}/hwloc
%{_datadir}/applications/*.desktop %{_datadir}/applications/*.desktop
%doc %{_mandir}/man1/lstopo.1* %{_datadir}/hwloc/hwloc-dump-hwdata.service
%doc %{_mandir}/man1/lstopo-no-graphics.1.*
%files devel %files devel
%defattr(-, root, root, -) %defattr(-, root, root, -)
%doc %{_mandir}/man3/* %{_mandir}/man7/hwloc*
%doc %{_mandir}/man7/%{name}* %{_includedir}/hwloc
%{_includedir}/%{name} %{_includedir}/hwloc.h
%{_includedir}/%{name}.h %{_libdir}/libhwloc.so
%{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/hwloc.pc
%{_libdir}/pkgconfig/%{name}.pc
%files -n %{lname} %files -n %{lname}
%defattr(-, root, root, -) %defattr(-, root, root, -)
@ -188,13 +168,12 @@ make %{?_smp_mflags} check || :
%files data %files data
%defattr(-, root, root, -) %defattr(-, root, root, -)
%dir %{_datadir}/%{name} %dir %{_datadir}/hwloc
%{_datadir}/%{name}/%{name}.dtd %{_datadir}/hwloc/hwloc.dtd
%{_datadir}/%{name}/%{name}-valgrind.supp %{_datadir}/hwloc/hwloc-valgrind.supp
%files doc %files doc
%defattr(-, root, root, -) %defattr(-, root, root, -)
%doc doc/doxygen-doc/html %doc ./doc/images/*.pdf
%doc doc/doxygen-doc/hwloc*.pdf
%changelog %changelog