diff --git a/cfv-1.18.3-python2-shebang.patch b/cfv-1.18.3-python2-shebang.patch new file mode 100644 index 0000000..6aa71f1 --- /dev/null +++ b/cfv-1.18.3-python2-shebang.patch @@ -0,0 +1,8 @@ +--- cfv-1.18.3/cfv.orig 2022-12-13 12:09:29.939258459 +0100 ++++ cfv-1.18.3/cfv 2022-12-13 12:09:32.997250220 +0100 +@@ -1,4 +1,4 @@ +-#! /usr/bin/env python ++#! /usr/bin/env python2 + + # cfv - Command-line File Verify + # Copyright (C) 2000-2009 Matthew Mueller diff --git a/cfv.spec b/cfv.spec index 5443208..6fd5e3f 100644 --- a/cfv.spec +++ b/cfv.spec @@ -1,28 +1,32 @@ Name: cfv Version: 1.18.3 -Release: 2mamba +Release: 3mamba Summary: A utility to both test and create .sfv, .csv, .crc, .md5(sfv-like), md5sum, bsd md5, sha1sum, and .torrent files Group: System/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://cfv.sourceforge.net/ +URL: https://cfv.sourceforge.net/ Source: http://downloads.sourceforge.net/sourceforge/cfv/cfv-%{version}.tar.gz +Patch0: cfv-1.18.3-python2-shebang.patch License: GPL -BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires: python27 %description cfv is a utility to both test and create .sfv, .csv, .crc, .md5(sfv-like), md5sum, bsd md5, sha1sum, and .torrent files. These files are commonly used to ensure the correct retrieval or storage of data. %prep %setup -q +%patch0 -p1 %build -%make prefix=%{_prefix} mandir=%{_mandir} +%make PYTHON=python2 prefix=%{_prefix} mandir=%{_mandir} %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall prefix=%{_prefix} mandir=%{_mandir} +%makeinstall PYTHON=python2 prefix=%{_prefix} mandir=%{_mandir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -30,10 +34,13 @@ cfv is a utility to both test and create .sfv, .csv, .crc, .md5(sfv-like), md5su %files %defattr(-,root,root) %{_bindir}/cfv -%{_mandir}/man1/cfv.1.gz -%doc COPYING README +%{_mandir}/man1/cfv.1* +%doc COPYING %changelog +* Tue Dec 13 2022 Silvan Calarco 1.18.3-3mamba +- python2 shebang patch + * Tue Jul 16 2013 Automatic Build System 1.18.3-2mamba - automatic rebuild by autodist