source: projects/specs/trunk/k/kreversi/kreversi-vl.spec @ 9222

Revision 9222, 2.9 KB checked in by Takemikaduchi, 8 years ago (diff)

R: rebuild
openbabel: add BR
k3b: new upstream release
others: KDE-4.14.3

Line 
1Name: kreversi
2Summary: Reversi Board Game for KDE
3Version: 4.14.3
4Release: 1%{?_dist_release}
5
6License: GPLv2
7Group: Applications/Games
8URL: http://www.kde.org/applications/games/
9
10Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
11
12BuildRoot: %{_tmppath}/%{name}-%{version}-root
13
14BuildRequires: desktop-file-utils
15BuildRequires: kdelibs4-devel >= %{version}
16BuildRequires: libkdegames-devel >= %{version}
17
18Requires(posttrans,postun): desktop-file-utils
19
20Vendor: Project Vine
21Distribution: Vine Linux
22Packager: Takemikaduchi
23
24%description
25KReversi is a simple one player strategy game played against the computer.
26If a player's piece is captured by an opposing player, that piece is turned
27over to reveal the color of that player. A winner is declared when one player
28has more pieces of his own color on the board and there are no more possible moves.
29
30
31%prep
32%setup -q
33
34%build
35mkdir -p %{_target_platform}
36pushd %{_target_platform}
37%cmake \
38    -DCMAKE_BUILD_TYPE=release \
39    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
40    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
41    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
42    -DLIB_INSTALL_DIR:PATH=%{_libdir} \
43    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
44    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
45    ..
46popd
47
48make %{?_smp_mflags} -C %{_target_platform}
49
50
51%install
52rm -rf $RPM_BUILD_ROOT
53make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
54
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%post
60touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
61touch --no-create %{_datadir}/icons/oxygen &> /dev/null || :
62
63%posttrans
64gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
65gtk-update-icon-cache %{_datadir}/icons/oxygen &> /dev/null || :
66update-desktop-database -q &> /dev/null ||:
67
68%postun
69if [ $1 -eq 0 ] ; then
70    touch --no-create %{_datadir}/icons/hicolor &> /dev/null
71    touch --no-create %{_datadir}/icons/oxygen &> /dev/null
72    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null
73    gtk-update-icon-cache %{_datadir}/icons/oxygen &> /dev/null
74        update-desktop-database -q &> /dev/null ||:
75fi
76
77
78%files
79%defattr(-,root,root)
80%doc COPYING COPYING.DOC
81%{_bindir}/%{name}
82%{_datadir}/applications/kde4/%{name}.desktop
83%{_datadir}/icons/hicolor/*/*/*
84%{_datadir}/icons/oxygen/*/*/*
85%{_datadir}/kde4/apps/%{name}
86%doc %{_docdir}/HTML/en/%{name}/
87
88
89%changelog
90* Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
91- new upstream release
92
93* Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
94- new upstream release
95
96* Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
97- new upstream release
98
99* Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
100- new upstream release
101
102* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
103- new upstream release
104
105* Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
106- initial build
Note: See TracBrowser for help on using the repository browser.