]>
Commit | Line | Data |
---|---|---|
444a1b2f MB |
1 | Summary: Support library for GNOME games |
2 | Summary(pl.UTF-8): Biblioteka wspierająca dla gier GNOME | |
aa710c39 JB |
3 | Name: libgnome-games-support2 |
4 | Version: 2.0.0 | |
5 | Release: 1 | |
444a1b2f MB |
6 | License: LGPL v3+ |
7 | Group: X11/Libraries | |
aa710c39 JB |
8 | Source0: https://download.gnome.org/sources/libgnome-games-support/2.0/libgnome-games-support-%{version}.tar.xz |
9 | # Source0-md5: 75823f85a5c5ed4f930111e65d2143de | |
c8dc2358 | 10 | URL: https://github.com/GNOME/libgnome-games-support |
490df34b | 11 | BuildRequires: gettext-tools >= 0.19.8 |
444a1b2f MB |
12 | BuildRequires: glib2-devel >= 1:2.40.0 |
13 | BuildRequires: gtk+3-devel >= 3.20.0 | |
db258e5d JB |
14 | BuildRequires: libgee-devel >= 0.14.0 |
15 | BuildRequires: meson >= 0.50.0 | |
16 | BuildRequires: ninja >= 1.5 | |
444a1b2f | 17 | BuildRequires: pkgconfig |
dead7211 | 18 | BuildRequires: rpm-build >= 4.6 |
db258e5d JB |
19 | BuildRequires: rpmbuild(macros) >= 1.736 |
20 | BuildRequires: tar >= 1:1.22 | |
b70a16eb | 21 | BuildRequires: vala >= 2:0.40.0 |
db258e5d | 22 | BuildRequires: xz |
444a1b2f MB |
23 | Requires: glib2 >= 1:2.40.0 |
24 | Requires: gtk+3 >= 3.20.0 | |
db258e5d | 25 | Requires: libgee >= 0.14.0 |
444a1b2f MB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | libgnome-games-support is a small library intended for internal use by | |
30 | GNOME Games, but it may be used by others. The API will only break | |
31 | with the major version number. The ABI is unstable. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | libgnome-games-support to mała biblioteka przeznaczona do użytku | |
35 | wewnętrznego gier ze środowiska GNOME, ale może być wykorzystywana | |
36 | także przez innych. API może się zmieniać tylko wraz z głównym numerem | |
37 | wersji; ABI nie jest stabilne. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for libgnome-games-support library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgnome-games-support | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: glib2-devel >= 1:2.40.0 | |
45 | Requires: gtk+3-devel >= 3.20.0 | |
db258e5d | 46 | Requires: libgee-devel >= 0.14.0 |
444a1b2f MB |
47 | |
48 | %description devel | |
49 | Header files for libgnome-games-support library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki libgnome-games-support. | |
53 | ||
aa710c39 | 54 | %package -n vala-libgnome-games-support2 |
444a1b2f MB |
55 | Summary: Vala API for libgnome-games-support library |
56 | Summary(pl.UTF-8): API języka Vala do bibliotek libgnome-games-support | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
444a1b2f | 59 | BuildArch: noarch |
444a1b2f | 60 | |
aa710c39 | 61 | %description -n vala-libgnome-games-support2 |
444a1b2f MB |
62 | Vala API for libgnome-games-support library. |
63 | ||
aa710c39 | 64 | %description -n vala-libgnome-games-support2 -l pl.UTF-8 |
444a1b2f MB |
65 | API języka Vala do bibliotek libgnome-games-support. |
66 | ||
67 | %prep | |
aa710c39 | 68 | %setup -q -n libgnome-games-support-%{version} |
444a1b2f MB |
69 | |
70 | %build | |
db258e5d JB |
71 | # --default-library=both doesn't work with vala generated sources |
72 | # https://github.com/mesonbuild/meson/issues/6960 | |
aa710c39 | 73 | # We don't need static library currently, so don't bother to make it. |
db258e5d JB |
74 | %meson build \ |
75 | --default-library=shared | |
db258e5d JB |
76 | |
77 | %ninja_build -C build | |
444a1b2f MB |
78 | |
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
db258e5d | 82 | %ninja_install -C build |
444a1b2f MB |
83 | |
84 | %find_lang %{name} | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post -p /sbin/ldconfig | |
90 | %postun -p /sbin/ldconfig | |
91 | ||
92 | %files -f %{name}.lang | |
93 | %defattr(644,root,root,755) | |
94 | %doc NEWS README | |
aa710c39 JB |
95 | %attr(755,root,root) %{_libdir}/libgnome-games-support-2.so.*.*.* |
96 | %attr(755,root,root) %ghost %{_libdir}/libgnome-games-support-2.so.4 | |
444a1b2f MB |
97 | |
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
aa710c39 JB |
100 | %attr(755,root,root) %{_libdir}/libgnome-games-support-2.so |
101 | %{_includedir}/gnome-games-support-2 | |
102 | %{_pkgconfigdir}/libgnome-games-support-2.pc | |
444a1b2f | 103 | |
aa710c39 | 104 | %files -n vala-libgnome-games-support2 |
444a1b2f | 105 | %defattr(644,root,root,755) |
aa710c39 | 106 | %{_datadir}/vala/vapi/libgnome-games-support-2.vapi |