Thu, 26 May 2011 15:50:52 +0200
Port software packaging (and adjust runtime logic) for use in non Fedora environments.
michael@15 | 1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
michael@15 | 2 | |
michael@15 | 3 | Name: isomd5sum |
michael@15 | 4 | Version: 1.0.7 |
michael@15 | 5 | Release: MSvB_1 |
michael@15 | 6 | License: GPLv2+ |
michael@15 | 7 | Summary: Utilities for working with md5sum hashes in ISO images |
michael@15 | 8 | Url: http://git.fedorahosted.org/git/?p=isomd5sum.git |
michael@15 | 9 | Group: Applications/System |
michael@15 | 10 | Source0: http://fedorahosted.org/releases/i/s/isomd5sum/%{name}-%{version}.tar.bz2 |
michael@15 | 11 | BuildRequires: gcc, python-devel, popt-devel |
michael@15 | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
michael@15 | 13 | |
michael@15 | 14 | %description |
michael@15 | 15 | The isomd5sum package contains utilities for implanting |
michael@15 | 16 | and verifying md5sum hashes embedded in ISO9660 images. |
michael@15 | 17 | |
michael@15 | 18 | %prep |
michael@15 | 19 | %setup -q |
michael@15 | 20 | |
michael@15 | 21 | %build |
michael@15 | 22 | make %{?_smp_mflags} |
michael@15 | 23 | |
michael@15 | 24 | %install |
michael@15 | 25 | rm -rf $RPM_BUILD_ROOT |
michael@15 | 26 | %make_install |
michael@15 | 27 | chmod -x %{buildroot}%{_mandir}/man*/* |
michael@15 | 28 | rm -f %{buildroot}%{_includedir}/* |
michael@15 | 29 | rm -f %{buildroot}%{_libdir}/lib*.a |
michael@15 | 30 | rm -f %{buildroot}%{_libdir}/lib*.so* |
michael@15 | 31 | |
michael@15 | 32 | %clean |
michael@15 | 33 | %{?buildroot:%__rm -rf "%{buildroot}"} |
michael@15 | 34 | |
michael@15 | 35 | %files |
michael@15 | 36 | %defattr(-,root,root) |
michael@15 | 37 | %doc COPYING |
michael@15 | 38 | /usr/bin/implantisomd5 |
michael@15 | 39 | /usr/bin/checkisomd5 |
michael@15 | 40 | %{_mandir}/man*/* |
michael@15 | 41 | %{python_sitearch}/pyisomd5sum.so |
michael@15 | 42 | |
michael@15 | 43 | %changelog |
michael@15 | 44 | * Sat May 21 2011 Michael Schloh von Bennewitz <michael@schloh.com> - 1.0.7 |
michael@15 | 45 | - Introduction for meeting dependency in liveusb-creator |
michael@15 | 46 |