%global desc Pycdlib is a pure python library for reading, writing, and otherwise\ manipulating ISO9660 files. It is focused on speed, correctness, and\ conformance to the various standards around ISO9660, including ISO9660 itself,\ the Joliet extensions, the Rock Ridge extensions, and the El Torito boot\ extensions. %global srcname pycdlib Summary: A pure python ISO9660 read and write library Name: python-%{srcname} Version: 1.1.0 Release: 1%{?dist} License: LGPLv2 Group: Development/Libraries URL: https://github.com/clalancette/%{srcname} Source0: https://github.com/clalancette/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python3-devel BuildRequires: genisoimage BuildRequires: python2-pytest BuildRequires: python3-pytest BuildRequires: syslinux %description %{desc} %package -n python2-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python2-%{srcname}} Requires: python2-pysendfile %description -n python2-%{srcname} %{desc} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} Requires: python3-pysendfile %description -n python3-%{srcname} %{desc} %package -n %{srcname}-tools Summary: Tools that rely on %{srcname} Requires: python2-%{srcname} = %{version}-%{release} Requires: python2-networkx Requires: python2-matplotlib %description -n %{srcname}-tools Some tools that use the %{srcname} library. %prep %autosetup -n %{srcname}-%{version} %build %py2_build %py3_build %install %py2_install %py3_install %check py.test-%{python2_version} -v py.test-%{python3_version} -v %files -n python2-%{srcname} %license COPYING %doc README examples/ %{python2_sitelib}/%{srcname} %{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info/ %files -n python3-%{srcname} %license COPYING %doc README examples/ %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ %files -n pycdlib-tools %license COPYING %{_bindir}/pycdlib-explorer %{_bindir}/pycdlib-compare %{_mandir}/man1/* %changelog * Tue Jan 31 2017 Chris Lalancette - 1.1.0-1 - Update to upstream version 1.1.0 * Tue Oct 25 2016 Chris Lalancette - 1.0.0-1 - Update to upstream version 1.0.0 * Wed Dec 30 2015 Chris Lalancette - 0.1.0-1 - Initial package.