- updated to 1.8.1
[packages/libgnome-games-support.git] / libgnome-games-support.spec
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
8 Version:        1.8.1
9 Release:        1
10 License:        LGPL v3+
11 Group:          X11/Libraries
12 Source0:        https://download.gnome.org/sources/libgnome-games-support/1.8/%{name}-%{version}.tar.xz
13 # Source0-md5:  c0bbae411b15246b7672b6c775fcdc6e
14 URL:            https://github.com/GNOME/libgnome-games-support
15 BuildRequires:  gettext-tools >= 0.19.8
16 BuildRequires:  glib2-devel >= 1:2.40.0
17 BuildRequires:  gtk+3-devel >= 3.20.0
18 BuildRequires:  libgee-devel >= 0.14.0
19 BuildRequires:  meson >= 0.50.0
20 BuildRequires:  ninja >= 1.5
21 BuildRequires:  pkgconfig
22 BuildRequires:  rpm-build >= 4.6
23 BuildRequires:  rpmbuild(macros) >= 1.736
24 BuildRequires:  tar >= 1:1.22
25 BuildRequires:  vala >= 2:0.40.0
26 BuildRequires:  xz
27 Requires:       glib2 >= 1:2.40.0
28 Requires:       gtk+3 >= 3.20.0
29 Requires:       libgee >= 0.14.0
30 Provides:       libgames-support = %{version}-%{release}
31 Obsoletes:      gnome-games < 1:3.8.0
32 Obsoletes:      libgames-support < 1.2.0-1
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 libgnome-games-support is a small library intended for internal use by
37 GNOME Games, but it may be used by others. The API will only break
38 with the major version number. The ABI is unstable.
39
40 %description -l pl.UTF-8
41 libgnome-games-support to mała biblioteka przeznaczona do użytku
42 wewnętrznego gier ze środowiska GNOME, ale może być wykorzystywana
43 także przez innych. API może się zmieniać tylko wraz z głównym numerem
44 wersji; ABI nie jest stabilne.
45
46 %package devel
47 Summary:        Header files for libgnome-games-support library
48 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libgnome-games-support
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51 Requires:       glib2-devel >= 1:2.40.0
52 Requires:       gtk+3-devel >= 3.20.0
53 Requires:       libgee-devel >= 0.14.0
54 Provides:       libgames-support-devel = %{version}-%{release}
55 Obsoletes:      gnome-games-devel < 1:2.8.0
56 Obsoletes:      gnome-games-static < 1:2.8.0
57 Obsoletes:      libgames-support-devel < 1.2.0-1
58
59 %description devel
60 Header files for libgnome-games-support library.
61
62 %description devel -l pl.UTF-8
63 Pliki nagłówkowe biblioteki libgnome-games-support.
64
65 %package static
66 Summary:        Static libgnome-games-support library
67 Summary(pl.UTF-8):      Statyczna biblioteka libgnome-games-support
68 Group:          Development/Libraries
69 Requires:       %{name}-devel = %{version}-%{release}
70 Provides:       libgames-support-static = %{version}-%{release}
71 Obsoletes:      libgames-support-static < 1.2.0-1
72
73 %description static
74 Static libgnome-games-support library.
75
76 %description static -l pl.UTF-8
77 Statyczna biblioteka libgnome-games-support.
78
79 %package -n vala-libgnome-games-support
80 Summary:        Vala API for libgnome-games-support library
81 Summary(pl.UTF-8):      API języka Vala do bibliotek libgnome-games-support
82 Group:          Development/Libraries
83 Requires:       %{name}-devel = %{version}-%{release}
84 Provides:       vala-libgames-support = %{version}-%{release}
85 Obsoletes:      vala-libgames-support < 1.2.0-1
86 BuildArch:      noarch
87
88 %description -n vala-libgnome-games-support
89 Vala API for libgnome-games-support library.
90
91 %description -n vala-libgnome-games-support -l pl.UTF-8
92 API języka Vala do bibliotek libgnome-games-support.
93
94 %prep
95 %setup -q
96
97 %build
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
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115
116 %if %{with static_libs}
117 %ninja_install -C build-static
118 %endif
119
120 %ninja_install -C build
121
122 %find_lang %{name}
123
124 %clean
125 rm -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.*.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libgnome-games-support-1.so.3
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.075744 seconds and 3 git commands to generate.