python2 shebang patch [release 1.18.3-3mamba;Tue Dec 13 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 21:11:43 +01:00
parent 492e1ba626
commit 06835a6434
2 changed files with 22 additions and 7 deletions

View File

@ -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 <donut AT dakotacom DOT net>

View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.18.3-3mamba
- python2 shebang patch
* Tue Jul 16 2013 Automatic Build System <autodist@mambasoft.it> 1.18.3-2mamba
- automatic rebuild by autodist