File plowshare.spec of Package plowshare

# spec file for package plowshare
# Copyright (c) 2016 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

Name:           plowshare
Version:        2.1.3
Release:        0
Summary:        Download and upload files from file-sharing websites
License:        GPL-3.0+
Group:          Productivity/Networking/Web/Utilities
BuildRequires:  bash >= 4.1
BuildRequires:  curl >= 7.24
Requires:       bash >= 4.1
Requires:       curl >= 7.24
Requires:       recode
Recommends:     bash-completion
Provides:       %{name}-bash-completion = %{version}
Obsoletes:      %{name}-bash-completion < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

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).

%setup -q


make %{?_smp_mflags} DESTDIR=%{buildroot} install
install -D -m 0644  scripts/%{name}.completion  %{buildroot}%{_datadir}/bash-completion/completions/%{name}
sed -i 's|/local||g' %{buildroot}%{_datadir}/bash-completion/completions/%{name}
rm -rf  %{buildroot}%{_datadir}/doc/%{name}

%doc COPYING CHANGELOG docs/plowshare.conf.sample
%ghost %config(noreplace) %{_sysconfdir}/plowshare.conf