source: projects/specs/trunk/k/kubrick/kubrick-vl.spec @ 8430

Revision 8430, 2.5 KB checked in by Takemikaduchi, 10 years ago (diff)

KDE-4.12.5

Line 
1Name: kubrick
2Summary: 3-D Game based on Rubik's Cube for KDE
3Version: 4.12.5
4Release: 1%{?_dist_release}
5
6License: GPLv2
7Group: Applications/Accessories
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
25Kubrick is a game based on the Rubik's Cube™ puzzle. The cube sizes range from 2x2x2 up t
266x6x6, or you can play with irregular "bricks" such as 5x3x2 or "mats" such as 6x4x1 or 2x2x1.
27The game has a selection of puzzles at several levels of difficulty, as well as demos of pretty
28patterns and solution moves, or you can make up your own puzzles.
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}/icons/hicolor/*/*/*
80%{_datadir}/kde4/apps/%{name}
81%doc %{_docdir}/HTML/en/%{name}/
82
83
84%changelog
85* Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
86- new upstream release
87
88* Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
89- new upstream release
90
91* Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
92- new upstream release
93
94* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
95- new upstream release
96
97* Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
98- initial build
Note: See TracBrowser for help on using the repository browser.