File dput.spec of Package dput
%define rel 1%{?dist}
%define myuid %(%{!?__id_u:id -u}%{?__id_u} -n)
Name: dput
Version: 0.9.6.4
Release: %{rel}
Group: Development Tools
Summary: Debian package upload tool
License: GPL2
URL: http://packages.debian.org/sid/dput
Source0: dput_%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%{myuid}
Requires: python
%description
dput allows you to put one or more Debian packages into the archive. This package also includes a dcut
utility which can be used to generate and / or upload a commands file for the Debian FTP archive upload queue.
dput includes some tests to verify that the package is policy-compliant. It offers the possibility to run
lintian before the upload. It can also run dinstall in dry-run-mode, when having used an appropriate upload
method. This is very useful to see if the upload will pass dinstall sanity checks in the next run.
It is intended mainly for Debian maintainers only, although it can also be useful for people maintaining
local apt repositories.
%prep
%setup -q
%build
%clean
rm -rf %{buildroot}
%install
install -d --mode=0755 %{buildroot}%{_bindir}
install -d --mode=0755 %{buildroot}/etc
install -d --mode=0755 %{buildroot}/etc/bash_completion.d
install -d --mode=0755 %{buildroot}%{_mandir}/man1
install -d --mode=0755 %{buildroot}%{_mandir}/man5
install -d --mode=0755 %{buildroot}%{_datadir}/%{name}
install -d --mode=0755 %{buildroot}%{_datadir}/%{name}/helper
install --mode=0755 dput %{buildroot}%{_bindir}
install --mode=0755 dcut %{buildroot}%{_bindir}
install --mode=0644 dput.cf %{buildroot}%{_sysconfdir}
install --mode=0644 dput.1 %{buildroot}%{_mandir}/man1
install --mode=0644 dcut.1 %{buildroot}%{_mandir}/man1
install --mode=0644 dput.cf.5 %{buildroot}%{_mandir}/man5
install --mode=0644 ftp.py %{buildroot}%{_datadir}/%{name}
install --mode=0644 http.py %{buildroot}%{_datadir}/%{name}
install --mode=0644 https.py %{buildroot}%{_datadir}/%{name}
install --mode=0644 scp.py %{buildroot}%{_datadir}/%{name}
install --mode=0644 local.py %{buildroot}%{_datadir}/%{name}
install --mode=0644 rsync.py %{buildroot}%{_datadir}/%{name}
install --mode=0644 dputhelper.py %{buildroot}%{_datadir}/%{name}/helper
install --mode=0755 security-warning %{buildroot}%{_datadir}/%{name}/helper
install --mode=0644 bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
%files
%defattr(-,root,root,-)
%doc README FAQ copyright TODO THANKS debian/changelog
%config %{_sysconfdir}/dput.cf
%config %{_sysconfdir}/bash_completion.d/%{name}
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_datadir}/%{name}
%changelog
* Sun Dec 29 2013 Fritz Elfert <fritz@fritz-elfert.de> - 0.9.6.4-1
- Initial release