]>
Commit | Line | Data |
---|---|---|
444a1b2f MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
5 | Summary: Support library for GNOME games | |
6 | Summary(pl.UTF-8): Biblioteka wspierająca dla gier GNOME | |
7 | Name: libgnome-games-support | |
5ca215e5 | 8 | Version: 1.8.0 |
444a1b2f MB |
9 | Release: 1 |
10 | License: LGPL v3+ | |
11 | Group: X11/Libraries | |
5ca215e5 JB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgnome-games-support/1.8/%{name}-%{version}.tar.xz |
13 | # Source0-md5: f6a9b608e4606eee8c17951af383aaa1 | |
c8dc2358 | 14 | URL: https://github.com/GNOME/libgnome-games-support |
490df34b | 15 | BuildRequires: gettext-tools >= 0.19.8 |
444a1b2f MB |
16 | BuildRequires: glib2-devel >= 1:2.40.0 |
17 | BuildRequires: gtk+3-devel >= 3.20.0 | |
db258e5d JB |
18 | BuildRequires: libgee-devel >= 0.14.0 |
19 | BuildRequires: meson >= 0.50.0 | |
20 | BuildRequires: ninja >= 1.5 | |
444a1b2f | 21 | BuildRequires: pkgconfig |
db258e5d JB |
22 | BuildRequires: rpmbuild(macros) >= 1.736 |
23 | BuildRequires: tar >= 1:1.22 | |
b70a16eb | 24 | BuildRequires: vala >= 2:0.40.0 |
db258e5d | 25 | BuildRequires: xz |
444a1b2f MB |
26 | Requires: glib2 >= 1:2.40.0 |
27 | Requires: gtk+3 >= 3.20.0 | |
db258e5d | 28 | Requires: libgee >= 0.14.0 |
444a1b2f | 29 | Provides: libgames-support = %{version}-%{release} |
ee387c8a | 30 | Obsoletes: gnome-games < 1:3.8.0 |
444a1b2f MB |
31 | Obsoletes: libgames-support < 1.2.0-1 |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
35 | libgnome-games-support is a small library intended for internal use by | |
36 | GNOME Games, but it may be used by others. The API will only break | |
37 | with the major version number. The ABI is unstable. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | libgnome-games-support to mała biblioteka przeznaczona do użytku | |
41 | wewnętrznego gier ze środowiska GNOME, ale może być wykorzystywana | |
42 | także przez innych. API może się zmieniać tylko wraz z głównym numerem | |
43 | wersji; ABI nie jest stabilne. | |
44 | ||
45 | %package devel | |
46 | Summary: Header files for libgnome-games-support library | |
47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgnome-games-support | |
48 | Group: Development/Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | Requires: glib2-devel >= 1:2.40.0 | |
51 | Requires: gtk+3-devel >= 3.20.0 | |
db258e5d | 52 | Requires: libgee-devel >= 0.14.0 |
444a1b2f | 53 | Provides: libgames-support-devel = %{version}-%{release} |
ee387c8a JB |
54 | Obsoletes: gnome-games-devel < 1:2.8.0 |
55 | Obsoletes: gnome-games-static < 1:2.8.0 | |
444a1b2f MB |
56 | Obsoletes: libgames-support-devel < 1.2.0-1 |
57 | ||
58 | %description devel | |
59 | Header files for libgnome-games-support library. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe biblioteki libgnome-games-support. | |
63 | ||
64 | %package static | |
65 | Summary: Static libgnome-games-support library | |
66 | Summary(pl.UTF-8): Statyczna biblioteka libgnome-games-support | |
67 | Group: Development/Libraries | |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | Provides: libgames-support-static = %{version}-%{release} | |
70 | Obsoletes: libgames-support-static < 1.2.0-1 | |
71 | ||
72 | %description static | |
73 | Static libgnome-games-support library. | |
74 | ||
75 | %description static -l pl.UTF-8 | |
76 | Statyczna biblioteka libgnome-games-support. | |
77 | ||
78 | %package -n vala-libgnome-games-support | |
79 | Summary: Vala API for libgnome-games-support library | |
80 | Summary(pl.UTF-8): API języka Vala do bibliotek libgnome-games-support | |
81 | Group: Development/Libraries | |
82 | Requires: %{name}-devel = %{version}-%{release} | |
83 | Provides: vala-libgames-support = %{version}-%{release} | |
84 | Obsoletes: vala-libgames-support < 1.2.0-1 | |
444a1b2f | 85 | BuildArch: noarch |
444a1b2f MB |
86 | |
87 | %description -n vala-libgnome-games-support | |
88 | Vala API for libgnome-games-support library. | |
89 | ||
90 | %description -n vala-libgnome-games-support -l pl.UTF-8 | |
91 | API języka Vala do bibliotek libgnome-games-support. | |
92 | ||
93 | %prep | |
94 | %setup -q | |
95 | ||
96 | %build | |
db258e5d JB |
97 | %if %{with static_libs} |
98 | # --default-library=both doesn't work with vala generated sources | |
99 | # https://github.com/mesonbuild/meson/issues/6960 | |
100 | %meson build-static \ | |
101 | --default-library=static | |
102 | ||
103 | %ninja_build -C build-static | |
104 | %endif | |
105 | ||
106 | %meson build \ | |
107 | --default-library=shared | |
108 | # %{!?with_static_libs:--default-library=shared} | |
109 | ||
110 | %ninja_build -C build | |
444a1b2f MB |
111 | |
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
db258e5d JB |
115 | %if %{with static_libs} |
116 | %ninja_install -C build-static | |
117 | %endif | |
444a1b2f | 118 | |
db258e5d | 119 | %ninja_install -C build |
444a1b2f MB |
120 | |
121 | %find_lang %{name} | |
122 | ||
123 | %clean | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
126 | %post -p /sbin/ldconfig | |
127 | %postun -p /sbin/ldconfig | |
128 | ||
129 | %files -f %{name}.lang | |
130 | %defattr(644,root,root,755) | |
131 | %doc NEWS README | |
132 | %attr(755,root,root) %{_libdir}/libgnome-games-support-1.so.*.*.* | |
b70a16eb | 133 | %attr(755,root,root) %ghost %{_libdir}/libgnome-games-support-1.so.3 |
444a1b2f MB |
134 | |
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_libdir}/libgnome-games-support-1.so | |
138 | %{_includedir}/gnome-games-support-1 | |
139 | %{_pkgconfigdir}/libgnome-games-support-1.pc | |
140 | ||
141 | %if %{with static_libs} | |
142 | %files static | |
143 | %defattr(644,root,root,755) | |
144 | %{_libdir}/libgnome-games-support-1.a | |
145 | %endif | |
146 | ||
147 | %files -n vala-libgnome-games-support | |
148 | %defattr(644,root,root,755) | |
149 | %{_datadir}/vala/vapi/libgnome-games-support-1.vapi |