]>
Commit | Line | Data |
---|---|---|
3521e383 | 1 | # Conditional build: |
68265c34 | 2 | %bcond_with gnomebt # GNOME-Bluetooth plugin |
3521e383 | 3 | # |
0f1a0079 | 4 | %define nmversion 2:1.0.0 |
c939647d PZ |
5 | Summary: Network Manager for GNOME |
6 | Summary(pl.UTF-8): Zarządca sieci dla GNOME | |
7 | Name: NetworkManager-applet | |
0f1a0079 | 8 | Version: 1.0.0 |
aaf04f0a | 9 | Release: 1 |
c939647d PZ |
10 | License: GPL v2 |
11 | Group: X11/Applications | |
0f1a0079 MB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/1.0/network-manager-applet-%{version}.tar.xz |
13 | # Source0-md5: 29c1ea523584aff7aefb2497d8655fee | |
a66e03ae | 14 | URL: http://projects.gnome.org/NetworkManager/ |
30e5fda0 | 15 | BuildRequires: GConf2-devel >= 2.20.0 |
022e95d0 | 16 | BuildRequires: ModemManager-devel >= 1.0.0 |
3521e383 | 17 | BuildRequires: NetworkManager-devel >= %{nmversion} |
5d2be942 | 18 | BuildRequires: autoconf >= 2.63 |
00dd9966 | 19 | BuildRequires: automake >= 1:1.11 |
c979ae9c | 20 | BuildRequires: dbus-devel >= 1.2.6 |
f2102cc8 | 21 | BuildRequires: dbus-glib-devel >= 0.74 |
c939647d | 22 | BuildRequires: gettext-devel |
00dd9966 | 23 | BuildRequires: glib2-devel >= 1:2.32 |
3521e383 | 24 | %{?with_gnomebt:BuildRequires: gnome-bluetooth-devel >= 2.28.0} |
68265c34 | 25 | %{?with_gnomebt:BuildRequires: gnome-bluetooth-devel < 3.11} |
e186e8d8 | 26 | BuildRequires: gobject-introspection-devel >= 0.9.6 |
00dd9966 | 27 | BuildRequires: gtk+3-devel >= 3.4 |
a60d50f3 | 28 | BuildRequires: intltool >= 0.40.0 |
7790ec98 | 29 | BuildRequires: iso-codes |
bc40000d | 30 | BuildRequires: libgnome-keyring-devel >= 2.20.0 |
bfce94d7 | 31 | BuildRequires: libnotify-devel >= 0.7.0 |
665fed11 | 32 | BuildRequires: libsecret-devel |
a60d50f3 | 33 | BuildRequires: libtool >= 2:2.2.6 |
c939647d | 34 | BuildRequires: pkgconfig |
f1aade09 | 35 | BuildRequires: rpmbuild(macros) >= 1.592 |
db927fcc | 36 | BuildRequires: tar >= 1:1.22 |
bfce94d7 | 37 | BuildRequires: udev-glib-devel >= 1:147 |
db927fcc | 38 | BuildRequires: xz |
45935dac | 39 | Requires(post,postun): gtk-update-icon-cache |
9a72a4c2 | 40 | Requires(post,postun): hicolor-icon-theme |
849fe7b0 | 41 | Requires(post,preun): GConf2 |
3521e383 | 42 | Requires: NetworkManager >= %{nmversion} |
7790ec98 | 43 | Requires: NetworkManager-gtk-lib = %{version}-%{release} |
c979ae9c | 44 | Requires: dbus >= 1.2.6 |
00dd9966 | 45 | Requires: glib2 >= 1:2.32 |
5d2be942 | 46 | Requires: mobile-broadband-provider-info |
8c14a52a | 47 | Requires: polkit-gnome |
1e04e7c7 | 48 | Suggests: dbus(org.freedesktop.Notifications) |
91494482 | 49 | Obsoletes: NetworkManager-applet-devel |
ba7c8693 | 50 | # sr@Latn vs. sr@latin |
51 | Conflicts: glibc-misc < 6:2.7 | |
c939647d PZ |
52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
54 | %description | |
55 | Network Manager Applet for GNOME. | |
56 | ||
57 | %description -l pl.UTF-8 | |
58 | Aplet zarządcy sieci dla GNOME. | |
59 | ||
7790ec98 | 60 | %package -n NetworkManager-gtk-lib |
359f117c JB |
61 | Summary: GTK+ dialogs library for NetworkManager |
62 | Summary(pl.UTF-8): Biblioteka okien dialogowych GTK+ dla NetworkManagera | |
7790ec98 | 63 | Group: X11/Libraries |
359f117c JB |
64 | Requires: GConf2-libs >= 2.20.0 |
65 | Requires: NetworkManager-libs >= %{nmversion} | |
00dd9966 JB |
66 | Requires: glib2 >= 1:2.32 |
67 | Requires: gtk+3 >= 3.4 | |
7790ec98 AF |
68 | |
69 | %description -n NetworkManager-gtk-lib | |
359f117c JB |
70 | GTK+ dialogs library for NetworkManager. |
71 | ||
72 | %description -n NetworkManager-gtk-lib -l pl.UTF-8 | |
73 | Biblioteka okien dialogowych GTK+ dla NetworkManagera. | |
7790ec98 AF |
74 | |
75 | %package -n NetworkManager-gtk-lib-devel | |
76 | Summary: Development package for NetworkManager-gtk-lib | |
359f117c | 77 | Summary(pl.UTF-8): Pakiet programistyczny dla NetworkManager-gtk-lib |
7790ec98 AF |
78 | Group: X11/Development/Libraries |
79 | Requires: NetworkManager-gtk-lib = %{version}-%{release} | |
359f117c JB |
80 | Requires: GConf2-devel >= 2.20.0 |
81 | Requires: NetworkManager-devel >= %{nmversion} | |
00dd9966 JB |
82 | Requires: glib2-devel >= 1:2.32 |
83 | Requires: gtk+3-devel >= 3.4 | |
7790ec98 AF |
84 | |
85 | %description -n NetworkManager-gtk-lib-devel | |
86 | Header files and libraries for NetworkManager-gtk-lib. | |
87 | ||
359f117c JB |
88 | %description -n NetworkManager-gtk-lib-devel -l pl.UTF-8 |
89 | Pakiet programistyczny dla NetworkManager-gtk-lib. | |
90 | ||
8c14a52a MB |
91 | %package -n gnome-bluetooth-plugin-nma |
92 | Summary: NetworkManager applet plugin for GNOME Bluetooth | |
93 | Summary(pl.UTF-8): Wtyczka NetworkManager Applet dla GNOME Bluetooth | |
94 | Group: X11/Applications | |
3521e383 | 95 | Requires: %{name} = %{version}-%{release} |
8c14a52a MB |
96 | Requires: gnome-bluetooth >= 2.28.0 |
97 | ||
98 | %description -n gnome-bluetooth-plugin-nma | |
99 | NetworkManager applet plugin for GNOME Bluetooth. | |
100 | ||
101 | %description -n gnome-bluetooth-plugin-nma -l pl.UTF-8 | |
102 | Wtyczka NetworkManager Applet dla GNOME Bluetooth. | |
103 | ||
c939647d | 104 | %prep |
c979ae9c | 105 | %setup -q -n network-manager-applet-%{version} |
c939647d PZ |
106 | |
107 | %build | |
30e5fda0 | 108 | %{__intltoolize} |
e75f8dce | 109 | %{__libtoolize} |
8c14a52a | 110 | %{__aclocal} -I m4 |
e75f8dce JB |
111 | %{__autoconf} |
112 | %{__autoheader} | |
113 | %{__automake} | |
68dc4938 | 114 | %configure \ |
3521e383 JB |
115 | --disable-silent-rules \ |
116 | --disable-static \ | |
4f4aafdd | 117 | --enable-more-warnings=yes \ |
3521e383 | 118 | %{!?with_gnomebt:--without-bluetooth} |
c939647d PZ |
119 | %{__make} |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
ec2ae91b | 123 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties |
c939647d PZ |
124 | |
125 | %{__make} install \ | |
126 | DESTDIR=$RPM_BUILD_ROOT | |
127 | ||
3521e383 JB |
128 | %if %{with gnomebt} |
129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/*.la | |
130 | %endif | |
7790ec98 | 131 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnm-gtk.la |
91494482 MB |
132 | |
133 | %find_lang %{name} --with-gnome --all-name | |
c939647d PZ |
134 | |
135 | %clean | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
138 | %post | |
9a72a4c2 | 139 | %update_icon_cache hicolor |
f1aade09 | 140 | %glib_compile_schemas |
c939647d | 141 | |
30e5fda0 MB |
142 | %postun |
143 | %update_icon_cache hicolor | |
f1aade09 JB |
144 | if [ "$1" = "0" ]; then |
145 | %glib_compile_schemas | |
146 | fi | |
30e5fda0 | 147 | |
7790ec98 AF |
148 | %post -n NetworkManager-gtk-lib -p /sbin/ldconfig |
149 | %postun -n NetworkManager-gtk-lib -p /sbin/ldconfig | |
150 | ||
91494482 | 151 | %files -f %{name}.lang |
c939647d | 152 | %defattr(644,root,root,755) |
3521e383 | 153 | %doc AUTHORS CONTRIBUTING ChangeLog |
30e5fda0 | 154 | %attr(755,root,root) %{_bindir}/nm-applet |
91494482 | 155 | %attr(755,root,root) %{_bindir}/nm-connection-editor |
f1aade09 JB |
156 | %attr(755,root,root) %{_libexecdir}/nm-applet-migration-tool |
157 | %{_datadir}/GConf/gsettings/nm-applet.convert | |
158 | %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml | |
ec2ae91b | 159 | %dir %{_datadir}/gnome-vpn-properties |
91494482 | 160 | %{_datadir}/nm-applet |
30e5fda0 | 161 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop |
a60d50f3 | 162 | %{_desktopdir}/nm-applet.desktop |
91494482 | 163 | %{_desktopdir}/nm-connection-editor.desktop |
bfce94d7 MB |
164 | %{_mandir}/man1/nm-applet.1* |
165 | %{_mandir}/man1/nm-connection-editor.1* | |
91494482 | 166 | %{_iconsdir}/hicolor/*/apps/*.png |
c979ae9c | 167 | %{_iconsdir}/hicolor/*/apps/*.svg |
8c14a52a | 168 | |
7790ec98 AF |
169 | %files -n NetworkManager-gtk-lib |
170 | %defattr(644,root,root,755) | |
bbb3912b | 171 | %attr(755,root,root) %{_libdir}/libnm-gtk.so.*.*.* |
7790ec98 | 172 | %attr(755,root,root) %ghost %{_libdir}/libnm-gtk.so.0 |
bfce94d7 | 173 | %{_libdir}/girepository-1.0/NMGtk-1.0.typelib |
7790ec98 AF |
174 | %{_datadir}/libnm-gtk |
175 | ||
176 | %files -n NetworkManager-gtk-lib-devel | |
177 | %defattr(644,root,root,755) | |
e186e8d8 | 178 | %attr(755,root,root) %{_libdir}/libnm-gtk.so |
bfce94d7 MB |
179 | %{_datadir}/gir-1.0/NMGtk-1.0.gir |
180 | %{_includedir}/libnm-gtk | |
7790ec98 AF |
181 | %{_pkgconfigdir}/libnm-gtk.pc |
182 | ||
3521e383 | 183 | %if %{with gnomebt} |
8c14a52a MB |
184 | %files -n gnome-bluetooth-plugin-nma |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_libdir}/gnome-bluetooth/plugins/libnma.so | |
3521e383 | 187 | %endif |