Modernize spec

epel9
Orion Poplawski 6 years ago
parent a7c4e7e59b
commit 73a6fec9ab

@ -1,6 +1,6 @@
Name: ykpers Name: ykpers
Version: 1.20.0 Version: 1.20.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: Yubikey personalization program Summary: Yubikey personalization program
License: BSD License: BSD
@ -22,7 +22,7 @@ that makes this an easy task.
%package devel %package devel
Summary: Development files for ykpers Summary: Development files for ykpers
Requires: %{name} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %description devel
This package contains the header file needed to develop applications that This package contains the header file needed to develop applications that
@ -40,19 +40,20 @@ use ykpers.
--with-backend=libusb --with-backend=libusb
%endif %endif
# --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
%{__make} install DESTDIR=${RPM_BUILD_ROOT} INSTALL="%{__install} -p" %make_install INSTALL="%{__install} -p"
%files %files
%doc AUTHORS COPYING README ChangeLog NEWS %license COPYING
%doc AUTHORS README ChangeLog NEWS
%doc doc/Compatibility.asciidoc %doc doc/Compatibility.asciidoc
%{_bindir}/ykinfo %{_bindir}/ykinfo
%{_bindir}/ykpersonalize %{_bindir}/ykpersonalize
@ -72,6 +73,9 @@ export LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/.libs
%exclude %{_libdir}/libykpers-1.la %exclude %{_libdir}/libykpers-1.la
%changelog %changelog
* Thu Aug 1 2019 Orion Poplawski <orion@nwra.com> - 1.20.0-3
- Modernize spec
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.0-2 * Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save