python-cfv/python-cfv.spec

66 lines
2.0 KiB
RPMSpec
Raw Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-cfv
Version: 3.1.0
Release: 1mamba
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: https://cfv.sourceforge.net/
Source: https://pypi.debian.net/cfv/cfv-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(setuptools)
## AUTOBUILDREQ-END
%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.
%if 0%{?with_pyver}
%define py_requires_append \
Provides: cfv \
Obsoletes: cfv < 3.1.0
%pyver_package
%endif
%prep
%setup -q -n cfv-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python_inc} \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
%doc COPYING
%changelog
* Sun Jun 23 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.0-1mamba
- update to 3.1.0
* 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
* Thu Jul 02 2009 Automatic Build System <autodist@mambasoft.it> 1.18.3-1mamba
- automatic update by autodist
* Fri Apr 17 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.18.2-1mamba
- package created by autospec