File dput.spec of Package dput

#
# spec file for package dput
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           dput
Version:        0.9.6.4
Release:        0
Summary:        Debian package upload tool
License:        GPL-2.0
Group:          Development/Tools/Other
Url:            http://packages.debian.org/sid/dput
Source0:        http://ftp.de.debian.org/debian/pool/main/d/dput/dput_%{version}.tar.gz
Requires:       python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%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

%install
install -d --mode=0755 %{buildroot}%{_bindir}
install -d --mode=0755 %{buildroot}/etc
install -d --mode=0755 %{buildroot}%{_sysconfdir}/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
openSUSE Build Service is sponsored by