Name: cksfv Version: 1.3.15 Release: 1%{?dist} Summary: Utility to manipulate SFV files License: GPLv2+ URL: https://gitlab.com/heikkiorsila/cksfv/ %if !0%{?os2_version} Source0: https://zakalwe.fi/~shd/foss/%{name}/files/%{name}-%{version}.tar.bz2 Source1: https://zakalwe.fi/~shd/foss/%{name}/files/%{name}-%{version}.tar.bz2.asc Source2: https://zakalwe.fi/~shd/keys/heikki-orsila-2017.pub %else %scm_source github http://github.com/Tellie/cksfv-os2 %{version}-os2 %endif BuildRequires: gcc %if !0%{?os2_version} BuildRequires: gnupg2 %endif BuildRequires: make %description cksfv is a utility that can create and use SFV files. SFV (Simple File Verification) files are used to verify file integrity using CRC32 checksums. %prep %if !0%{?os2_version} %{gpgverify} --keyring='%{S:2}' --signature='%{S:1}' --data='%{S:0}' %setup -q %else %scm_setup %endif # fix rpmlint warnings iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv &&\ touch -r ChangeLog ChangeLog.conv &&\ mv -f ChangeLog.conv ChangeLog %build export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" export LIBS="-lcx" %if !0%{?os2_version} %set_build_flags %endif # custom configure does not take --libdir spec ./configure \ --bindir=%{_bindir} \ --mandir=%{_mandir} \ --prefix=%{_prefix} \ --package-prefix=%{buildroot} %if !0%{?os2_version} %make_build %else make %{?_smp_mflags} %endif %install %if !0%{?os2_version} %make_install %else make install DESTDIR=%{buildroot} install -Dm 0755 src/cksfv.exe %{buildroot}%{_bindir} rm %{buildroot}%{_bindir}/cksfv %endif %check %if !0%{?os2_version} %make_build check %else make check %endif %files %defattr(-,root,root,-) %license COPYING %doc AUTHORS ChangeLog README.md TODO %if !0%{?os2_version} %{_bindir}/%{name} %else %{_bindir}/%{name}.exe %endif %{_mandir}/man1/%{name}.1* %changelog * Fri Mar 18 2022 Elbert Pol 1.3.15-1 - Upload to latest version - Updated spec file to fedora one * Wed May 01 2019 Elbert Pol 1.3.14-1 - First upload for OS2 * Thu Jan 31 2019 Fedora Release Engineering - 1.3.14-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild