188613
%if 0%{?rhel} > 7
188613
# Disable python2 build by default
188613
%bcond_with python2
188613
%else
188613
%bcond_without python2
188613
%endif
188613
188613
Summary: Utilities for working with md5sum implanted in ISO images
188613
Name:    isomd5sum
188613
Version: 1.2.3
188613
Release: 3%{?dist}
188613
Epoch: 1
188613
License: GPLv2+
188613
Group: Applications/System
188613
188613
Url:     https://github.com/rhinstaller/isomd5sum
188613
Source0: https://github.com/rhinstaller/%{name}/archive/%{version}.tar.gz
188613
188613
BuildRequires: gcc
188613
BuildRequires: popt-devel
188613
188613
%description
188613
The isomd5sum package contains utilities for implanting and verifying
188613
an md5sum implanted into an ISO9660 image.
188613
188613
%package devel
188613
Summary: Development headers and library for using isomd5sum 
188613
Group: Development/System
188613
Requires: %{name} = %{epoch}:%{version}-%{release}
188613
Provides: %{name}-static = %{epoch}:%{version}-%{release}
188613
188613
%description devel
188613
This contains header files and a library for working with the isomd5sum
188613
implanting and checking.
188613
188613
%if %{with python2}
188613
%package -n python2-isomd5sum
188613
Summary: Python bindings for isomd5sum
188613
188613
BuildRequires: python2-devel
188613
188613
%{?python_provide:%python_provide python2-isomd5sum}
188613
188613
%description -n python2-isomd5sum
188613
The isomd5sum package contains utilities for implanting and verifying
188613
an md5sum implanted into an ISO9660 image.
188613
%endif # with python2
188613
188613
%package -n python3-isomd5sum
188613
Summary: Python bindings for isomd5sum
188613
%{?python_provide:%python_provide python3-isomd5sum}
188613
188613
BuildRequires: python3-devel
188613
188613
%description -n python3-isomd5sum
188613
The isomd5sum package contains utilities for implanting and verifying
188613
an md5sum implanted into an ISO9660 image.
188613
188613
188613
%prep
188613
%autosetup
188613
188613
%build
188613
CFLAGS="$RPM_OPT_FLAGS -Wno-strict-aliasing"; export CFLAGS
188613
LDFLAGS="$RPM_LD_FLAGS"; export LDFLAGS
188613
%if %{with python2}
188613
PYTHON=%{__python2} make checkisomd5 implantisomd5 pyisomd5sum.so
188613
%endif # with python2
188613
188613
PYTHON=%{__python3} make checkisomd5 implantisomd5 pyisomd5sum.so
188613
188613
%install
188613
%if %{with python2}
188613
PYTHON=%{__python2} make DESTDIR=$RPM_BUILD_ROOT install-bin install-devel install-python
188613
%endif # with python2
188613
188613
PYTHON=%{__python3} make DESTDIR=$RPM_BUILD_ROOT install-bin install-devel install-python
188613
188613
%files
188613
%license COPYING
188613
%{_bindir}/implantisomd5
188613
%{_bindir}/checkisomd5
188613
%{_mandir}/man*/*
188613
188613
%files devel
188613
%{_includedir}/*.h
188613
%{_libdir}/*.a
188613
/usr/share/pkgconfig/isomd5sum.pc
188613
188613
%if %{with python2}
188613
%files -n python2-isomd5sum
188613
%{python2_sitearch}/pyisomd5sum.so
188613
%endif # with python2
188613
188613
%files -n python3-isomd5sum
188613
%{python3_sitearch}/pyisomd5sum.so
188613
188613
%changelog
188613
* Mon May 28 2018 Charalampos Stratakis <cstratak@redhat.com> - 1:1.2.3-3
188613
- Conditionalize the python2 subpackage
188613
188613
* Mon May 28 2018 Charalampos Stratakis <cstratak@redhat.com> - 1:1.2.3-2
188613
- Conditionalize the python2 subpackage
188613
188613
* Tue Apr 10 2018 Brian C. Lane <bcl@redhat.com> - 1:1.2.3-1
188613
- New Version 1.2.3 (bcl)
188613
- Fix 32bit bug on large files (squimrel)
188613
- Don't put DESTDIR in the isomd5sum.pc file (bcl)
188613
188613
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 1:1.2.2-4
188613
- Use LDFLAGS from redhat-rpm-config
188613
188613
* Mon Feb 19 2018 Brian C. Lane <bcl@redhat.com> - 1.2.2-3
188613
- Add gcc BuildRequires for future minimal buildroot support
188613
188613
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.2-2
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
188613
188613
* Tue Oct 03 2017 Brian C. Lane <bcl@redhat.com> - 1:1.2.2-1
188613
- Don't put DESTDIR in the isomd5sum.pc file
188613
- New Version 1.2.2 (bcl)
188613
- Fix aligned alloc parameters and overflow on 32bit size_t (#1497458) (squimrel)
188613
- Fix memory leak (squimrel)
188613
- Add pkgconfig file (squimrel)
188613
- Remove line-breaks from error messages (squimrel)
188613
- Make library C++ compatible (squimrel)
188613
- Constify function signatures (squimrel)
188613
- Revert checkCallback function signature (squimrel)
188613
188613
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1:1.2.1-4
188613
- Python 2 binary package renamed to python2-isomd5sum
188613
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
188613
188613
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.1-3
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
188613
188613
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.2.1-2
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
188613
188613
* Fri Jun 09 2017 Brian C. Lane <bcl@redhat.com> - 1:1.2.1-1
188613
- New Version 1.2.1 (bcl)
188613
- Let the user pass their own file descriptor (squimrel)
188613
- Correct format specifiers (squimrel)
188613
188613
* Thu Jun 08 2017 Brian C. Lane <bcl@redhat.com> - 1:1.2.0-1
188613
- New Version 1.2.0 (bcl)
188613
- Improve the python test and add a test target to the Makefile (bcl)
188613
- Improve error handling of libimplantisomd5 (squimrel)
188613
- Fix popt memory leak and avoid exit in main (squimrel)
188613
- Add derived clang format and editorconfig (squimrel)
188613
- Format, constify, castify, decl-at-use code (squimrel)
188613
- Make libimplantisomd5 use the utilities (squimrel)
188613
- Implement shared utilities (squimrel)
188613
- Refactor libcheckisomd5 (squimrel)
188613
188613
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.0-5
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
188613
188613
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1:1.1.0-4
188613
- Rebuild for Python 3.6
188613
188613
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.1.0-3
188613
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
188613
188613
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.0-2
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
188613
188613
* Fri Dec 04 2015 Brian C. Lane <bcl@redhat.com> 1.1.0-1
188613
- New upstream with Python3 support
188613
188613
* Mon Jul 20 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1:1.0.12-6
188613
- Use github source so it will build
188613
- Cleanup spec
188613
- Use %%license
188613
188613
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.12-5
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
188613
188613
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1:1.0.12-4
188613
- Rebuilt for Fedora 23 Change
188613
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
188613
188613
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.12-3
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
188613
188613
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.12-2
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
188613
188613
* Fri Jan 10 2014 Brian C. Lane <bcl@redhat.com> 1.0.12-1
188613
- Display supported iso status (#1026336) (bcl)
188613
- Add ppc64le (bcl)
188613
188613
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.11-2
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
188613
188613
* Wed Jul 17 2013 Brian C. Lane <bcl@redhat.com> 1.0.11-1
188613
- Add aarch64 (#985568) (bcl)
188613
188613
* Tue Feb 26 2013 Brian C. Lane <bcl@redhat.com> 1.0.10-1
188613
- Fix for gcc type-punned and sizeof pointer warnings. (bcl)
188613
- Add exit code 2 for user abort (#907600) (bcl)
188613
- Cleanup TABs and update Copyrights (bcl)
188613
- Standardize *FLAGS in Makefile (ryan)
188613
188613
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.9-3
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
188613
188613
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.9-2
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
188613
188613
* Fri Mar 09 2012 Brian C. Lane <bcl@redhat.com> 1.0.9-1
188613
- Add python-isomd5sum package with python bindings
188613
- Add callback and interrupt support to the python library
188613
- Add RPM_OPT_FLAGS to CFLAGS and update makefile to use CFLAGS from environment
188613
188613
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.7-2
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
188613
188613
* Fri Apr 8 2011 Radek Vykydal <rvykydal@fedoraproject.org> - 1:1.0.7-1
188613
- Allocate one more char for string sentinel (#692135) (rvykydal)
188613
188613
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.6-3
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
188613
188613
* Wed Jun 30 2010 Michael Schwendt <mschwendt@fedoraproject.org> - 1:1.0.6-2
188613
- Add virtual -static package to -devel package (#609607).
188613
188613
* Fri Mar 26 2010 Radek Vykydal <rvykydal@redhat.com> - 1:1.0.6-1
188613
- Add abort check feature (#555107) (dpierce, rvykydal)
188613
  Changes prototype of exported checkMediaFile function.
188613
- Fix exit value of checkisomd5 (rvykydal)
188613
- Remove output to stderr from library (#576251) (bcl)
188613
- Use separate return value for image not found (#578160) (bcl)
188613
188613
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.5-3
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
188613
188613
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.0.5-2
188613
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
188613
188613
* Thu Jan  8 2009 Jeremy Katz <katzj@redhat.com> - 1:1.0.5-1
188613
- Don't install the unused python module (#479005)
188613
188613
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1:1.0.4-4
188613
- Rebuild for Python 2.6
188613
188613
* Wed Nov  5 2008 Hans de Goede <hdegoede@redhat.com> - 1:1.0.4-3
188613
- Fix permission on installed manpages (#469936)
188613
188613
* Thu Apr 24 2008 Dennis Gilmore <dennis@ausil.us> - 1:1.0.4-2
188613
- add patch for making libdir /usr/lib64 for sparc64
188613
188613
* Thu Feb  7 2008 Jeremy Katz <katzj@redhat.com> - 1:1.0.4-1
188613
- Add man pages from Ryan Finnie (ryan AT finnie DOT org)
188613
- Use popt in checkisomd5 (Ryan Finnie)
188613
- Fix verbose/gauge interactions (Ryan Finnie)
188613
- A few other little janitorial things (Ryan Finnie)
188613
188613
* Mon Dec 10 2007 Jeremy Katz <katzj@redhat.com> - 1:1.0.2-1
188613
- The "fix the build after changing the API" release
188613
188613
* Mon Dec 10 2007 Jeremy Katz <katzj@redhat.com> - 1:1.0.1-1
188613
- Add some simple callback support in the library
188613
188613
* Fri Dec  7 2007 Jeremy Katz <katzj@redhat.com> - 1.0-1
188613
- Initial build.
188613