]> git.pld-linux.org Git - packages/tali.git/blob - tali.spec
Initial release
[packages/tali.git] / tali.spec
1 Summary:        GNOME Tali
2 Summary(pl.UTF-8):      Tali dla GNOME
3 Name:           tali
4 Version:        3.8.0
5 Release:        1
6 License:        GPL v2
7 Group:          X11/Applications/Games
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/tali/3.8/%{name}-%{version}.tar.xz
9 # Source0-md5:  e9f1389df409247074aa24b329888482
10 URL:            https://live.gnome.org/Tali
11 BuildRequires:  autoconf
12 BuildRequires:  automake >= 1:1.11
13 BuildRequires:  gettext-devel
14 BuildRequires:  gnome-common
15 BuildRequires:  gtk+3-devel >= 3.4.0
16 BuildRequires:  intltool >= 0.35.0
17 BuildRequires:  librsvg-devel >= 2.32.0
18 BuildRequires:  pkgconfig
19 BuildRequires:  yelp-tools
20 Requires(post,postun):  glib2 >= 1:2.26.0
21 Requires(post,postun):  gtk-update-icon-cache
22 Requires:       hicolor-icon-theme
23 Provides:       gnome-games-gtali = 1:%{version}-%{release}
24 Obsoletes:      gnome-games-gtali < 1:3.8.0
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _gamesdir       %{_localstatedir}/games
28
29 %description
30 Poker-style dice game.
31
32 %description -l pl.UTF-8
33 Gra w kości w pokerowym stylu.
34
35 %prep
36 %setup -q
37
38 %build
39 %{__intltoolize}
40 %{__aclocal}
41 %{__autoconf}
42 %{__autoheader}
43 %{__automake}
44 %configure
45 %{__make}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 touch $RPM_BUILD_ROOT%{_gamesdir}/gtali.scores
54
55 %find_lang %{name} --with-gnome --all-name
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %post
61 %update_icon_cache hicolor
62 %glib_compile_schemas
63
64 if [ ! -f %{_gamesdir}/gtali.scores ]; then
65         touch %{_gamesdir}/gtali.scores
66         chown root:games %{_gamesdir}/gtali.scores
67         chmod 664 %{_gamesdir}/gtali.scores
68 fi
69
70 %postun
71 %update_icon_cache hicolor
72 %glib_compile_schemas
73
74 %files -f %{name}.lang
75 %defattr(644,root,root,755)
76 %doc NEWS
77 %attr(2755,root,root) %{_bindir}/tali
78 %{_iconsdir}/hicolor/*/*/*.png
79 %{_iconsdir}/hicolor/*/*/*.svg
80 %attr(664,root,games) %ghost %{_gamesdir}/gtali.*
81 %{_datadir}/glib-2.0/schemas/org.gnome.tali.gschema.xml
82 %{_datadir}/tali
83 %{_desktopdir}/gtali.desktop
84 %{_mandir}/man6/tali.6*
This page took 0.101665 seconds and 3 git commands to generate.