]> git.pld-linux.org Git - packages/aisleriot.git/blob - aisleriot.spec
- up to 3.22.30
[packages/aisleriot.git] / aisleriot.spec
1 #
2 # Conditional build:
3 %bcond_with     qt      # Support for QtSvg based formats (kde,native)
4 #
5 Summary:        A collection of card games
6 Summary(pl.UTF-8):      Kolekcja gier karcianych
7 Name:           aisleriot
8 Version:        3.22.30
9 Release:        1
10 License:        GPL v3+ and LGPL v3+ and GFDL
11 Group:          X11/Applications/Games
12 Source0:        https://gitlab.gnome.org/GNOME/aisleriot/-/archive/%{version}/%{name}-%{version}.tar.bz2
13 # Source0-md5:  5fe4f20aa7cf5f53c5e0497409b11b22
14 URL:            https://wiki.gnome.org/Apps/Aisleriot
15 %{?with_qt:BuildRequires:       Qt5Svg-devel >= 5.0.0}
16 BuildRequires:  cairo-devel >= 1.10.0
17 BuildRequires:  desktop-file-utils
18 BuildRequires:  gettext-tools
19 BuildRequires:  gtk+3-devel >= 3.18.0
20 BuildRequires:  guile-devel >= 5:2.2
21 BuildRequires:  itstool
22 BuildRequires:  libcanberra-gtk3-devel >= 0.26
23 BuildRequires:  librsvg-devel >= 2.32.0
24 BuildRequires:  libstdc++-devel >= 6:4.7
25 BuildRequires:  libtool >= 2:2.2
26 BuildRequires:  libxml2-progs
27 BuildRequires:  lsb-release
28 BuildRequires:  meson >= 0.62.0
29 BuildRequires:  ninja >= 1.5
30 BuildRequires:  pkgconfig >= 1:0.15
31 BuildRequires:  rpmbuild(find_lang) >= 1.35
32 BuildRequires:  rpmbuild(macros) >= 2.000
33 BuildRequires:  tar >= 1:1.22
34 BuildRequires:  yelp-tools >= 3.2.0
35 Requires(post,postun):  glib2 >= 1:2.32.0
36 Requires(post,postun):  gtk-update-icon-cache
37 Requires:       cairo >= 1.10.0
38 Requires:       glib2 >= 1:2.32.0
39 Requires:       gtk+3 >= 3.18.0
40 Requires:       guile >= 5:2.2
41 Requires:       hicolor-icon-theme
42 Requires:       libcanberra-gtk3 >= 0.26
43 Requires:       librsvg >= 2.32.0
44 Provides:       gnome-games-sol = %{version}
45 Obsoletes:      gnome-games-sol
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 Aisleriot (also known as Solitaire or sol) is a collection of card
50 games which are easy to play with the aid of a mouse. The rules for
51 the games have been coded for your pleasure in the GNOME scripting
52 language (Scheme).
53
54 %description -l pl.UTF-8
55 Aisleriot (znany także jako Pasjans, Solitaire lub sol) to kolekcja
56 gier karcianych, łatwych do rozgrywania przy pomocy myszy. Zasady gier
57 zostały zakodowane w języku skryptowym GNOME (Scheme).
58
59 %package -n valgrind-aisleriot
60 Summary:        Aisleriot support for Valgrind
61 Summary(pl.UTF-8):      Obsługa Aisleriota dla Valgrinda
62 Group:          Development/Libraries
63 Requires:       %{name} = %{version}-%{release}
64 Requires:       valgrind
65
66 %description -n valgrind-aisleriot
67 Aisleriot support for Valgrind.
68
69 %description -n valgrind-aisleriot -l pl.UTF-8
70 Obsługa Aisleriota dla Valgrinda.
71
72 %prep
73 %setup -q
74
75 %build
76 %meson build \
77         -Dtheme_kde=false \
78         %{?with_qt:-Dtheme_svg_qtsvg=true -Dtheme_kde=true -Dtheme_kde_path=%{_datadir}/apps/carddecks} \
79         -Dtheme_pysol=true \
80         -Dtheme_pysol_path=%{_datadir}/pysol \
81
82 %ninja_build -C build
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %ninja_install -C build
88
89 %find_lang %{name} --with-gnome
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %post
95 %update_icon_cache hicolor
96 %glib_compile_schemas
97
98 %postun
99 %update_icon_cache hicolor
100 %glib_compile_schemas
101
102 %files -f %{name}.lang
103 %defattr(644,root,root,755)
104 %doc AUTHORS TODO
105 %attr(755,root,root) %{_bindir}/sol
106 %if "%{_libexecdir}" != "%{_libdir}"
107 %dir %{_libexecdir}/aisleriot
108 %endif
109 %attr(755,root,root) %{_libexecdir}/aisleriot/ar-cards-renderer
110 %dir %{_libdir}/aisleriot
111 %{_libdir}/aisleriot/guile
112 %{_datadir}/aisleriot
113 %{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml
114 %{_datadir}/metainfo/sol.metainfo.xml
115 %{_desktopdir}/sol.desktop
116 %{_iconsdir}/hicolor/*x*/apps/gnome-aisleriot.png
117 %{_iconsdir}/hicolor/*x*/apps/gnome-freecell.png
118 %{_iconsdir}/hicolor/symbolic/apps/gnome-aisleriot-symbolic.svg
119 %{_mandir}/man6/sol.6*
120
121 %files -n valgrind-aisleriot
122 %defattr(644,root,root,755)
123 %{_libdir}/valgrind/aisleriot.supp
This page took 0.108981 seconds and 4 git commands to generate.