- Improve description and README in master packages

Explain the purpose of the package and explicitly specify the dependency
  in the package description and generated README.

OBS-URL: https://build.opensuse.org/package/show/science:HPC/suse-hpc?expand=0&rev=25
This commit is contained in:
Egbert Eich 2018-06-18 04:56:54 +00:00 committed by Git OBS Bridge
parent 3a597ec2f0
commit 2ffe5b8cf4
4 changed files with 12 additions and 5 deletions

View File

@ -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">131fdf981724f18a7cef824665884cc40491f265</param> <param name="revision">d6d9c0fddeefd4f22d4aa44d6a9f7bc7f625bcba</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>

View File

@ -403,17 +403,18 @@ Obsoletes: %_lname < %version \
Requires: %{s_name} = %version \ Requires: %{s_name} = %version \
%{!-l:%{!-s:%{!-a:BuildArch: noarch}}} \ %{!-l:%{!-s:%{!-a:BuildArch: noarch}}} \
%description -n %_lname \ %description -n %_lname \
The package %{l_name} provides the dependency to get the latest binary package version of %{_pname} \ The package %{l_name} provides the dependency to get binary package %{s_name} \
When this package gets updated it installs the latest version of %name. \
%{-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 binary package version of %{_pname}' \ %define _msg '%{summary:0}: Provide the dependency to get binary package %{s_name\\\\nWhen this package gets updated it installs the latest version of %name.}' \
%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} \
echo "#!/bin/bash" > $tmp; \ echo "#!/bin/bash" > $tmp; \
echo "echo %_msg \> $readme && rm -f $tmp || true" >> $tmp; \ echo "echo -e %_msg \> $readme && rm -f $tmp || true" >> $tmp; \
chmod u+x $tmp; echo -n $tmp) \ chmod u+x $tmp; echo -n $tmp) \
%doc $(%_tmpexec)./%{_readme} \ %doc $(%_tmpexec)./%{_readme} \
} \ } \

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jun 18 04:56:03 UTC 2018 - eich@suse.com
- Improve description and README in master packages
Explain the purpose of the package and explicitly specify the dependency
in the package description and generated README.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 16 19:38:18 UTC 2018 - eich@suse.com Sat Jun 16 19:38:18 UTC 2018 - eich@suse.com

View File

@ -16,7 +16,6 @@
# #
%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