File python-pdfrw.spec of Package python-pdfrw

%global srcname pdfrw

Name: python-%{srcname}
Version: 0.4
Release: 1%{?dist}
Summary: Python library to read and write PDF files
License: MIT

Group: Development/Libraries
URL: https://github.com/pmaupin/pdfrw
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz

BuildRequires: python27-devel
BuildRequires: python27-setuptools
BuildArch: noarch

%description
pdfrw is a basic PDF file manipulation library. Developed and tested on 
Python 2.5-2.7,  pdfrw can read and write PDF files, and can also be used to 
read in PDFs which can then be used inside reportlab. 

%package -n python27-%{srcname}
Summary: Python library to read and write PDF files

%description -n python27-%{srcname}
pdfrw is a basic PDF file manipulation library. Developed and tested on 
Python 2.5-2.7,  pdfrw can read and write PDF files, and can also be used to 
read in PDFs which can then be used inside reportlab.

%prep
%autosetup -n %{srcname}-%{version}

%build
%py27_build

%install
%py27_install

%files -n python27-%{srcname}
%{!?_licensedir:%global license %%doc}
%license LICENSE.txt
%doc README.rst examples
%{python27_sitelib}/*

%changelog
* Fri Dec 15 2017 Felix Schwarz <fschwarz@fedoraproject.org> - 0.4-1
- New upstream version (0.4)

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Mon May 15 2017 Sergio Pascual <sergiopr at fedoraproject.org> - 0.3-1
- New upstream version (0.3)

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.2-5
- Rebuild for Python 3.6

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Tue Nov 17 2015 Sergio Pascual <sergiopr at fedoraproject.org> - 0.2-2
- New 0.2 version with Python3 support, using new macros
- Yes, I forgot to upload the tarball

* Sun Nov 15 2015 Till Maas <opensource@till.name> - 0.1-6
- Use %%license

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Tue Apr 30 2013 Sergio Pascual <sergiopr at fedoraproject.org> - 0.1-2
- Cleaned line removing buildroot in install
- Including examples in docs

* Tue Apr 30 2013 Sergio Pascual <sergiopr at fedoraproject.org> - 0.1-1
- New spec file