Hello community,

here is the log from the commit of package rhash for openSUSE:Factory checked 
in at 2019-11-07 23:12:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rhash (Old)
 and      /work/SRC/openSUSE:Factory/.rhash.new.2990 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rhash"

Thu Nov  7 23:12:54 2019 rev:4 rq:738820 version:1.3.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/rhash/rhash.changes      2019-02-28 
21:37:32.973656298 +0100
+++ /work/SRC/openSUSE:Factory/.rhash.new.2990/rhash.changes    2019-11-07 
23:12:54.560297062 +0100
@@ -1,0 +2,9 @@
+Wed Oct 16 07:51:08 UTC 2019 - Martin Pluskal <mplus...@suse.com>
+
+- Cleanup spec file:
+  * Honor optflags and allow creation of debuginfo package
+  * Add missed dependencies on openssl and pkgconfig
+  * Use url for download
+  * Misc small cleanups
+
+-------------------------------------------------------------------

Old:
----
  RHash-1.3.8.tar.gz

New:
----
  rhash-1.3.8.tar.gz

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

Other differences:
------------------
++++++ rhash.spec ++++++
--- /var/tmp/diff_new_pack.gG9cIG/_old  2019-11-07 23:12:55.060297610 +0100
+++ /var/tmp/diff_new_pack.gG9cIG/_new  2019-11-07 23:12:55.060297610 +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/
 #
 
 
@@ -22,10 +22,10 @@
 Release:        0
 Summary:        Recursive Hasher
 License:        MIT
-Group:          Productivity/File utilities
 URL:            https://github.com/rhash/RHash
-Source0:        RHash-%{version}.tar.gz
-Recommends:     %{name}-lang
+Source0:        
https://github.com/rhash/RHash/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(openssl)
 
 %description
 RHash (Recurcive Hasher) is a console utility for computing and
@@ -45,7 +45,6 @@
 
 %package -n librhash%{major}
 Summary:        LibRHash Shared Library
-Group:          System/Libraries
 
 %description -n librhash%{major}
 LibRHash is a professional, portable, thread-safe C library for
@@ -57,7 +56,6 @@
 
 %package devel
 Summary:        Headers and Static Library for LibRHash
-Group:          Development/Libraries/C and C++
 Requires:       librhash%{major} = %{version}
 Provides:       librhash-devel = %{version}
 Obsoletes:      librhash-devel < 1.3.1
@@ -78,32 +76,26 @@
 %setup -q -n RHash-%{version}
 
 %build
-export CFLAGS="%{optflags}"
-export CXXFLAGS="%{optflags}"
-%{_configure} --prefix=%{_prefix} \
---exec-prefix=%{_prefix} \
---bindir=%{_bindir} \
---sysconfdir=%{_sysconfdir} \
---libdir=%{_libdir} \
---mandir=%{_mandir} \
---enable-lib-shared \
---enable-gettext
-
-# Parallel make_build fails on older versions
-# Use OPTLDFLAGS="" not to strip binaries.
-make ADDCFLAGS="-rdynamic" OPTLDFLAGS=""
+# repleace unwanted fomit-frame pointer with desirable optflags
+sed -i "s|-fomit-frame-pointer|%{optflags}|g" configure
+# not a autotools configure
+./configure \
+  --prefix=%{_prefix} \
+  --exec-prefix=%{_prefix} \
+  --bindir=%{_bindir} \
+  --sysconfdir=%{_sysconfdir} \
+  --libdir=%{_libdir} \
+  --mandir=%{_mandir} \
+  --enable-lib-shared \
+  --enable-gettext
+%make_build
 
 %install
 %make_install install-lib-so-link install-lib-headers install-gmo
 %find_lang %{name} %{?no_lang_C}
 
 %check
-make \
-    OPTFLAGS="%{optflags}" \
-    ADDCFLAGS="-DUSE_OPENSSL -DOPENSSL_RUNTIME -rdynamic" \
-    ADDLDFLAGS="-ldl" \
-    LD_LIBRARY_PATH="../librhash" \
-    test
+make %{?_smp_mflags} test
 
 %post -n librhash%{major} -p /sbin/ldconfig
 %postun -n librhash%{major} -p /sbin/ldconfig


Reply via email to