From a7519a0ae42ce00394b9724bcd58b037ccc6b809 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Jan 14 2016 19:37:37 +0000 Subject: Initial import (#1263821) --- diff --git a/.gitignore b/.gitignore index e69de29..cff8afe 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/dput-ng_1.10.tar.xz diff --git a/dput-ng.spec b/dput-ng.spec new file mode 100644 index 0000000..432c649 --- /dev/null +++ b/dput-ng.spec @@ -0,0 +1,105 @@ +Name: dput-ng +Version: 1.10 +Release: 3%{?dist} + +Summary: Next generation Debian package upload tool +License: GPLv2+ and MIT +URL: http://dput-ng.debian.net/ +Source0: http://httpredir.debian.org/debian/pool/main/d/%{name}/%{name}_%{version}.tar.xz + +BuildArch: noarch + +BuildRequires: asciidoc +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python-debian +BuildRequires: python-paramiko +#BuildRequires: python-sphinx + +Requires: python2 +Requires: python2-dput = %{version}-%{release} + +%description +dput-ng is a Debian package upload tool which provides an easy to use +interface to Debian (like) package archive hosting facilities. It allows +anyone who works with Debian packages to upload their work to a remote +service, including Debian's ftp-master, mentors.debian.net, Launchpad or other +package hosting facilities for Debian package maintainers. + +dput-ng features many enhancements over dput, such as more comprehensive +checks, an easy to use plugin system, and code designed to handle the numerous +archives that any Debian package hacker will interact with. + +dput-ng aims to be backwards compatible with dput in command-line flags, +configuration files, and expected behavior. + +%package -n python2-dput +Summary: Python 2 library for dput-ng + +Requires: python2 +Requires: python-debian +Requires: python2-distro-info +#Requires: python-validictory +Requires: python-paramiko + +%{?python_provide:%python_provide python2-dput} + +%description -n python2-dput +Python 2 library for dput-ng. + +%prep +%setup -q -n dputng + +%build +#make -C docs man +for man in docs/man/*.man +do + a2x --doctype manpage --format manpage -D docs/man ${man} +done + +python2 setup.py build + +%install +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_datadir}/%{name} +mkdir -p %{buildroot}%{_mandir}/man1 +mkdir -p %{buildroot}%{_mandir}/man5 + +cp -p bin/* %{buildroot}%{_bindir} +cp -pr skel/metas %{buildroot}%{_datadir}/%{name} +cp -pr skel/profiles %{buildroot}%{_datadir}/%{name} +cp -pr skel/hooks %{buildroot}%{_datadir}/%{name} +cp -pr skel/commands %{buildroot}%{_datadir}/%{name} +cp -pr skel/interfaces %{buildroot}%{_datadir}/%{name} +cp -pr skel/uploaders %{buildroot}%{_datadir}/%{name} +cp -pr skel/schemas %{buildroot}%{_datadir}/%{name} +cp -pr skel/codenames %{buildroot}%{_datadir}/%{name} +cp -p skel/README %{buildroot}%{_datadir}/%{name} +cp -p docs/man/*.1 %{buildroot}%{_mandir}/man1 +cp -p docs/man/*.5 %{buildroot}%{_mandir}/man5 + +python2 setup.py install --root=%{buildroot} + +%files +%doc FAQ README.md +%license LICENSE +%{_bindir}/* +%{_datadir}/%{name} +%{_mandir}/*/* + +%files -n python2-dput +%{python2_sitelib}/dput +%{python2_sitelib}/dput*.egg-info + +%changelog +* Mon Jan 04 2016 Michael Kuhn - 1.10-3 +- Explicitly require python2. +- Rename python-* packages to python2-*. +- Provide python-dput. + +* Tue Dec 29 2015 Michael Kuhn - 1.10-2 +- Install metas and profiles to /use/share. +- Use %license for license text. + +* Tue Sep 15 2015 Michael Kuhn - 1.10-1 +- Initial package. diff --git a/sources b/sources index e69de29..e70df66 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +63db5cc177aad39ef8acd01e2f3f57c4 dput-ng_1.10.tar.xz