SHA256
1
0
forked from pool/atomiks

Accepting request 262128 from home:nemysis:branches:games

Please accept these changes.

OBS-URL: https://build.opensuse.org/request/show/262128
OBS-URL: https://build.opensuse.org/package/show/games/atomiks?expand=0&rev=6
This commit is contained in:
Dirk Stoecker
2014-11-18 10:09:50 +00:00
committed by Git OBS Bridge
parent 9390e82393
commit d8bac78f06
2 changed files with 17 additions and 3 deletions

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Nov 18 09:34:43 UTC 2014 - nemysis@gmx.ch
- Add BuildRequires for hicolor-icon-theme
-------------------------------------------------------------------
Mon Nov 17 21:59:29 UTC 2014 - nemysis@gmx.ch
- Use CFLAGS="%{optflags}" to fix
'File is compiled without RPM_OPT_FLAGS'
- Install icon in %{_datadir}/icons/hicolor/48x48/apps/
instead of %{_datadir}/pixmaps/
-------------------------------------------------------------------
Mon Oct 20 18:59:26 UTC 2014 - nemysis@gmx.ch

View File

@@ -29,6 +29,7 @@ Source1: %{name}.png
Source2: %{name}.desktop
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
%endif
BuildRequires: dos2unix
@@ -52,7 +53,7 @@ Atomiks is free software, and shares no code with the original Atomix game.
dos2unix readme.txt license.txt history.txt
%build
make %{?_smp_mflags}
make %{?_smp_mflags} CFLAGS="%{optflags}"
%install
# install executable
@@ -60,7 +61,7 @@ install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0755 editor %{buildroot}%{_bindir}/%{name}-editor
# install icon
install -Dm 0644 %{S:1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -Dm 0644 %{S:1} %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
# install Desktop file
install -Dm 0644 %{S:2} %{buildroot}%{_datadir}/applications/%{name}.desktop
@@ -76,6 +77,6 @@ install -Dm 0644 %{S:2} %{buildroot}%{_datadir}/applications/%{name}.desktop
%{_bindir}/%{name}
%{_bindir}/%{name}-editor
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/icons/hicolor/
%changelog