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