commit 6323c81feef3ab6c84bcc59be8ccbb04777b8e8a
Author: Alexandre Detiste <alexandre.detiste(a)gmail.com>
Date: Sat Jul 23 00:30:30 2016 +0200
initial import
.gitignore | 1 +
game-data-packager.spec | 118 ++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 120 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0bc2a12 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/game-data-packager_45.tar.xz
diff --git a/game-data-packager.spec b/game-data-packager.spec
new file mode 100644
index 0000000..431c75c
--- /dev/null
+++ b/game-data-packager.spec
@@ -0,0 +1,118 @@
+#define gitdate 20160112
+# git log --oneline -1
+%define gitversion 50f64b6
+
+%if 0%{?gitdate}
+%define gver .git%{gitdate}%{gitversion}
+%endif
+
+Name: game-data-packager
+Version: 45
+Release: 1%{?gver}
+Summary: Installer for game data files
+License: GPLv2 and GPLv2+
+Url:
https://wiki.debian.org/Games/GameDataPackager
+%if 0%{?gitdate}
+# git archive --prefix=game-data-packager-44/ --format tar.gz master >
../rpmbuild/SOURCES/game-data-packager-`date +%Y%m%d`.tar.gz
+Source: game-data-packager-%{gitdate}.tar.gz
+%else
+Source:
http://http.debian.net/debian/pool/contrib/g/game-data-packager/game-data...
+%endif
+BuildArch: noarch
+BuildRequires: ImageMagick
+BuildRequires: inkscape
+BuildRequires: python3
+BuildRequires: python3-PyYAML
+BuildRequires: python3-pyflakes
+BuildRequires: zip
+Requires: python3-PyYAML
+# download
+Recommends: lgogdownloader
+Suggests: steam
+# rip
+Suggests: cdparanoia
+Suggests: vorbis-tools
+# extract
+Suggests: arj
+Suggests: cabextract
+Recommends: innoextract
+Suggests: lha
+Suggests: p7zip-plugins
+Suggests: xdelta
+Suggests: unar
+Suggests: unrar
+Suggests: unshield
+Suggests: unzip
+
+%global __python %{__python3}
+
+%description
+Various games are divided into two logical parts: engine and data.
+.
+game-data-packager is a tool which builds .rpm files for game
+data which cannot be distributed (such as commercial game data).
+
+%package -n doom2-masterlevels
+Summary: "Master Levels for Doom II" launcher
+Requires: python3-gobject-base
+Requires: gobject-introspection
+%description -n doom2-masterlevels
+This GUI let you select a WAD to play &
+show it's description.
+
+%prep
+%autosetup
+
+%build
+make %{?_smp_mflags}
+
+%check
+make check
+
+%install
+make DESTDIR=$RPM_BUILD_ROOT bindir=/usr/bin datadir=/usr/share install
+find $RPM_BUILD_ROOT/usr/share/game-data-packager/game_data_packager -name '*.py'
-exec chmod 755 {} \;
+#E: python-bytecode-inconsistent-mtime
+python3 -m compileall
$RPM_BUILD_ROOT/usr/share/game-data-packager/game_data_packager/version.py
+find $RPM_BUILD_ROOT/etc/game-data-packager -empty -exec sh -c "echo '# we need
more mirrors' > {}" \;
+rm -rvf $RPM_BUILD_ROOT/etc/apparmor.d
+
+%files
+%doc doc/adding_a_game.mdwn
+%{_mandir}/man6/game-data-packager.*
+%{_mandir}/fr/man6/game-data-packager.*
+%config(noreplace) %attr(644, root, root) /etc/game-data-packager.conf
+%config(noreplace) %attr(644, root, root) /etc/game-data-packager/*
+/usr/bin/game-data-packager
+/usr/share/bash-completion/completions/game-data-packager
+/usr/share/game-data-packager
+%license COPYING
+
+%files -n doom2-masterlevels
+%{_mandir}/man6/doom2-masterlevels.*
+/usr/bin/doom2-masterlevels
+/usr/share/applications/doom2-masterlevels.desktop
+/usr/share/pixmaps/doom2-masterlevels.png
+%license COPYING
+
+%changelog
+* Fri Jul 22 2016 Alexandre Detiste <alexandre.detiste(a)gmail.com> - 45-1
+- Finally upload to RPMFusion, skip v44
+
+* Sun Jan 24 2016 Alexandre Detiste <alexandre.detiste(a)gmail.com> - 44-1
+- First cross-distribution release
+- Add Cacodemon icon to doom2-masterlevels subpackage
+- The (optional) licenses of generated .rpm goes now correctly to /usr/share/licenses
+ instead of /usr/share/doc
+- AppArmor support temporary disabled until figured out
+
+* Thu Dec 31 2015 Alexandre Detiste <alexandre.detiste(a)gmail.com> -
44-0.2.git2015123150f64b6
+- Git Snapshot
+- Enable checks
+
+* Tue Dec 29 2015 Alexandre Detiste <alexandre.detiste(a)gmail.com> -
44-0.1.git2015122906f1b80
+- Git Snapshot
+- Suggests xdelta
+
+* Sun Nov 08 2015 Alexandre Detiste <alexandre.detiste(a)gmail.com> - 43-1
+- Initial port to Fedora
diff --git a/sources b/sources
index e69de29..4a5def2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c6d3d37c99e8f012426b3d53041d24ca game-data-packager_45.tar.xz