File plowshare.spec of Package plowshare

#
# spec file for package plowshare
#
# Copyright (c) 2015 SUSE LINUX 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:           plowshare
Version:        2.1.2
Release:        0
Summary:        Download and upload files from file-sharing websites
License:        GPL-3.0+
Group:          Productivity/Networking/Web/Utilities
Url:            https://github.com/mcrapet/plowshare
Source0:        https://github.com/mcrapet/plowshare/archive/v%{version}.tar.gz
BuildRequires:  bash >= 4.1
BuildRequires:  curl >= 7.24
Requires:       bash >= 4.1
Requires:       curl >= 7.24
Requires:       recode
Provides:       %{name}-bash-completion = %{version}
Obsoletes:      %{name}-bash-completion < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
plowshare is a command-line (CLI) download/upload tool for popular file sharing websites
(aka file hosting provider or One-Click hoster). With plowshare, you will be able to download or upload
files and manage remote folders and link deletion. It runs on Linux/BSD/Unix operating system.
The basic concept is that files can be downloaded and uploaded though command line as easily as wget (or curl).

%prep
%setup -q

%build

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

install -D -m 0644  scripts/%{name}.completion %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
sed -i 's|/local||g' %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}

%files
%defattr(-,root,root,-)
%doc COPYING CHANGELOG
%doc %{_datadir}/doc/%{name}
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_mandir}/man5/%{name}.conf.5.*
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/*
%config %{_sysconfdir}/bash_completion.d/plowshare

%changelog
openSUSE Build Service is sponsored by