[dreamchess/f21] v0.2.1-RC2 (again)
Raphael Groner
raphgro at fedoraproject.org
Sat Dec 27 18:09:52 UTC 2014
commit 53f8b2065bd367a50dbbae265a013efdb69e4cea
Author: Raphael Groner <projects.rg at smart.ms>
Date: Sat Dec 27 19:09:38 2014 +0100
v0.2.1-RC2 (again)
dreamchess.spec | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/dreamchess.spec b/dreamchess.spec
index 6ce4721..13dfc8f 100644
--- a/dreamchess.spec
+++ b/dreamchess.spec
@@ -5,7 +5,7 @@
Name: dreamchess
Version: 0.2.1
-Release: 6.%{pre}%{?dist}
+Release: 7.%{pre}%{?dist}
Summary: Portable chess game
##GPLv2+ and v3+ for most of sources, explicitly BSD for src/include/gamegui/queue.h (see file COPYRIGHT)
License: GPLv3+ and BSD
@@ -13,7 +13,7 @@ URL: http://www.%{name}.org/
Source0: http://downloads.sf.net/%{name}/%{name}-%{version}-%{pre}.tar.gz
BuildRequires: mxml-devel
-BuildRequires: SDL-devel SDL_image-devel SDL_mixer-devel
+BuildRequires: SDL-devel SDL_image-devel SDL_mixer-devel glew-devel
BuildRequires: desktop-file-utils
# icons get installed into hicolor folders
@@ -78,12 +78,27 @@ make %{?_smp_mflags}
%install
%make_install
+mkdir -p %{buildroot}%{_datadir}/pixmaps
+ln -s ../icons/hicolor/256x256/apps/dreamchess.png
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
%files
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
@@ -108,6 +123,10 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%changelog
+* Sat Dec 27 2014 Raphael Groner <projects.rg [AT] smart.ms> - 0.2.1-7.RC2
+- add glew as dependency
+- add icon cache scriptlets
+
* Tue Dec 23 2014 Raphael Groner <projects.rg [AT] smart.ms> - 0.2.1-6.RC2
- v0.2.1 RC2
- use proper download url
More information about the scm-commits
mailing list