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

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

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

Line 
1Name: kpat
2Summary: Patience Card 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
19Requires(post,postun): shared-mime-info
20
21Vendor: Project Vine
22Distribution: Vine Linux
23Packager: Takemikaduchi
24
25%description
26KPatience is a relaxing card sorting game. To win the game a player has to arrange
27a single deck of cards in certain order amongst each other.
28
29
30%prep
31%setup -q
32
33%build
34mkdir -p %{_target_platform}
35pushd %{_target_platform}
36%cmake \
37    -DCMAKE_BUILD_TYPE=release \
38    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
39    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
40    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
41    -DLIB_INSTALL_DIR:PATH=%{_libdir} \
42    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
43    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
44    ..
45popd
46
47make %{?_smp_mflags} -C %{_target_platform}
48
49
50%install
51rm -rf $RPM_BUILD_ROOT
52make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
53
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%post
59touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
60update-mime-database %{_datadir}/mime &> /dev/null || :
61
62%posttrans
63gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
64update-desktop-database -q &> /dev/null ||:
65
66%postun
67update-mime-database %{_datadir}/mime &> /dev/null || :
68if [ $1 -eq 0 ] ; then
69    touch --no-create %{_datadir}/icons/hicolor &> /dev/null
70    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null
71        update-desktop-database -q &> /dev/null ||:
72fi
73
74
75%files
76%defattr(-,root,root)
77%doc COPYING COPYING.DOC
78%{_bindir}/%{name}
79%{_libdir}/libkcardgame.so
80%{_datadir}/applications/kde4/%{name}.desktop
81%{_datadir}/config.kcfg/%{name}.kcfg
82%{_datadir}/config/kcardtheme.knsrc
83%{_datadir}/config/%{name}.knsrc
84%{_datadir}/icons/hicolor/*/*/*
85%{_datadir}/kde4/apps/%{name}
86%{_datadir}/mime/packages/kpatience.xml
87%doc %{_docdir}/HTML/en/%{name}/
88
89
90%changelog
91* Thu Jan 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.14.3-1
92- new upstream release
93
94* Wed May 07 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
95- new upstream release
96
97* Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
98- new upstream release
99
100* Sun Dec 22 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
101- new upstream release
102
103* Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
104- new upstream release
105
106* Sun Jul 07 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
107- initial build
Note: See TracBrowser for help on using the repository browser.