Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic spec and instructions to build on Fedora #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ This repository contains the code of unofficial [GOG](http://www.gog.com/) downl
libboost-date-time-dev libboost-iostreams-dev help2man cmake libssl-dev \
pkg-config zlib1g-dev

### Building and installing on Fedora

Update git commit in lgogdownloader.spec to the desired target.

Update the version to today's date.

spectool -g lgogdownloader.spec
mock -r fedora-28-x86_64 --buildsrpm --sources=./ --spec=./lgogdownloader.spec
cp /var/lib/mock/fedora-28-x86_64/result/lgogdownloader-*.src.rpm ./
mock -r fedora-28-x86_64 lgogdownloader-*.src.rpm
cp /var/lib/mock/fedora-28-x86_64/result/lgogdownloader-*.x86_64.rpm ./
sudo dnf install ./lgogdownloader-*.x86_64.rpm

## Build and install

$ mkdir build
Expand Down
52 changes: 52 additions & 0 deletions lgogdownloader.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
%global gh_commit 3b733fcb4ba60c7e4407e76932796baac9eae911
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner Sude-
%global gh_project lgogdownloader

Name: lgogdownloader
Version: 20180531
Release: 0.%{gh_short}%{?dist}
Summary: GOGDownloader for Linux

License: WTFPL
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz

BuildRequires: cmake
BuildRequires: boost-devel
BuildRequires: libcurl-devel
BuildRequires: openssl-devel
BuildRequires: liboauth-devel
BuildRequires: jsoncpp-devel
BuildRequires: htmlcxx-devel
BuildRequires: rhash-devel
BuildRequires: tinyxml2-devel
BuildRequires: zlib-devel
BuildRequires: help2man
BuildRequires: gzip

%description
LGOGDownloader is open source downloader to GOG.com for Linux users using the same API as the official GOGDownloader

%prep
%autosetup -n %{gh_project}-%{gh_commit}

%build
%cmake .
%make_build


%install
%make_install


%files
%license COPYING
%doc README.md
%{_bindir}/lgogdownloader
%{_mandir}/man1/lgogdownloader.1*



%changelog