Accepting request 674938 from science
- add a examples subpackage which include graphs* file to test Metis - 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. OBS-URL: https://build.opensuse.org/request/show/674938 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/metis?expand=0&rev=6
This commit is contained in:
commit
c265f5c479
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 12 12:58:53 UTC 2019 - Antoine Ginies <aginies@suse.com>
|
||||||
|
|
||||||
|
- add a examples subpackage which include graphs* file to test Metis
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 11 06:52:10 UTC 2019 - Egbert Eich <eich@suse.com>
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 14 09:50:54 UTC 2019 - eich@suse.com
|
Mon Jan 14 09:50:54 UTC 2019 - eich@suse.com
|
||||||
|
|
||||||
|
55
metis.spec
55
metis.spec
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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: cmake >= 2.8
|
|||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
%if %{with hpc}
|
%if %{with hpc}
|
||||||
%hpc_requires
|
|
||||||
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
|
BuildRequires: %{compiler_family}%{?c_f_ver}-compilers-hpc-macros-devel
|
||||||
BuildRequires: lua-lmod
|
BuildRequires: lua-lmod
|
||||||
BuildRequires: suse-hpc
|
BuildRequires: suse-hpc
|
||||||
|
%hpc_requires
|
||||||
|
Requires: %libname = %version
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Recommends: %{name}-doc = %{version}
|
Recommends: %{name}-doc = %{version}
|
||||||
@ -108,7 +109,7 @@ and computing fill-reducing orderings of sparse matrices. The underlying algorit
|
|||||||
used by METIS are based on a multilevel paradigm that, at the time, had been
|
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.
|
shown to produce quality results and scale to large problems.
|
||||||
|
|
||||||
%{?with_hpc:%{hpc_master_package}}
|
%{?with_hpc:%{hpc_master_package -L}}
|
||||||
|
|
||||||
%package -n %{libname}
|
%package -n %{libname}
|
||||||
Summary: Serial Graph Partitioning and Fill-reducing Matrix Ordering library
|
Summary: Serial Graph Partitioning and Fill-reducing Matrix Ordering library
|
||||||
@ -127,7 +128,10 @@ shown to produce quality results and scale to large problems.
|
|||||||
Summary: Metis development files
|
Summary: Metis development files
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %libname = %{version}
|
Requires: %libname = %{version}
|
||||||
%{?with_hpc:%hpc_requires_devel}
|
%if %{with hpc}
|
||||||
|
%hpc_requires_devel
|
||||||
|
Requires: %libname = %version
|
||||||
|
%endif
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
METIS library provides to partitioning unstructured graphs and hypergraph
|
METIS library provides to partitioning unstructured graphs and hypergraph
|
||||||
@ -137,7 +141,7 @@ shown to produce quality results and scale to large problems.
|
|||||||
|
|
||||||
This package provides development files.
|
This package provides development files.
|
||||||
|
|
||||||
%{?with_hpc:%{hpc_master_package devel}}
|
%{?with_hpc:%{hpc_master_package -L devel}}
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Metis documentation
|
Summary: Metis documentation
|
||||||
@ -152,6 +156,16 @@ shown to produce quality results and scale to large problems.
|
|||||||
|
|
||||||
%{?with_hpc:%{hpc_master_package doc}}
|
%{?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
|
%prep
|
||||||
%{?with_hpc: %hpc_debug}
|
%{?with_hpc: %hpc_debug}
|
||||||
%setup -q -n %{pname}-%{version}
|
%setup -q -n %{pname}-%{version}
|
||||||
@ -178,7 +192,7 @@ make %{?_smp_mflags}
|
|||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
%if %{with hpc}
|
%if %{with hpc}
|
||||||
%{hpc_write_pkgconfig -n %{pname} -l lib%{pname}}
|
%{hpc_write_pkgconfig}
|
||||||
|
|
||||||
%hpc_write_modules_files
|
%hpc_write_modules_files
|
||||||
#%%Module1.0#####################################################################
|
#%%Module1.0#####################################################################
|
||||||
@ -193,7 +207,7 @@ puts stderr "\nVersion %{version}\n"
|
|||||||
module-whatis "Name: %{pname} built with %{compiler_family} toolchain"
|
module-whatis "Name: %{pname} built with %{compiler_family} toolchain"
|
||||||
module-whatis "Version: %{version}"
|
module-whatis "Version: %{version}"
|
||||||
module-whatis "Category: runtime library"
|
module-whatis "Category: runtime library"
|
||||||
module-whatis "Description: %{summary}"
|
module-whatis "Description: %{SUMMARY}"
|
||||||
module-whatis "%{url}"
|
module-whatis "%{url}"
|
||||||
|
|
||||||
set version %{version}
|
set version %{version}
|
||||||
@ -205,13 +219,13 @@ setenv %{hpc_upcase %pname}_DIR %{hpc_prefix}
|
|||||||
setenv %{hpc_upcase %pname}_BIN %{hpc_bindir}
|
setenv %{hpc_upcase %pname}_BIN %{hpc_bindir}
|
||||||
setenv %{hpc_upcase %pname}_LIB %{hpc_libdir}
|
setenv %{hpc_upcase %pname}_LIB %{hpc_libdir}
|
||||||
|
|
||||||
if {[file isdirectory %{hpc_includedir}]} {
|
|
||||||
prepend-path LIBRARY_PATH %{hpc_libdir}
|
prepend-path LIBRARY_PATH %{hpc_libdir}
|
||||||
|
if {[file isdirectory %{hpc_includedir}]} {
|
||||||
prepend-path CPATH %{hpc_includedir}
|
prepend-path CPATH %{hpc_includedir}
|
||||||
prepend-path C_INCLUDE_PATH %{hpc_includedir}
|
prepend-path C_INCLUDE_PATH %{hpc_includedir}
|
||||||
prepend-path CPLUS_INCLUDE_PATH %{hpc_includedir}
|
prepend-path CPLUS_INCLUDE_PATH %{hpc_includedir}
|
||||||
prepend-path INCLUDE %{hpc_includedir}
|
prepend-path INCLUDE %{hpc_includedir}
|
||||||
|
%hpc_modulefile_add_pkgconfig_path
|
||||||
setenv %{hpc_upcase %pname}_INC %{hpc_includedir}
|
setenv %{hpc_upcase %pname}_INC %{hpc_includedir}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -221,18 +235,26 @@ EOF
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cp -p %{buildroot}%{p_bindir}/* graphs
|
|
||||||
pushd graphs
|
pushd graphs
|
||||||
LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH ./ndmetis mdual.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 ./mpmetis metis.mesh 2
|
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 ./gpmetis test.mgraph 4
|
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 ./gpmetis copter2.graph 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 ./graphchk 4elt.graph
|
LD_LIBRARY_PATH=%{buildroot}%{p_libdir}:$LD_LIBRARY_PATH %{buildroot}%{p_bindir}/graphchk 4elt.graph
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
%if %{without hpc}
|
||||||
%post -n %libname -p /sbin/ldconfig
|
%post -n %libname -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -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
|
%files
|
||||||
%{?with_hpc:%dir %p_bindir}
|
%{?with_hpc:%dir %p_bindir}
|
||||||
@ -254,4 +276,7 @@ popd
|
|||||||
%files doc
|
%files doc
|
||||||
%doc manual/manual.pdf
|
%doc manual/manual.pdf
|
||||||
|
|
||||||
|
%files examples
|
||||||
|
%doc graphs
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user