Accepting request 738820 from network:utilities
- 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 OBS-URL: https://build.opensuse.org/request/show/738820 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rhash?expand=0&rev=4
This commit is contained in:
commit
4e9b9e1dbe
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 16 07:51:08 UTC 2019 - Martin Pluskal <mpluskal@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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 22 11:57:32 UTC 2019 - dliw@posteo.net
|
Fri Feb 22 11:57:32 UTC 2019 - dliw@posteo.net
|
||||||
|
|
||||||
|
44
rhash.spec
44
rhash.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/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +22,10 @@ Version: 1.3.8
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Recursive Hasher
|
Summary: Recursive Hasher
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Productivity/File utilities
|
|
||||||
URL: https://github.com/rhash/RHash
|
URL: https://github.com/rhash/RHash
|
||||||
Source0: RHash-%{version}.tar.gz
|
Source0: https://github.com/rhash/RHash/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Recommends: %{name}-lang
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(openssl)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
RHash (Recurcive Hasher) is a console utility for computing and
|
RHash (Recurcive Hasher) is a console utility for computing and
|
||||||
@ -45,7 +45,6 @@ Program features:
|
|||||||
|
|
||||||
%package -n librhash%{major}
|
%package -n librhash%{major}
|
||||||
Summary: LibRHash Shared Library
|
Summary: LibRHash Shared Library
|
||||||
Group: System/Libraries
|
|
||||||
|
|
||||||
%description -n librhash%{major}
|
%description -n librhash%{major}
|
||||||
LibRHash is a professional, portable, thread-safe C library for
|
LibRHash is a professional, portable, thread-safe C library for
|
||||||
@ -57,7 +56,6 @@ data for a long-term storing or transferring.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Headers and Static Library for LibRHash
|
Summary: Headers and Static Library for LibRHash
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Requires: librhash%{major} = %{version}
|
Requires: librhash%{major} = %{version}
|
||||||
Provides: librhash-devel = %{version}
|
Provides: librhash-devel = %{version}
|
||||||
Obsoletes: librhash-devel < 1.3.1
|
Obsoletes: librhash-devel < 1.3.1
|
||||||
@ -78,32 +76,26 @@ This package includes LibRHash development files.
|
|||||||
%setup -q -n RHash-%{version}
|
%setup -q -n RHash-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
# repleace unwanted fomit-frame pointer with desirable optflags
|
||||||
export CXXFLAGS="%{optflags}"
|
sed -i "s|-fomit-frame-pointer|%{optflags}|g" configure
|
||||||
%{_configure} --prefix=%{_prefix} \
|
# not a autotools configure
|
||||||
--exec-prefix=%{_prefix} \
|
./configure \
|
||||||
--bindir=%{_bindir} \
|
--prefix=%{_prefix} \
|
||||||
--sysconfdir=%{_sysconfdir} \
|
--exec-prefix=%{_prefix} \
|
||||||
--libdir=%{_libdir} \
|
--bindir=%{_bindir} \
|
||||||
--mandir=%{_mandir} \
|
--sysconfdir=%{_sysconfdir} \
|
||||||
--enable-lib-shared \
|
--libdir=%{_libdir} \
|
||||||
--enable-gettext
|
--mandir=%{_mandir} \
|
||||||
|
--enable-lib-shared \
|
||||||
# Parallel make_build fails on older versions
|
--enable-gettext
|
||||||
# Use OPTLDFLAGS="" not to strip binaries.
|
%make_build
|
||||||
make ADDCFLAGS="-rdynamic" OPTLDFLAGS=""
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install install-lib-so-link install-lib-headers install-gmo
|
%make_install install-lib-so-link install-lib-headers install-gmo
|
||||||
%find_lang %{name} %{?no_lang_C}
|
%find_lang %{name} %{?no_lang_C}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make \
|
make %{?_smp_mflags} test
|
||||||
OPTFLAGS="%{optflags}" \
|
|
||||||
ADDCFLAGS="-DUSE_OPENSSL -DOPENSSL_RUNTIME -rdynamic" \
|
|
||||||
ADDLDFLAGS="-ldl" \
|
|
||||||
LD_LIBRARY_PATH="../librhash" \
|
|
||||||
test
|
|
||||||
|
|
||||||
%post -n librhash%{major} -p /sbin/ldconfig
|
%post -n librhash%{major} -p /sbin/ldconfig
|
||||||
%postun -n librhash%{major} -p /sbin/ldconfig
|
%postun -n librhash%{major} -p /sbin/ldconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user