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