]> git.pld-linux.org Git - packages/libnma.git/blob - libnma.spec
add missing ldconfig invocation to -gtk4
[packages/libnma.git] / libnma.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # gtk-doc documentation
4 %bcond_without  static_libs     # shared library
5 %bcond_without  vala            # Vala API
6 %bcond_without  gtk4            # Gtk4 variant
7 %bcond_without  gcr4            # use gcr4
8 #
9 Summary:        NetworkManager UI utilities (libnm version)
10 Summary(pl.UTF-8):      Narzędzia UI NetworkManagera (wersja libnm)
11 Name:           libnma
12 Version:        1.10.4
13 Release:        1
14 License:        LGPL v2.1+
15 Group:          X11/Libraries
16 Source0:        https://download.gnome.org/sources/libnma/1.10/%{name}-%{version}.tar.xz
17 # Source0-md5:  d4503a9a708b2cbd949a3335a9f10d47
18 URL:            https://gitlab.gnome.org/GNOME/libnma
19 BuildRequires:  NetworkManager-devel >= 2:1.7
20 BuildRequires:  autoconf >= 2.63
21 BuildRequires:  automake >= 1:1.11
22 %if %{with gcr4}
23 BuildRequires:  gcr4-devel >= 3.92
24 %else
25 BuildRequires:  gcr-ui-devel >= 3.14
26 %endif
27 BuildRequires:  gettext-tools >= 0.18
28 BuildRequires:  glib2-devel >= 1:2.38
29 BuildRequires:  gobject-introspection-devel >= 0.9.6
30 BuildRequires:  gtk+3-devel >= 3.12
31 BuildRequires:  gtk-doc >= 1.0
32 %{?with_gtk4:BuildRequires:     gtk4-devel >= 4.6.2}
33 BuildRequires:  libtool >= 2:2.2.6
34 BuildRequires:  pkgconfig
35 BuildRequires:  rpm-build >= 4.6
36 BuildRequires:  rpmbuild(macros) >= 1.527
37 BuildRequires:  tar >= 1:1.22
38 %if %{with vala}
39 BuildRequires:  vala >= 2:0.17.1.24
40 BuildRequires:  vala-NetworkManager
41 %endif
42 BuildRequires:  xz
43 %{!?with_gcr4:BuildConflicts:   gcr4-devel >= 3.92}
44 Requires:       %{name}-data = %{version}-%{release}
45 Requires:       NetworkManager-libs >= 2:1.7
46 %if %{with gcr4}
47 Requires:       gcr-libs >= 3.92
48 %else
49 Requires:       gcr-ui >= 3.14
50 %endif
51 Requires:       glib2 >= 1:2.38
52 Requires:       gtk+3 >= 3.12
53 Requires:       iso-codes
54 Requires:       mobile-broadband-provider-info
55 Provides:       NetworkManager-gtk-lib = %{version}-%{release}
56 Obsoletes:      NetworkManager-gtk-lib < 1.8.26
57 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59 %description
60 NetworkManager UI utilities (libnm version).
61
62 %description -l pl.UTF-8
63 Narzędzia UI NetworkManagera (wersja libnm).
64
65 %package devel
66 Summary:        Header files for libnma library
67 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libnma
68 Group:          X11/Development/Libraries
69 Requires:       %{name} = %{version}-%{release}
70 Requires:       %{name}-headers = %{version}-%{release}
71 Requires:       NetworkManager-devel >= 2:1.7
72 Requires:       glib2-devel >= 1:2.38
73 Requires:       gtk+3-devel >= 3.12
74 Provides:       NetworkManager-gtk-lib-devel = %{version}-%{release}
75 Obsoletes:      NetworkManager-gtk-lib-devel < 1.8.26
76
77 %description devel
78 Header files for libnma library.
79
80 %description devel -l pl.UTF-8
81 Pliki nagłówkowe biblioteki libnma.
82
83 %package static
84 Summary:        Static libnma library
85 Summary(pl.UTF-8):      Statyczna biblioteka libnma
86 Group:          X11/Development/Libraries
87 Requires:       %{name}-devel = %{version}-%{release}
88
89 %description static
90 Static libnma library.
91
92 %description static -l pl.UTF-8
93 Statyczna biblioteka libnma.
94
95 %package -n vala-libnma
96 Summary:        Vala API for libnma library
97 Summary(pl.UTF-8):      API języka Vala do biblioteki libnma
98 Group:          X11/Development/Libraries
99 Requires:       %{name}-devel = %{version}-%{release}
100 Requires:       vala >= 2:0.17.1.24
101 BuildArch:      noarch
102
103 %description -n vala-libnma
104 Vala API for libnma library.
105
106 %description -n vala-libnma -l pl.UTF-8
107 API języka Vala do biblioteki libnma.
108
109 %package data
110 Summary:        Common data for libnma libraries
111 Summary(pl.UTF-8):      Wspólne dane bibliotek libnma
112 Group:          X11/Libraries
113 Requires(post,postun):  glib2 >= 1:2.38
114 Conflicts:      libnma < 1.8.36-2
115
116 %description data
117 Common data for libnma libraries.
118
119 %description data -l pl.UTF-8
120 Wspólne dane bibliotek libnma.
121
122 %package headers
123 Summary:        Header files for libnma libraries
124 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek libnma
125 Group:          X11/Development/Libraries
126 Conflicts:      libnma-devel < 1.8.36-2
127
128 %description headers
129 Header files for libnma libraries.
130
131 %description headers -l pl.UTF-8
132 Pliki nagłówkowe bibliotek libnma.
133
134 %package apidocs
135 Summary:        API documentation for libnma library
136 Summary(pl.UTF-8):      Dokumentacja API biblioteki libnma
137 Group:          Documentation
138 Obsoletes:      NetworkManager-gtk-lib-apidocs < 1.8.26
139 BuildArch:      noarch
140
141 %description apidocs
142 API documentation for libnma library.
143
144 %description apidocs -l pl.UTF-8
145 Dokumentacja API biblioteki libnma.
146
147 %package gtk4
148 Summary:        NetworkManager UI utilities (libnm version) for GTK 4
149 Summary(pl.UTF-8):      Narzędzia UI NetworkManagera (wersja libnm) dla GTK 4
150 Group:          X11/Libraries
151 Requires:       %{name}-data = %{version}-%{release}
152 Requires:       NetworkManager-libs >= 2:1.7
153 %if %{with gcr4}
154 Requires:       gcr4-libs >= 3.92
155 %else
156 Requires:       gcr-ui >= 3.14
157 %endif
158 Requires:       glib2 >= 1:2.38
159 Requires:       gtk4 >= 4.6.2
160
161 %description gtk4
162 NetworkManager UI utilities (libnm version) for GTK 4.
163
164 %description gtk4 -l pl.UTF-8
165 Narzędzia UI NetworkManagera (wersja libnm) dla GTK 4.
166
167 %package gtk4-devel
168 Summary:        Header files for libnma library for GTK 4
169 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libnma dla GTK 4
170 Group:          X11/Development/Libraries
171 Requires:       %{name}-gtk4 = %{version}-%{release}
172 Requires:       %{name}-headers = %{version}-%{release}
173 Requires:       NetworkManager-devel >= 2:1.7
174 Requires:       glib2-devel >= 1:2.38
175 Requires:       gtk4-devel >= 4.6.2
176
177 %description gtk4-devel
178 Header files for libnma library for GTK 4.
179
180 %description gtk4-devel -l pl.UTF-8
181 Pliki nagłówkowe biblioteki libnma dla GTK 4.
182
183 %package gtk4-static
184 Summary:        Static libnma library for GTK 4
185 Summary(pl.UTF-8):      Statyczna biblioteka libnma dla GTK 4
186 Group:          X11/Development/Libraries
187 Requires:       %{name}-gtk4-devel = %{version}-%{release}
188
189 %description gtk4-static
190 Static libnma library for GTK 4.
191
192 %description gtk4-static -l pl.UTF-8
193 Statyczna biblioteka libnma dla GTK 4.
194
195 %package -n vala-libnma-gtk4
196 Summary:        Vala API for libnma library for GTK 4
197 Summary(pl.UTF-8):      API języka Vala do biblioteki libnma dla GTK 4
198 Group:          X11/Development/Libraries
199 Requires:       %{name}-gtk4-devel = %{version}-%{release}
200 Requires:       vala >= 2:0.17.1.24
201 BuildArch:      noarch
202
203 %description -n vala-libnma-gtk4
204 Vala API for libnma library for GTK 4.
205
206 %description -n vala-libnma-gtk4 -l pl.UTF-8
207 API języka Vala do biblioteki libnma dla GTK 4.
208
209 %prep
210 %setup -q
211
212 %build
213 %{__libtoolize}
214 %{__aclocal} -I m4
215 %{__autoconf}
216 %{__autoheader}
217 %{__automake}
218 %configure \
219         --disable-iso-codes \
220         --disable-mobile-broadband-provider-info \
221         --disable-silent-rules \
222         %{!?with_static_libs:--disable-static} \
223         %{__enable_disable vala} \
224         --with-html-dir=%{_gtkdocdir} \
225         %{?with_gtk4:--with-libnma-gtk4}
226
227 %{__make}
228
229 %install
230 rm -rf $RPM_BUILD_ROOT
231
232 %{__make} install \
233         DESTDIR=$RPM_BUILD_ROOT
234
235 # obsoleted by pkg-config
236 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnma*.la
237
238 %find_lang %{name}
239
240 %clean
241 rm -rf $RPM_BUILD_ROOT
242
243 %post   -p /sbin/ldconfig
244 %postun -p /sbin/ldconfig
245
246 %post data
247 %glib_compile_schemas
248
249 %postun data
250 %glib_compile_schemas
251
252 %post   gtk4 -p /sbin/ldconfig
253 %postun gtk4 -p /sbin/ldconfig
254
255 %files
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_libdir}/libnma.so.*.*.*
258 %attr(755,root,root) %ghost %{_libdir}/libnma.so.0
259 %{_libdir}/girepository-1.0/NMA-1.0.typelib
260
261 %files devel
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/libnma.so
264 %{_datadir}/gir-1.0/NMA-1.0.gir
265 %{_pkgconfigdir}/libnma.pc
266
267 %if %{with static_libs}
268 %files static
269 %defattr(644,root,root,755)
270 %{_libdir}/libnma.a
271 %endif
272
273 %files data -f %{name}.lang
274 %defattr(644,root,root,755)
275 %doc NEWS
276 %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.eap.gschema.xml
277 %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
278
279 %files headers
280 %defattr(644,root,root,755)
281 %{_includedir}/libnma
282
283 %if %{with apidocs}
284 %files apidocs
285 %defattr(644,root,root,755)
286 %{_gtkdocdir}/libnma
287 %endif
288
289 %if %{with vala}
290 %files -n vala-libnma
291 %defattr(644,root,root,755)
292 %{_datadir}/vala/vapi/libnma.deps
293 %{_datadir}/vala/vapi/libnma.vapi
294 %endif
295
296 %if %{with gtk4}
297 %files gtk4
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_libdir}/libnma-gtk4.so.*.*.*
300 %attr(755,root,root) %ghost %{_libdir}/libnma-gtk4.so.0
301 %{_libdir}/girepository-1.0/NMA4-1.0.typelib
302
303 %files gtk4-devel
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_libdir}/libnma-gtk4.so
306 %{_datadir}/gir-1.0/NMA4-1.0.gir
307 %{_pkgconfigdir}/libnma-gtk4.pc
308
309 %if %{with static_libs}
310 %files gtk4-static
311 %defattr(644,root,root,755)
312 %{_libdir}/libnma-gtk4.a
313 %endif
314
315 %if %{with vala}
316 %files -n vala-libnma-gtk4
317 %defattr(644,root,root,755)
318 %{_datadir}/vala/vapi/libnma-gtk4.deps
319 %{_datadir}/vala/vapi/libnma-gtk4.vapi
320 %endif
321 %endif
This page took 0.1798 seconds and 3 git commands to generate.