File smugbatch.spec of Package smugbatch

#
# spec file for package smugbatch
#
# Copyright (c) 2012 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:           smugbatch
%if 0%{?suse_version} > 1020
BuildRequires:  libcurl-devel
%else
BuildRequires:  curl-devel
%endif
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Command line tools to access smugmug.com.

Authors:
--------
    Greg Kroah-Hartman <greg@kroah.org>

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

%build
make 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
%doc %{_mandir}/man1/*.gz
%{_bindir}/smug*

%changelog
openSUSE Build Service is sponsored by