]>
Commit | Line | Data |
---|---|---|
3521e383 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without gnomebt # GNOME-Bluetooth plugin | |
4 | # | |
5 | %define nmversion 2:%{version} | |
c939647d PZ |
6 | Summary: Network Manager for GNOME |
7 | Summary(pl.UTF-8): Zarządca sieci dla GNOME | |
8 | Name: NetworkManager-applet | |
25242929 | 9 | Version: 0.9.0 |
951d5dbd | 10 | Release: 2 |
c939647d PZ |
11 | License: GPL v2 |
12 | Group: X11/Applications | |
25242929 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/0.9/network-manager-applet-%{version}.tar.xz |
14 | # Source0-md5: d1716f7d3b97010d0486755f5c7cc831 | |
a66e03ae | 15 | URL: http://projects.gnome.org/NetworkManager/ |
30e5fda0 | 16 | BuildRequires: GConf2-devel >= 2.20.0 |
3521e383 | 17 | BuildRequires: NetworkManager-devel >= %{nmversion} |
5d2be942 MB |
18 | BuildRequires: autoconf >= 2.63 |
19 | BuildRequires: automake >= 1:1.10 | |
c979ae9c | 20 | BuildRequires: dbus-devel >= 1.2.6 |
f2102cc8 | 21 | BuildRequires: dbus-glib-devel >= 0.74 |
c939647d | 22 | BuildRequires: gettext-devel |
a60d50f3 | 23 | BuildRequires: glib2-devel >= 1:2.16.0 |
3521e383 | 24 | %{?with_gnomebt:BuildRequires: gnome-bluetooth-devel >= 2.28.0} |
c2b793f5 | 25 | BuildRequires: gnome-common |
a60d50f3 ŁK |
26 | BuildRequires: gtk+3-devel >= 3.0.0 |
27 | BuildRequires: intltool >= 0.40.0 | |
bc40000d | 28 | BuildRequires: libgnome-keyring-devel >= 2.20.0 |
91494482 | 29 | BuildRequires: libiw-devel >= 1:28-0.pre9.1 |
3521e383 | 30 | BuildRequires: libnotify-devel >= 0.4.3 |
a60d50f3 | 31 | BuildRequires: libtool >= 2:2.2.6 |
c939647d | 32 | BuildRequires: pkgconfig |
8c14a52a | 33 | BuildRequires: polkit-devel >= 0.92 |
30e5fda0 | 34 | BuildRequires: rpmbuild(macros) >= 1.311 |
db927fcc MB |
35 | BuildRequires: tar >= 1:1.22 |
36 | BuildRequires: xz | |
45935dac | 37 | Requires(post,postun): gtk-update-icon-cache |
9a72a4c2 | 38 | Requires(post,postun): hicolor-icon-theme |
849fe7b0 | 39 | Requires(post,preun): GConf2 |
3521e383 | 40 | Requires: NetworkManager >= %{nmversion} |
c979ae9c | 41 | Requires: dbus >= 1.2.6 |
5d2be942 | 42 | Requires: mobile-broadband-provider-info |
8c14a52a | 43 | Requires: polkit-gnome |
1e04e7c7 | 44 | Suggests: dbus(org.freedesktop.Notifications) |
91494482 | 45 | Obsoletes: NetworkManager-applet-devel |
ba7c8693 | 46 | # sr@Latn vs. sr@latin |
47 | Conflicts: glibc-misc < 6:2.7 | |
c939647d PZ |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
51 | Network Manager Applet for GNOME. | |
52 | ||
53 | %description -l pl.UTF-8 | |
54 | Aplet zarządcy sieci dla GNOME. | |
55 | ||
8c14a52a MB |
56 | %package -n gnome-bluetooth-plugin-nma |
57 | Summary: NetworkManager applet plugin for GNOME Bluetooth | |
58 | Summary(pl.UTF-8): Wtyczka NetworkManager Applet dla GNOME Bluetooth | |
59 | Group: X11/Applications | |
3521e383 | 60 | Requires: %{name} = %{version}-%{release} |
8c14a52a MB |
61 | Requires: gnome-bluetooth >= 2.28.0 |
62 | ||
63 | %description -n gnome-bluetooth-plugin-nma | |
64 | NetworkManager applet plugin for GNOME Bluetooth. | |
65 | ||
66 | %description -n gnome-bluetooth-plugin-nma -l pl.UTF-8 | |
67 | Wtyczka NetworkManager Applet dla GNOME Bluetooth. | |
68 | ||
c939647d | 69 | %prep |
c979ae9c | 70 | %setup -q -n network-manager-applet-%{version} |
c939647d PZ |
71 | |
72 | %build | |
30e5fda0 | 73 | %{__intltoolize} |
e75f8dce | 74 | %{__libtoolize} |
8c14a52a | 75 | %{__aclocal} -I m4 |
e75f8dce JB |
76 | %{__autoconf} |
77 | %{__autoheader} | |
78 | %{__automake} | |
68dc4938 | 79 | %configure \ |
3521e383 JB |
80 | --disable-silent-rules \ |
81 | --disable-static \ | |
82 | %{!?with_gnomebt:--without-bluetooth} | |
c939647d PZ |
83 | %{__make} |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
ec2ae91b | 87 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties |
c939647d PZ |
88 | |
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
3521e383 JB |
92 | %if %{with gnomebt} |
93 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/*.la | |
94 | %endif | |
91494482 MB |
95 | |
96 | %find_lang %{name} --with-gnome --all-name | |
c939647d PZ |
97 | |
98 | %clean | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post | |
9a72a4c2 | 102 | %update_icon_cache hicolor |
f2102cc8 MB |
103 | %gconf_schema_install nm-applet.schemas |
104 | ||
105 | %preun | |
106 | %gconf_schema_uninstall nm-applet.schemas | |
c939647d | 107 | |
30e5fda0 MB |
108 | %postun |
109 | %update_icon_cache hicolor | |
110 | ||
91494482 | 111 | %files -f %{name}.lang |
c939647d | 112 | %defattr(644,root,root,755) |
3521e383 | 113 | %doc AUTHORS CONTRIBUTING ChangeLog |
30e5fda0 | 114 | %attr(755,root,root) %{_bindir}/nm-applet |
91494482 | 115 | %attr(755,root,root) %{_bindir}/nm-connection-editor |
f2102cc8 | 116 | %{_sysconfdir}/gconf/schemas/nm-applet.schemas |
ec2ae91b | 117 | %dir %{_datadir}/gnome-vpn-properties |
91494482 | 118 | %{_datadir}/nm-applet |
30e5fda0 | 119 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop |
a60d50f3 | 120 | %{_desktopdir}/nm-applet.desktop |
91494482 MB |
121 | %{_desktopdir}/nm-connection-editor.desktop |
122 | %{_iconsdir}/hicolor/*/apps/*.png | |
c979ae9c | 123 | %{_iconsdir}/hicolor/*/apps/*.svg |
8c14a52a | 124 | |
3521e383 | 125 | %if %{with gnomebt} |
8c14a52a MB |
126 | %files -n gnome-bluetooth-plugin-nma |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_libdir}/gnome-bluetooth/plugins/libnma.so | |
3521e383 | 129 | %endif |