File lgogdownloader.spec of Package lgogdownloader
#
# spec file for package lgogdownloader (Version 17)
#
# Copyright (c) 2012-2014 Klaus Singvogel, Kaierberg, 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/
#
%define lgogdownloader_tar lgogdownloader-git-3.2x
Name: lgogdownloader
Summary: GOGDownloader command line tool for Linux
Version: 2.21
Release: 0
License: WTFPL
URL: https://sites.google.com/site/gogdownloader/home
Group: Amusements/Games/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: pkgconfig(libcurl)
#BuildRequires: curl-devel
BuildRequires: liboauth-devel
BuildRequires: libjson-devel
#BuildRequires: pkgconfig(libjson)
#BuildRequires: pkgconfig(jsoncpp)
BuildRequires: pkgconfig(json)
BuildRequires: jsoncpp-devel
BuildRequires: htmlcxx-devel
BuildRequires: boost-devel
BuildRequires: libboost_system-devel >= 1.54
BuildRequires: libboost_filesystem-devel >= 1.54
BuildRequires: libboost_regex-devel >= 1.54.0
BuildRequires: libboost_program_options-devel >= 1.54
BuildRequires: libboost_date_time-devel >= 1.54
BuildRequires: libboost_iostreams-devel >= 1.54
BuildRequires: tinyxml2-devel
BuildRequires: rhash-devel
BuildRequires: help2man
BuildRequires: libopenssl-devel
Source: %{lgogdownloader_tar}.tar.gz
#Source1: https://sites.google.com/site/gogdownloader/%{name}-%{version}.tar.gz
%description
An open source downloader to GOG.com for Linux users using the same
API as the official GOGDownloader
%prep
%setup -n %{lgogdownloader_tar} -q
%build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
make
%install
# create dirs
cd build
make DESTDIR=%{buildroot} install
%clean
%files
%defattr(664,root,users,775)
%doc COPYING
%attr(755,root,root) %{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%changelog