Hello community,

here is the log from the commit of package suse-hpc for openSUSE:Factory 
checked in at 2019-02-11 21:17:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/suse-hpc (Old)
 and      /work/SRC/openSUSE:Factory/.suse-hpc.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "suse-hpc"

Mon Feb 11 21:17:16 2019 rev:17 rq:672358 version:0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/suse-hpc/suse-hpc.changes        2019-01-15 
13:13:56.952471953 +0100
+++ /work/SRC/openSUSE:Factory/.suse-hpc.new.28833/suse-hpc.changes     
2019-02-11 21:17:17.911340053 +0100
@@ -1,0 +2,11 @@
+Wed Feb  6 07:08:30 UTC 2019 - [email protected]
+
+- macros.hpc: Fix default moduleversion link generation and deletion  
+  * Generation: convert to a posttrans script to make sure the link
+    target exists.
+  * Deletion: Fix paths and line endings.
+  (bsc#1124509)
+- macros.hpc: Improve documentation for -L option in %%hpc_master macro.
+- macros.hpc: Improve master package description and README message.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ suse-hpc.spec ++++++
--- /var/tmp/diff_new_pack.9QINIC/_old  2019-02-11 21:17:18.715339626 +0100
+++ /var/tmp/diff_new_pack.9QINIC/_new  2019-02-11 21:17:18.719339625 +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/
 #
 
 

++++++ _service ++++++
--- /var/tmp/diff_new_pack.9QINIC/_old  2019-02-11 21:17:18.803339580 +0100
+++ /var/tmp/diff_new_pack.9QINIC/_new  2019-02-11 21:17:18.803339580 +0100
@@ -6,7 +6,7 @@
     <param name="exclude">.git</param>
     <param name="filename">suse-hpc</param>
     <param name="versionformat">0.4.%h</param>
-    <param name="revision">87f3f2c336d9dc5f9e8874e7639459371cfae3b0</param>
+    <param name="revision">ec20e912f5395e091bede4849ecc5476581c1871</param>
        <param name="extract">general/dlinfo.c</param>
        <param name="extract">general/macros.hpc</param>
        <param name="extract">general/hpc_elf.pl</param>

++++++ macros.hpc ++++++
--- /var/tmp/diff_new_pack.9QINIC/_old  2019-02-11 21:17:18.911339523 +0100
+++ /var/tmp/diff_new_pack.9QINIC/_new  2019-02-11 21:17:18.911339523 +0100
@@ -56,7 +56,7 @@
 sysconfdir=%{hpc_sysconfdir} \
 \
 Name: %pname \
-Description: %{summary:0} \
+Description: %{SUMMARY} \
 Version: %version \
 Libs: -L${libdir} %{?-l:-l%{-l*}} \
 Cflags: -I${includedir} \
@@ -223,9 +223,10 @@
 
 # delete default in %postun
 %hpc_module_delete_if_default \
-  _tmp=$(readlink -e %{hpc_module_dep_base}/version) && \
-  test "$_tmp" = "$(readlink -f %{hpc_module_dep_base}/.version.%{version})" 
&& \
-  rm -f %{hpc_module_dep_base}/version || exit 0
+  _tmp=$(readlink -f %{hpc_module_dep_base}.version) && \\\
+  test "$_tmp" = "$(readlink -f %{hpc_module_dep_base}.version.%{version})" \\\
+    -o "x" = "x$(readlink -e %{hpc_module_dep_base}.version)" && \\\
+  rm -f %{hpc_module_dep_base}.version || exit 0
 
 #
 %hpc_write_modules_version_file \
@@ -362,7 +363,8 @@
 # -l: mark a library package, prepend the package name with a `lib` (like -s
 #     but without an explicite so version. Do not use -l and -s together.
 # -L: Create a link from the .version.<version_no> file to the .version file
-#     to mark the default version.
+#     to mark the default version. To undo, add %hpc_module_delete_if_default
+#     to the package the master is created for.
 # -a: Use native arch even if no library package.
 # -N  <pname>: Specify if a sub-package has different basename (pname)
 # -q: For internal use only!
@@ -416,13 +418,15 @@
 Requires:  %{s_name} = %version \
 %{!-l:%{!-s:%{!-a:BuildArch:      noarch}}} \
 %description -n %_lname \
-The package %{_lname} provides the dependency to get binary package %{s_name} \
+%{pname}: %{SUMMARY} \
+The package %{_lname} 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 \
-  ln -sf %{hpc_module_dep_base}.version.%{version} 
%{hpc_module_dep_base}.version} \
+%{-L:%posttrans -n  %_lname \
+  [ -e %{hpc_module_dep_base}.version.%{version} ] && \\\
+  ln -sf .version.%{version} %{hpc_module_dep_base}.version} \
 %files -n %{_lname} \
 %defattr(-,root,root)\
- %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 _msg  '%{pname}: %{SUMMARY}.\\\\nProvide the dependency to get binary 
package %{s_name}.\\\\nWhen this package gets updated it installs the latest 
version of %{pname}.' \
  %define _readme README.%{_mylib}%{_name}%{_p_ext} \
  %define _tmpexec %(tmp=$(mktemp /tmp/scr-XXXXXX); \
        readme=%{_readme} \


Reply via email to