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

Revision 9222, 2.6 KB checked in by Takemikaduchi, 9 years ago (diff)

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

RevLine 
[7728]1Name: knavalbattle
2Summary: Battleship Game for KDE
[9222]3Version: 4.14.3
[7728]4Release: 1%{?_dist_release}
5
6License: GPLv2
[9222]7Group: Applications/Games
[7728]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
[8252]15BuildRequires: kdelibs-devel >= %{version}
[7728]16BuildRequires: libkdegames-devel >= %{version}
17
18Requires(posttrans,postun): desktop-file-utils
19
20Vendor: Project Vine
21Distribution: Vine Linux
22Packager: Takemikaduchi
23
24%description
25Naval Battle is a Battle Ship game for KDE. Ships are placed on a board which represents
26the sea. Players try to hit each others ships in turns without knowing where they are placed.
27The first player to destroy all ships wins the game.
28
29%prep
30%setup -q
31
32%build
33mkdir -p %{_target_platform}
34pushd %{_target_platform}
35%cmake \
36    -DCMAKE_BUILD_TYPE=release \
37    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
38    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
39    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
40    -DLIB_INSTALL_DIR:PATH=%{_libdir} \
41    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
42    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
43    ..
44popd
45
46make %{?_smp_mflags} -C %{_target_platform}
47
48
49%install
50rm -rf $RPM_BUILD_ROOT
51make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
52
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%post
58touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
59
60%posttrans
61gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
62update-desktop-database -q &> /dev/null ||:
63
64%postun
65if [ $1 -eq 0 ] ; then
66    touch --no-create %{_datadir}/icons/hicolor &> /dev/null
67    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null
68        update-desktop-database -q &> /dev/null ||:
69fi
70
71
72%files
73%defattr(-,root,root)
74%doc COPYING COPYING.DOC
[8252]75%{_bindir}/%{name}
76%{_datadir}/applications/kde4/%{name}.desktop
[7728]77%{_datadir}/icons/hicolor/*/*/*
[8252]78%{_datadir}/kde4/apps/kconf_update/%{name}.upd
79%{_datadir}/kde4/apps/%{name}/
80%{_datadir}/kde4/services/%{name}.protocol
81%doc %{_docdir}/HTML/en/%{name}/
[7728]82
83
84%changelog
[9222]85* Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
86- new upstream release
87
[8430]88* Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
89- new upstream release
90
[8252]91* Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
92- new upstream release
93
[8056]94* Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
95- new upstream release
96
[7801]97* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
98- new upstream release
99
[7728]100* Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
101- initial build
Note: See TracBrowser for help on using the repository browser.