diff --git a/.cvsignore b/.cvsignore index e69de29..d6327f4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +python-debian_0.1.16.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..d7a143c --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +python-debian-0_1_16-3_el6:EL-5:python-debian-0.1.16-3.el6.src.rpm:1273651835 diff --git a/python-debian.spec b/python-debian.spec new file mode 100644 index 0000000..6392c3c --- /dev/null +++ b/python-debian.spec @@ -0,0 +1,81 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-debian +Version: 0.1.16 +Release: 3%{?dist} +Summary: Modules for Debian-related data formats +# debfile.py, arfile.py, debtags.py are release under GPL v3 or above +# everything else is GPLv2+ +License: GPLv2+ and GPLv3+ +Group: Development/Libraries +Source0: http://ftp.debian.org/debian/pool/main/p/python-debian/python-debian_%{version}.tar.gz +URL: http://git.debian.org/?p=pkg-python-debian/python-debian.git +BuildRequires: python-devel +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildArch: noarch +Requires: python >= 2.4 +BuildRequires: python-devel, python-setuptools + + +%description +This package provides Python modules that abstract many formats of Debian +related files. Currently handled are: +* Debtags information (debian.debtags module) +* debian/changelog (debian.changelog module) +* Packages files, pdiffs (debian.debian_support module) +* Control files of single or multiple RFC822-style paragraphs, e.g. + debian/control, .changes, .dsc, Packages, Sources, Release, etc. + (debian.deb822 module) +* Raw .deb and .ar files, with (read-only) access to contained + files and meta-information + + +%prep +%setup -q -n python-debian + + +%build +sed -e 's/__CHANGELOG_VERSION__/$(VERSION)/' < setup.py.in > setup.py +%{__python} setup.py build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT + + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +%{__python} setup.py clean + +%check +cd tests; +./test_deb822.py +#TODO - fix this test +#./test_debfile.py +./test_debtags.py +./test_changelog.py +./test_debian_support.py + + +%files +%defattr(-,root,root,-) +%dir %{python_sitelib}/debian +%dir %{python_sitelib}/debian_bundle +%{python_sitelib}/*.py* +%{python_sitelib}/debian/*.py* +%{python_sitelib}/debian_bundle/__init__.py* +%{python_sitelib}/python_debian* + +%doc README README.changelog README.deb822 HISTORY.deb822 ACKNOWLEDGEMENTS + +%changelog +* Fri May 7 2010 Miroslav Suchy +- use proper tar.gz from upstream +- add %%check section + +* Fri Apr 30 2010 Miroslav Suchy 0.1.16-2 +- add dist tag + +* Thu Apr 22 2010 Lukáš Ďurfina 0.1.16-1 +- Creation of package diff --git a/sources b/sources index e69de29..f6069f0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e478068f1cffdab5019bf072f84ee90b python-debian_0.1.16.tar.gz