- Fix master package summary and description
- Add support for different name than %name OBS-URL: https://build.opensuse.org/package/show/science:HPC/suse-hpc?expand=0&rev=24
This commit is contained in:
parent
156ef76b19
commit
3a597ec2f0
2
_service
2
_service
@ -6,7 +6,7 @@
|
|||||||
<param name="exclude">.git</param>
|
<param name="exclude">.git</param>
|
||||||
<param name="filename">suse-hpc</param>
|
<param name="filename">suse-hpc</param>
|
||||||
<param name="versionformat">0.1.%h</param>
|
<param name="versionformat">0.1.%h</param>
|
||||||
<param name="revision">10f46e14ff638192561d1de900eef46bdd9bb2eb</param>
|
<param name="revision">131fdf981724f18a7cef824665884cc40491f265</param>
|
||||||
<param name="extract">general/dlinfo.c</param>
|
<param name="extract">general/dlinfo.c</param>
|
||||||
<param name="extract">general/macros.hpc</param>
|
<param name="extract">general/macros.hpc</param>
|
||||||
<param name="extract">general/hpc_elf.pl</param>
|
<param name="extract">general/hpc_elf.pl</param>
|
||||||
|
15
macros.hpc
15
macros.hpc
@ -353,10 +353,12 @@ cat << EOF > %{buildroot}%{hpc_module_dep_base}%{version}
|
|||||||
# -a: Use native arch even if no library package.
|
# -a: Use native arch even if no library package.
|
||||||
# -N <pname>: Specify if a sub-package has different basename (pname)
|
# -N <pname>: Specify if a sub-package has different basename (pname)
|
||||||
# -q: For internal use only!
|
# -q: For internal use only!
|
||||||
|
# -M: use specified name in place of %%name
|
||||||
#
|
#
|
||||||
%hpc_master_package(n:g:s:lLaqN:) \
|
%hpc_master_package(n:g:s:lLaqN:M:) \
|
||||||
%define _mylib %{-s:lib}%{!-s:%{-l:lib}} \
|
%define _mylib %{-s:lib}%{!-s:%{-l:lib}} \
|
||||||
%define _p_ext %(test -n "%{*}" && echo -%{*}) \
|
%define _p_ext %(test -n "%{*}" && echo -%{*}) \
|
||||||
|
%{-M: \ %define name %{-M*}} \
|
||||||
%{!-N:\
|
%{!-N:\
|
||||||
%define _pname %{pname} \
|
%define _pname %{pname} \
|
||||||
%define _name %{name} \
|
%define _name %{name} \
|
||||||
@ -392,20 +394,21 @@ cat << EOF > %{buildroot}%{hpc_module_dep_base}%{version}
|
|||||||
} \
|
} \
|
||||||
%{!-s:%define n_name %_name} \
|
%{!-s:%define n_name %_name} \
|
||||||
%{-s:%define n_name %(a=%{_name};echo -n ${a/%{_pname}/%{_pname}%{-s*}})} \
|
%{-s:%define n_name %(a=%{_name};echo -n ${a/%{_pname}/%{_pname}%{-s*}})} \
|
||||||
|
%{!-s:%define s_name %{_mylib}%{n_name}%{_p_ext}} \
|
||||||
|
%{-s:%define s_name %(echo -n %{_mylib}%{_name}%{_p_ext} | sed -e "s/\\(.*%{_pname}\\)\\(.*\\)/\\\\1%{-s*}\\\\2/")} \
|
||||||
%package -n %_lname \
|
%package -n %_lname \
|
||||||
Summary: Dependency package for %{n_name}%{_p_ext} \
|
Summary: Dependency package for %{s_name} \
|
||||||
Group: %_group \
|
Group: %_group \
|
||||||
Obsoletes: %_lname < %version \
|
Obsoletes: %_lname < %version \
|
||||||
%{!-s:Requires: %{_mylib}%{_name}%{_p_ext} = %version} \
|
Requires: %{s_name} = %version \
|
||||||
%{-s:Requires: %(echo -n %{_mylib}%{_name}%{_p_ext} | sed -e "s/\\(.*%{_pname}\\)\\(.*\\)/\\\\1%{-s*}\\\\2/") = %version} \
|
|
||||||
%{!-l:%{!-s:%{!-a:BuildArch: noarch}}} \
|
%{!-l:%{!-s:%{!-a:BuildArch: noarch}}} \
|
||||||
%description -n %_lname \
|
%description -n %_lname \
|
||||||
The package %{n_name}%{_p_ext} provides the dependency to get the latest version of %_pname \
|
The package %{l_name} provides the dependency to get the latest binary package version of %{_pname} \
|
||||||
%{-L:%post -n %_lname \
|
%{-L:%post -n %_lname \
|
||||||
ln -sf %{hpc_module_dep_base}.version.%{version} %{hpc_module_dep_base}.version} \
|
ln -sf %{hpc_module_dep_base}.version.%{version} %{hpc_module_dep_base}.version} \
|
||||||
%files -n %{_lname} \
|
%files -n %{_lname} \
|
||||||
%defattr(-,root,root)\
|
%defattr(-,root,root)\
|
||||||
%define _msg '%{summary:0}: Provide the dependency to get the latest version of %_pname' \
|
%define _msg '%{summary:0}: Provide the dependency to get the latest binary package version of %{_pname}' \
|
||||||
%define _readme README.%{_mylib}%{_name}%{_p_ext} \
|
%define _readme README.%{_mylib}%{_name}%{_p_ext} \
|
||||||
%define _tmpexec %(tmp=$(mktemp /tmp/scr-XXXXXX); \
|
%define _tmpexec %(tmp=$(mktemp /tmp/scr-XXXXXX); \
|
||||||
readme=%{_readme} \
|
readme=%{_readme} \
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jun 16 19:38:18 UTC 2018 - eich@suse.com
|
||||||
|
|
||||||
|
- Fix master package summary and description
|
||||||
|
- Add support for different name than %name
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 12 19:20:16 UTC 2018 - eich@suse.com
|
Mon Mar 12 19:20:16 UTC 2018 - eich@suse.com
|
||||||
|
|
||||||
|
@ -16,12 +16,12 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define git_ver .960d922
|
%define git_ver .131fdf9
|
||||||
Summary: SUSE HPC Environment
|
Summary: SUSE HPC Environment
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Productivity/Clustering/Computing
|
Group: Productivity/Clustering/Computing
|
||||||
Name: suse-hpc
|
Name: suse-hpc
|
||||||
Version: 0.1
|
Version: 0.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Source0: macros.hpc
|
Source0: macros.hpc
|
||||||
Source1: dlinfo.c
|
Source1: dlinfo.c
|
||||||
|
Loading…
Reference in New Issue
Block a user