]>
Commit | Line | Data |
---|---|---|
eadc58de JB |
1 | # TODO: gtk4 variant |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_without apidocs # gtk-doc documentation | |
5 | %bcond_without static_libs # shared library | |
6 | # | |
7 | Summary: NetworkManager UI utilities (libnm version) | |
8 | Summary(pl.UTF-8): Narzędzia UI NetworkManagera (wersja libnm) | |
9 | Name: libnma | |
10 | Version: 1.8.26 | |
11 | Release: 1 | |
12 | License: LGPL v2.1+ | |
13 | Group: X11/Libraries | |
14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libnma/1.8/%{name}-%{version}.tar.xz | |
15 | # Source0-md5: c00af7ae33376a953b87e47454a924a7 | |
16 | URL: https://gitlab.gnome.org/GNOME/libnma | |
17 | BuildRequires: NetworkManager-devel >= 2:1.7 | |
18 | BuildRequires: autoconf >= 2.63 | |
19 | BuildRequires: automake >= 1:1.11 | |
20 | BuildRequires: gettext-tools >= 0.18 | |
21 | BuildRequires: gcr-ui-devel >= 3.14 | |
22 | BuildRequires: glib2-devel >= 1:2.23 | |
23 | BuildRequires: gobject-introspection-devel >= 0.9.6 | |
24 | BuildRequires: gtk-doc >= 1.0 | |
25 | BuildRequires: gtk+3-devel >= 3.10 | |
26 | BuildRequires: libtool >= 2:2.2.6 | |
27 | BuildRequires: pkgconfig | |
28 | BuildRequires: rpmbuild(macros) >= 1.98 | |
29 | BuildRequires: tar >= 1:1.22 | |
30 | BuildRequires: xz | |
31 | Requires: NetworkManager-libs >= 2:1.7 | |
32 | Requires: gcr-ui >= 3.14 | |
33 | Requires: glib2 >= 1:2.23 | |
34 | Requires: gtk+3 >= 3.10 | |
35 | Requires: iso-codes | |
36 | Requires: mobile-broadband-provider-info | |
a8f805b2 | 37 | Obsoletes: NetworkManager-gtk-lib < 1.8.26 |
eadc58de JB |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | NetworkManager UI utilities (libnm version). | |
42 | ||
43 | %description -l pl.UTF-8 | |
44 | Narzędzia UI NetworkManagera (wersja libnm). | |
45 | ||
46 | %package devel | |
47 | Summary: Header files for libnma library | |
48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnma | |
49 | Group: X11/Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | Requires: NetworkManager-devel >= 2:1.7 | |
52 | Requires: glib2-devel >= 1:2.23 | |
53 | Requires: gtk+3-devel >= 3.10 | |
a8f805b2 | 54 | Obsoletes: NetworkManager-gtk-lib-devel < 1.8.26 |
eadc58de JB |
55 | |
56 | %description devel | |
57 | Header files for libnma library. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe biblioteki libnma. | |
61 | ||
62 | %package static | |
63 | Summary: Static libnma library | |
64 | Summary(pl.UTF-8): Statyczna biblioteka libnma | |
65 | Group: X11/Development/Libraries | |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description static | |
69 | Static libnma library. | |
70 | ||
71 | %description static -l pl.UTF-8 | |
72 | Statyczna biblioteka libnma. | |
73 | ||
74 | %package apidocs | |
75 | Summary: API documentation for libnma library | |
76 | Summary(pl.UTF-8): Dokumentacja API biblioteki libnma | |
77 | Group: Documentation | |
a8f805b2 | 78 | Obsoletes: NetworkManager-gtk-lib-apidocs < 1.8.26 |
eadc58de JB |
79 | %if "%{_rpmversion}" >= "5" |
80 | BuildArch: noarch | |
81 | %endif | |
82 | ||
83 | %description apidocs | |
84 | API documentation for libnma library. | |
85 | ||
86 | %description apidocs -l pl.UTF-8 | |
87 | Dokumentacja API biblioteki libnma. | |
88 | ||
89 | %prep | |
90 | %setup -q | |
91 | ||
92 | %build | |
93 | %{__libtoolize} | |
94 | %{__aclocal} -I m4 | |
95 | %{__autoconf} | |
96 | %{__autoheader} | |
97 | %{__automake} | |
98 | %configure \ | |
99 | --disable-iso-codes \ | |
100 | --disable-mobile-broadband-provider-info \ | |
101 | --disable-silent-rules \ | |
102 | %{!?with_static_libs:--disable-static} \ | |
103 | --with-html-dir=%{_gtkdocdir} | |
104 | ||
105 | %{__make} | |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %{__make} install \ | |
111 | DESTDIR=$RPM_BUILD_ROOT | |
112 | ||
113 | # obsoleted by pkg-config | |
114 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnma.la | |
115 | ||
116 | %find_lang nm-applet | |
117 | ||
118 | %clean | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %post -p /sbin/ldconfig | |
122 | %postun -p /sbin/ldconfig | |
123 | ||
124 | %files -f nm-applet.lang | |
125 | %defattr(644,root,root,755) | |
126 | %doc NEWS | |
127 | %attr(755,root,root) %{_libdir}/libnma.so.*.*.* | |
128 | %attr(755,root,root) %ghost %{_libdir}/libnma.so.0 | |
129 | %{_libdir}/girepository-1.0/NMA-1.0.typelib | |
130 | ||
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
133 | %attr(755,root,root) %{_libdir}/libnma.so | |
134 | %{_includedir}/libnma | |
135 | %{_datadir}/gir-1.0/NMA-1.0.gir | |
136 | %{_pkgconfigdir}/libnma.pc | |
137 | ||
138 | %if %{with static_libs} | |
139 | %files static | |
140 | %defattr(644,root,root,755) | |
141 | %{_libdir}/libnma.a | |
142 | %endif | |
143 | ||
144 | %if %{with apidocs} | |
145 | %files apidocs | |
146 | %defattr(644,root,root,755) | |
147 | %{_gtkdocdir}/libnma | |
148 | %endif |