diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f134252 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lgogdownloader-3.7.tar.gz diff --git a/lgogdownloader.spec b/lgogdownloader.spec new file mode 100644 index 0000000..9de05a3 --- /dev/null +++ b/lgogdownloader.spec @@ -0,0 +1,55 @@ +Name: lgogdownloader +Version: 3.7 +Release: 2%{?dist} +Summary: GOG.com download client + +License: WTFPL +URL: https://github.com/Sude-/lgogdownloader +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: help2man +BuildRequires: binutils +BuildRequires: pkgconfig(htmlcxx) +BuildRequires: pkgconfig(jsoncpp) +BuildRequires: pkgconfig(libcrypto) +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(tinyxml2) +BuildRequires: pkgconfig(zlib) +BuildRequires: boost-devel +BuildRequires: rhash-devel +%ifarch %{qt5_qtwebengine_arches} +BuildRequires: pkgconfig(Qt5WebEngine) +%endif + +%description +LGOGDownloader is an unofficial GOG.com downloader for Linux users. It uses the +same API as the official GOG Galaxy. + +%prep +%autosetup + +%build +%ifarch %{qt5_qtwebengine_arches} +%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=Release -DUSE_QT_GUI=ON . +%else +%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=Release -DUSE_QT_GUI=OFF . +%endif +%make_build + +%install +%make_install + +%files +%license COPYING +%{_bindir}/lgogdownloader +%{_mandir}/man1/lgogdownloader.1.* + +%changelog +* Mon Jun 29 2020 Benjamin Lowry 3.7-2 +- Change source0 URL +- Replace /usr with _prefix macro +- Glob extension of manpage file +* Thu Jun 18 2020 Benjamin Lowry 3.7-1 +- Initial Fedora package diff --git a/sources b/sources new file mode 100644 index 0000000..21c1229 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lgogdownloader-3.7.tar.gz) = 4176d2406024231b97949b786634e30ed1c1633875041594a83402e9ff974f272e73084aaeec906358a745901616b0d802f9221e2a0968dac0bcc1de5ec6fb16