File dosage.spec of Package dosage

#
# spec file for package dosage
#
# Copyright (c) 2013 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/
#


# See also http://en.opensuse.org/openSUSE:Packaging_Python

Name:           dosage
Version:        2.17
Release:        1
Summary:        A comic downloader and archiver
License:        GPL-2.0
Group:          Development/Languages/Python
Url:            http://dosage.rocks/
Source0:        https://github.com/webcomics/%{name}/archive/%{version}.tar.gz
BuildRequires:  python-devel
BuildArch:      noarch
Requires:	python-requests

%description
Dosage is designed to keep a local copy of specific webcomics and other picture-based content such as Picture of the Day sites. With the dosage commandline script you can get the latest strip of a webcomic, or catch-up to the last strip downloaded, or download a strip for a particular date/index (if the webcomic's site layout allows this).

%prep
%setup -q

%build
# Remove CFLAGS=... for noarch packages (unneeded)
CFLAGS="%{optflags}" python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING doc/*
%{python_sitelib}/*
%{_bindir}/dosage
%{_datadir}/man/man1/dosage.1.gz

%changelog