isomd5sum/isomd5sum.spec
2024-01-05 23:59:22 +01:00

80 lines
2.4 KiB
RPMSpec

Name: isomd5sum
Version: 1.2.1
Release: 1mamba
Summary: ISO9660 checksum utilities
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.finnie.org/software/isomd5sum
Source: https://github.com/rhinstaller/isomd5sum/archive/%{version}.tar.gz
#Source: https://git.fedorahosted.org/cgit/isomd5sum.git/%{version}/isomd5sum-%{version}.tar.bz2
#Source: https://fedorahosted.org/releases/i/s/isomd5sum/isomd5sum-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpopt-devel
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
isomd5sum is a collection of utilities for implanting and checking MD5 checksums within an ISO9660 image. A checksum is implanted in an image using the implantisomd5 utility, and the corresponding checkisomd5 utility can be used to verify burned CDs are error-free. Also included is a Python extension for performing these tasks.
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q
%build
%make CPPFLAGS+="-Wno-format"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%ifarch x86_64
install -d %{buildroot}%{_prefix}/lib/
mv %{buildroot}%{_libdir}/python* %{buildroot}%{_prefix}/lib/
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/checkisomd5
%{_bindir}/implantisomd5
%{python3_sitelib}/pyisomd5sum.so
%{_mandir}/man1/checkisomd5.1*
%{_mandir}/man1/implantisomd5.1*
%doc COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/libcheckisomd5.h
%{_includedir}/libimplantisomd5.h
%{_libdir}/libcheckisomd5.a
%{_libdir}/libimplantisomd5.a
%changelog
* Sun Jun 25 2017 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 1.2.1-1mamba
- update to 1.2.1
* Sat Oct 11 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.12-1mamba
- update to 1.0.12
* Sat May 25 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.10-1mamba
- update to 1.0.10
* Thu Nov 01 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.9-1mamba
- package created by autospec