File smugbatch.spec of Package smugbatch

#
# spec file for package smugbatch
#
# Copyright (c) 2017 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:           smugbatch
Version:        007
Release:        0
Summary:        Tools for smugmug.com
License:        GPL-2.0
Group:          Productivity/Graphics/Other
Url:            http://github.com/gregkh/smugbatch/tree/master
Source:         gregkh-%{name}-%{version}-0-g4e9c3fa.tar.gz
Patch1:         nsl.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1020
BuildRequires:  libcurl-devel
%else
BuildRequires:  curl-devel
%endif

%description
This collection of tools allows you to list, upload, and download images from
smugmug.com from a command line.  They are for use with Linux systems and
hopefully should be able to be easily called by other tools to interact with
smugmug.com where needed.

%prep
%setup -q -n gregkh-smugbatch-4e9c3fa
%patch1 -p0

%build
make %{?_smp_mflags} V=1 CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_prefix}/bin
install -m 0755 smugdown smugup smugls %{buildroot}%{_prefix}/bin
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 smugls.1 smugup.1 %{buildroot}%{_mandir}/man1

%files
%defattr(-,root,root)
%doc RELEASE-NOTES COPYING ChangeLog
%{_mandir}/man1/*%{ext_man}
%{_bindir}/smug*

%changelog
openSUSE Build Service is sponsored by