Hello community,

here is the log from the commit of package metis for openSUSE:Factory checked 
in at 2019-02-25 17:45:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/metis (Old)
 and      /work/SRC/openSUSE:Factory/.metis.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "metis"

Mon Feb 25 17:45:31 2019 rev:6 rq:674938 version:5.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/metis/metis.changes      2019-02-04 
21:17:24.591736575 +0100
+++ /work/SRC/openSUSE:Factory/.metis.new.28833/metis.changes   2019-02-25 
17:45:33.142902699 +0100
@@ -1,0 +2,18 @@
+Tue Feb 12 12:58:53 UTC 2019 - Antoine Ginies <[email protected]>
+
+- add a examples subpackage which include graphs* file to test Metis
+
+-------------------------------------------------------------------
+Mon Feb 11 06:52:10 UTC 2019 - Egbert Eich <[email protected]>
+
+- Set default module version correctly when installing
+  master package, unset when deinstalling the default library
+  package.
+- Fix %%post and %%postun scripts for HPC.
+- Fix dependencies for HPC.
+- Fix HPC modulefile:
+  * Aibraries are always there when module file is installed.
+  * Set PKG_CONFIG_PATH.
+- Fix package group names.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ metis.spec ++++++
--- /var/tmp/diff_new_pack.0eG91Y/_old  2019-02-25 17:45:34.262902239 +0100
+++ /var/tmp/diff_new_pack.0eG91Y/_new  2019-02-25 17:45:34.274902234 +0100
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -93,10 +93,11 @@
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
 %if %{with hpc}
-%hpc_requires
 BuildRequires:  %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
 BuildRequires:  lua-lmod
 BuildRequires:  suse-hpc
+%hpc_requires
+Requires:       %libname = %version
 %endif
 
 Recommends:     %{name}-doc = %{version}
@@ -108,7 +109,7 @@
 used by METIS are based on a multilevel paradigm that, at the time, had been
 shown to produce quality results and scale to large problems.
 
-%{?with_hpc:%{hpc_master_package}}
+%{?with_hpc:%{hpc_master_package -L}}
 
 %package     -n %{libname}
 Summary:        Serial Graph Partitioning and Fill-reducing Matrix Ordering 
library
@@ -127,7 +128,10 @@
 Summary:        Metis development files
 Group:          Development/Libraries/C and C++
 Requires:       %libname = %{version}
-%{?with_hpc:%hpc_requires_devel}
+%if %{with hpc}
+%hpc_requires_devel
+Requires:       %libname = %version
+%endif
 
 %description    devel
 METIS library provides to partitioning unstructured graphs and hypergraph
@@ -137,7 +141,7 @@
 
 This package provides development files.
 
-%{?with_hpc:%{hpc_master_package devel}}
+%{?with_hpc:%{hpc_master_package -L devel}}
 
 %package        doc
 Summary:        Metis documentation
@@ -152,6 +156,16 @@
 
 %{?with_hpc:%{hpc_master_package doc}}
 
+%package        examples
+Summary:        Metis examples
+Group:          Documentation/Other
+BuildArch:      noarch
+
+%description    examples
+METIS library provides to partitioning unstructured graphs and hypergraph
+and computing fill-reducing orderings of sparse matrices. This package provides
+graph files you can use to test Metis.
+
 %prep
 %{?with_hpc: %hpc_debug}
 %setup -q -n %{pname}-%{version}
@@ -178,7 +192,7 @@
 make install DESTDIR=%{buildroot}
 
 %if %{with hpc}
-%{hpc_write_pkgconfig -n %{pname} -l lib%{pname}}
+%{hpc_write_pkgconfig}
 
 %hpc_write_modules_files
 
#%%Module1.0#####################################################################
@@ -193,7 +207,7 @@
 module-whatis "Name: %{pname} built with %{compiler_family} toolchain"
 module-whatis "Version: %{version}"
 module-whatis "Category: runtime library"
-module-whatis "Description: %{summary}"
+module-whatis "Description: %{SUMMARY}"
 module-whatis "%{url}"
 
 set     version                     %{version}
@@ -205,13 +219,13 @@
 setenv          %{hpc_upcase %pname}_BIN        %{hpc_bindir}
 setenv          %{hpc_upcase %pname}_LIB        %{hpc_libdir}
 
-if {[file isdirectory  %{hpc_includedir}]} {
 prepend-path    LIBRARY_PATH        %{hpc_libdir}
+if {[file isdirectory  %{hpc_includedir}]} {
 prepend-path    CPATH               %{hpc_includedir}
 prepend-path    C_INCLUDE_PATH      %{hpc_includedir}
 prepend-path    CPLUS_INCLUDE_PATH  %{hpc_includedir}
 prepend-path    INCLUDE             %{hpc_includedir}
-
+%hpc_modulefile_add_pkgconfig_path
 setenv          %{hpc_upcase %pname}_INC        %{hpc_includedir}
 }
 
@@ -221,18 +235,26 @@
 %endif
 
 %check
-cp -p %{buildroot}%{p_bindir}/* graphs
 pushd graphs
-LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH ./ndmetis mdual.graph
-LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH ./mpmetis metis.mesh 2
-LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH ./gpmetis test.mgraph 
4
-LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH ./gpmetis 
copter2.graph 4
-LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH ./graphchk 4elt.graph
+LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH 
%{buildroot}%{p_bindir}/ndmetis mdual.graph
+LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH 
%{buildroot}%{p_bindir}/mpmetis metis.mesh 2
+LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH 
%{buildroot}%{p_bindir}/gpmetis test.mgraph 4
+LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH 
%{buildroot}%{p_bindir}/gpmetis copter2.graph 4
+LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH 
%{buildroot}%{p_bindir}/graphchk 4elt.graph
 popd
 
+%if %{without hpc}
 %post -n %libname -p /sbin/ldconfig
 
 %postun -n %libname -p /sbin/ldconfig
+%else
+%post -n %libname
+/sbin/ldconfig -N %{p_libdir}
+
+%postun -n %libname
+/sbin/ldconfig -N %{p_libdir}
+%hpc_module_delete_if_default
+%endif
 
 %files
 %{?with_hpc:%dir %p_bindir}
@@ -254,4 +276,7 @@
 %files doc
 %doc manual/manual.pdf
 
+%files examples
+%doc graphs
+
 %changelog


Reply via email to