1 | %{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} |
---|
2 | |
---|
3 | Name: gnome-sudoku |
---|
4 | Summary: GNOME Sudoku |
---|
5 | Summary(ja): GNOME 数独 |
---|
6 | Version: 3.12.2 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | License: GPLv2 |
---|
9 | Group: Applications/Games |
---|
10 | URL: https://live.gnome.org/ |
---|
11 | Source: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/3.12/%{name}-%{version}.tar.xz |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | |
---|
15 | BuildRequires: gtk3-devel |
---|
16 | BuildRequires: pygobject3-devel |
---|
17 | BuildRequires: python3-pygobject |
---|
18 | BuildRequires: yelp-tools |
---|
19 | |
---|
20 | Requires(postun,posttrans): desktop-file-utils |
---|
21 | Requires(postun,posttrans): gtk3 |
---|
22 | Requires: python3-pygobject, python3-pycairo |
---|
23 | |
---|
24 | Vendor: Project Vine |
---|
25 | Distribution: Vine Linux |
---|
26 | Packager: Takemikaduchi |
---|
27 | |
---|
28 | %description |
---|
29 | Gnome Sudoku is a logic game with a Japanese name that has recently exploded |
---|
30 | in popularity. |
---|
31 | |
---|
32 | |
---|
33 | %prep |
---|
34 | %setup -q |
---|
35 | |
---|
36 | %build |
---|
37 | %configure |
---|
38 | make %{?_smp_mflags} |
---|
39 | |
---|
40 | %install |
---|
41 | rm -rf $RPM_BUILD_ROOT |
---|
42 | |
---|
43 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
44 | |
---|
45 | %find_lang %{name} --with-gnome |
---|
46 | |
---|
47 | %clean |
---|
48 | rm -rf $RPM_BUILD_ROOT |
---|
49 | |
---|
50 | %post |
---|
51 | touch %{_datadir}/icons/hicolor |
---|
52 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || : |
---|
53 | |
---|
54 | %postun |
---|
55 | if [ $1 -eq 0 ]; then |
---|
56 | touch %{_datadir}/icons/hicolor |
---|
57 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || : |
---|
58 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
59 | update-desktop-database -q > /dev/null || : |
---|
60 | fi |
---|
61 | |
---|
62 | %posttrans |
---|
63 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
64 | update-desktop-database -q > /dev/null || : |
---|
65 | |
---|
66 | |
---|
67 | %files -f %{name}.lang |
---|
68 | %defattr(-, root, root) |
---|
69 | %doc COPYING NEWS |
---|
70 | %{_bindir}/%{name} |
---|
71 | %{python3_sitelib}/gnome_sudoku |
---|
72 | %{_datadir}/appdata/%{name}.appdata.xml |
---|
73 | %{_datadir}/applications/%{name}.desktop |
---|
74 | %{_datadir}/glib-2.0/schemas/org.gnome.gnome-sudoku.gschema.xml |
---|
75 | %{_datadir}/%{name} |
---|
76 | %{_datadir}/icons/hicolor/*/apps/%{name}.* |
---|
77 | %{_datadir}/icons/HighContrast/*/apps/%{name}.* |
---|
78 | %{_mandir}/man6/%{name}.6.gz |
---|
79 | |
---|
80 | |
---|
81 | %changelog |
---|
82 | * Sat May 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.2-1 |
---|
83 | - new upstream release |
---|
84 | |
---|
85 | * Sun Apr 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1 |
---|
86 | - new upstream release |
---|
87 | |
---|
88 | * Sun Apr 13 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1 |
---|
89 | - new upstream release |
---|
90 | - add BuildRequires: python3-pygobject |
---|
91 | - add Requires: python3-pygobject, python3-pycairo |
---|
92 | |
---|
93 | * Sat Nov 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1 |
---|
94 | - new upstream release |
---|
95 | |
---|
96 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1 |
---|
97 | - new upstream release |
---|
98 | |
---|
99 | * Sun Apr 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.8.1-1 |
---|
100 | - initial build |
---|
101 | - add Patch0 (0001-Fix-NumberBox-envents-configuration-with-latest-pygo.patch) from fedora |
---|
102 | |
---|