diff --git a/README.md b/README.md index 29641ab..3e2285d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-pypdf2 +PDF toolkit. + diff --git a/python-pypdf2.spec b/python-pypdf2.spec new file mode 100644 index 0000000..ef305b2 --- /dev/null +++ b/python-pypdf2.spec @@ -0,0 +1,46 @@ +Name: python-pypdf2 +Version: 1.24 +Release: 1mamba +Summary: PDF toolkit +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://mstamy2.github.com/PyPDF2 +Source: https://pypi.python.org/packages/source/P/PyPDF2/PyPDF2-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +## note: run 'autospec -u -a6 python-pypdf2' to get the list of build requirements. +## AUTOBUILDREQ-END +BuildRequires: libpython-devel +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildArch: noarch + +%description +%{summary}. + +%prep +%setup -q -n PyPDF2-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files -f %{name}.filelist +%defattr(-,root,root) +%doc LICENSE + +%changelog +* Tue Jun 09 2015 Stefano Cotta Ramusino 1.24-1mamba +- package created using the webbuild interface