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

Revision 10564, 2.7 KB checked in by Takemikaduchi, 8 years ago (diff)

rebuild with gcc-5.4.0

Line 
1Name: knavalbattle
2Summary: Battleship Game for KDE
3Version: 4.14.3
4Release: 2%{?_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: kdelibs-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
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
75%{_bindir}/%{name}
76%{_datadir}/applications/kde4/%{name}.desktop
77%{_datadir}/icons/hicolor/*/*/*
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}/
82
83
84%changelog
85* Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-2
86- rebuild with gcc-5.4.0
87
88* Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
89- new upstream release
90
91* Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
92- new upstream release
93
94* Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
95- new upstream release
96
97* Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
98- new upstream release
99
100* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
101- new upstream release
102
103* Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
104- initial build
Note: See TracBrowser for help on using the repository browser.