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