]> git.pld-linux.org Git - packages/knights.git/blob - knights.spec
- removed invalid defines
[packages/knights.git] / knights.spec
1 Summary:        A KDE based chess environment
2 Summary(pl):    ¦rodowisko do gry w szachy dla KDE
3 Name:           knights
4 Version:        0.6
5 Release:        2
6 License:        GPL
7 Group:          X11/Applications/Games
8 Source0:        http://dl.sourceforge.net/knights/%{name}-%{version}.tar.gz
9 # Source0-md5:  b04574568b9bc3982b934328ee63fb74
10 Source1:        http://dl.sourceforge.net/knights/knights-themepack-0.5.9.tar.gz
11 # Source1-md5:  ece32b73d43e16b997423c219dcda21d
12 URL:            http://www.knights-chess.com/
13 BuildRequires:  arts-devel
14 BuildRequires:  automake
15 BuildRequires:  audiofile-devel
16 BuildRequires:  kdelibs-devel >= 3.0
17 BuildRequires:  libjpeg-devel
18 BuildRequires:  libpng-devel
19 BuildRequires:  qt-devel >= 3.0.2
20 BuildRequires:  rpmbuild(macros) >= 1.129
21 BuildRequires:  zlib-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Knights aims to be the ultimate chess resource on your computer.
26 Written for the K Desktop Environment, it's designed to be both
27 friendly to new chess players and functional for Grand Masters. Some
28 of Knights' key features include: single, multi, and Internet play;
29 customizable board and pieces; audio cues; move previews; and much
30 much more...
31
32 %description -l pl
33 Knights d±¿y do tego, by byæ najlepszym programem szachowym na twoim
34 komputerze. Napisany zosta³ dla KDE, jest zaprojektowany w sposób
35 przyjazny dla nowych graczy, jak te¿ funkcjonalny dla Wielkich
36 Mistrzów. Cechy Knights to: mo¿liwo¶æ gry jednego, i wielu graczy, jak
37 te¿ gry przez Internet; mo¿liwo¶æ wybory stylu szachownicy i figur;
38 podpowiedzi d¼wiêkowe; podgl±d ruchów i wiele, wiele innych...
39
40 %package themes
41 Summary:        Knights themepack
42 Summary(pl):    Zestaw motywów do knights
43 Group:          Themes
44 Requires:       %{name} = %{version}-%{release}
45
46 %description themes
47 Additional themes for the Knights chess enviroment.
48
49 %description themes -l pl
50 Dodatkowe motywy do ¶rodowiska gry w szachy knights.
51
52 %prep
53 %setup -q
54
55 %build
56 kde_appsdir="%{_desktopdir}"; export kde_appsdir
57 kde_htmldir="%{_kdedocdir}"; export kde_htmldir
58 cp -f /usr/share/automake/config.sub admin/config.sub
59 %configure
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 install -d $RPM_BUILD_ROOT%{_datadir}/apps/knights/themes
69 %{__tar} xfz %{SOURCE1} -C $RPM_BUILD_ROOT%{_datadir}/apps/knights/themes
70 mv $RPM_BUILD_ROOT%{_datadir}/apps/knights/themes/{knights-themepack/*.tar.gz,}
71 rm -rf $RPM_BUILD_ROOT%{_datadir}/apps/knights/themes/knights-themepack
72 mv $RPM_BUILD_ROOT%{_desktopdir}/{Games/Board/,}knights.desktop
73 echo "Categories=Qt;KDE;Game;BoardGame;" >> $RPM_BUILD_ROOT%{_desktopdir}/knights.desktop
74
75 %find_lang %{name} --with-kde
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files -f %{name}.lang
81 %defattr(644,root,root,755)
82 %doc AUTHORS README
83 %attr(755,root,root) %{_bindir}/%{name}*
84 %dir %{_datadir}/apps/knights
85 %{_datadir}/apps/knights/[!t]*
86 %{_desktopdir}/knights.desktop
87 %{_datadir}/mimelnk/application/pgn.desktop
88 %dir %{_datadir}/apps/knights/themes
89 %{_datadir}/apps/knights/themes/KBDefault.tar.gz
90 %{_datadir}/apps/knights/themes/KCDefault.tar.gz
91 %{_datadir}/apps/knights/themes/KSDefault.tar.gz
92 %{_iconsdir}/*/*/*/*.png
93
94 %files themes
95 %defattr(644,root,root,755)
96 %{_datadir}/apps/%{name}/themes/*
97 %exclude %{_datadir}/apps/knights/themes/KBDefault.tar.gz
98 %exclude %{_datadir}/apps/knights/themes/KCDefault.tar.gz
99 %exclude %{_datadir}/apps/knights/themes/KSDefault.tar.gz
This page took 0.12747 seconds and 3 git commands to generate.