Modernize spec

epel9
Orion Poplawski 6 years ago
parent 349b175c8d
commit ea1375ef9c

@ -1,6 +1,6 @@
Name: libyubikey Name: libyubikey
Version: 1.13 Version: 1.13
Release: 10%{?dist} Release: 11%{?dist}
Summary: C library for decrypting and parsing Yubikey One-time passwords Summary: C library for decrypting and parsing Yubikey One-time passwords
License: BSD License: BSD
@ -14,7 +14,7 @@ authentication device, the Yubikey.
%package devel %package devel
Summary: Development files for libyubikey Summary: Development files for libyubikey
Requires: %{name} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %description devel
This package contains the header file needed to develop applications that use This package contains the header file needed to develop applications that use
@ -26,17 +26,16 @@ libyubikey.
%build %build
%configure --disable-static --disable-silent-rules %configure --disable-static --disable-silent-rules
# --disable-rpath doesn't work for the configure script # --disable-rpath doesn't work for the configure script
%{__sed} -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
%{__sed} -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__make} %{?_smp_mflags} %make_build
%check %check
export LD_LIBRARY_PATH=${RPM_BUILD_DIR}/%{name}-%{version}/.libs export LD_LIBRARY_PATH=${RPM_BUILD_DIR}/%{name}-%{version}/.libs
%{__make} check make check
%install %install
%{__rm} -rf $RPM_BUILD_ROOT %make_install INSTALL="install -p"
%{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
%ldconfig_scriptlets %ldconfig_scriptlets
@ -58,6 +57,9 @@ export LD_LIBRARY_PATH=${RPM_BUILD_DIR}/%{name}-%{version}/.libs
%exclude %{_libdir}/libyubikey.la %exclude %{_libdir}/libyubikey.la
%changelog %changelog
* Thu Aug 1 2019 Orion Poplawski <orion@nwra.com> - 1.13-11
- Modernize spec
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-10 * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save