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

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

rebuild with gcc-5.4.0

Line 
1Name: kblocks
2Summary: Falling Blocks 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: 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
25KBlocks is the classic falling blocks game. The idea is to stack the falling blocks
26to create horizontal lines without any gaps. When a line is completed it is removed,
27and more space is available in the play area. When there is not enough space for blocks
28to fall, the game is over.
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 || :
61
62%posttrans
63gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
64update-desktop-database -q &> /dev/null ||:
65
66%postun
67if [ $1 -eq 0 ] ; then
68    touch --no-create %{_datadir}/icons/hicolor &> /dev/null
69    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null
70        update-desktop-database -q &> /dev/null ||:
71fi
72
73
74%files
75%defattr(-,root,root)
76%doc COPYING COPYING.DOC
77%{_bindir}/%{name}
78%{_datadir}/applications/kde4/%{name}.desktop
79%{_datadir}/config/%{name}.knsrc
80%{_datadir}/config.kcfg/%{name}.kcfg
81%{_datadir}/icons/hicolor/*/*/*
82%{_datadir}/kde4/apps/%{name}
83%doc %{_docdir}/HTML/en/%{name}/
84
85
86%changelog
87* Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-2
88- rebuild with gcc-5.4.0
89
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.