]>
Commit | Line | Data |
---|---|---|
849fe7b0 | 1 | %define nmversion %{version} |
c939647d PZ |
2 | Summary: Network Manager for GNOME |
3 | Summary(pl.UTF-8): Zarządca sieci dla GNOME | |
4 | Name: NetworkManager-applet | |
b0e83532 | 5 | Version: 0.8 |
6 | Release: 1 | |
c939647d PZ |
7 | License: GPL v2 |
8 | Group: X11/Applications | |
8c14a52a | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/0.8/network-manager-applet-%{version}.tar.bz2 |
b0e83532 | 10 | # Source0-md5: 27071402152a7f8f62c4825f25ca9a3a |
a66e03ae | 11 | URL: http://projects.gnome.org/NetworkManager/ |
30e5fda0 | 12 | BuildRequires: GConf2-devel >= 2.20.0 |
849fe7b0 | 13 | BuildRequires: NetworkManager-devel >= %{nmversion} |
e75f8dce JB |
14 | BuildRequires: autoconf >= 2.52 |
15 | BuildRequires: automake | |
c979ae9c | 16 | BuildRequires: dbus-devel >= 1.2.6 |
f2102cc8 | 17 | BuildRequires: dbus-glib-devel >= 0.74 |
c939647d | 18 | BuildRequires: gettext-devel |
8c14a52a | 19 | BuildRequires: gnome-bluetooth-devel >= 2.28.0 |
f2102cc8 | 20 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
91494482 MB |
21 | BuildRequires: intltool >= 0.36.2 |
22 | BuildRequires: libglade2-devel | |
bc40000d | 23 | BuildRequires: libgnome-keyring-devel >= 2.20.0 |
91494482 MB |
24 | BuildRequires: libiw-devel >= 1:28-0.pre9.1 |
25 | BuildRequires: libnotify-devel >= 0.4.3 | |
e75f8dce | 26 | BuildRequires: libtool |
c939647d | 27 | BuildRequires: pkgconfig |
8c14a52a | 28 | BuildRequires: polkit-devel >= 0.92 |
30e5fda0 | 29 | BuildRequires: rpmbuild(macros) >= 1.311 |
30e5fda0 | 30 | Requires(post,postun): gtk+2 |
9a72a4c2 | 31 | Requires(post,postun): hicolor-icon-theme |
849fe7b0 | 32 | Requires(post,preun): GConf2 |
33 | Requires: NetworkManager >= %{nmversion} | |
c979ae9c | 34 | Requires: dbus >= 1.2.6 |
8c14a52a | 35 | Requires: polkit-gnome |
1e04e7c7 | 36 | Suggests: dbus(org.freedesktop.Notifications) |
91494482 | 37 | Obsoletes: NetworkManager-applet-devel |
ba7c8693 | 38 | # sr@Latn vs. sr@latin |
39 | Conflicts: glibc-misc < 6:2.7 | |
c939647d PZ |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | Network Manager Applet for GNOME. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Aplet zarządcy sieci dla GNOME. | |
47 | ||
8c14a52a MB |
48 | %package -n gnome-bluetooth-plugin-nma |
49 | Summary: NetworkManager applet plugin for GNOME Bluetooth | |
50 | Summary(pl.UTF-8): Wtyczka NetworkManager Applet dla GNOME Bluetooth | |
51 | Group: X11/Applications | |
52 | Requires: NetworkManager-applet >= %{nmversion} | |
53 | Requires: gnome-bluetooth >= 2.28.0 | |
54 | ||
55 | %description -n gnome-bluetooth-plugin-nma | |
56 | NetworkManager applet plugin for GNOME Bluetooth. | |
57 | ||
58 | %description -n gnome-bluetooth-plugin-nma -l pl.UTF-8 | |
59 | Wtyczka NetworkManager Applet dla GNOME Bluetooth. | |
60 | ||
c939647d | 61 | %prep |
c979ae9c | 62 | %setup -q -n network-manager-applet-%{version} |
c939647d PZ |
63 | |
64 | %build | |
30e5fda0 | 65 | %{__intltoolize} |
e75f8dce | 66 | %{__libtoolize} |
8c14a52a | 67 | %{__aclocal} -I m4 |
e75f8dce JB |
68 | %{__autoconf} |
69 | %{__autoheader} | |
70 | %{__automake} | |
c939647d PZ |
71 | %configure |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
ec2ae91b | 76 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties |
c939647d PZ |
77 | |
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
8c14a52a | 81 | rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/*.{a,la} |
91494482 MB |
82 | |
83 | %find_lang %{name} --with-gnome --all-name | |
c939647d PZ |
84 | |
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post | |
9a72a4c2 | 89 | %update_icon_cache hicolor |
f2102cc8 MB |
90 | %gconf_schema_install nm-applet.schemas |
91 | ||
92 | %preun | |
93 | %gconf_schema_uninstall nm-applet.schemas | |
c939647d | 94 | |
30e5fda0 MB |
95 | %postun |
96 | %update_icon_cache hicolor | |
97 | ||
91494482 | 98 | %files -f %{name}.lang |
c939647d | 99 | %defattr(644,root,root,755) |
91494482 | 100 | %doc AUTHORS CONTRIBUTING ChangeLog NEWS README |
30e5fda0 | 101 | %attr(755,root,root) %{_bindir}/nm-applet |
91494482 | 102 | %attr(755,root,root) %{_bindir}/nm-connection-editor |
f2102cc8 | 103 | %{_sysconfdir}/gconf/schemas/nm-applet.schemas |
ec2ae91b | 104 | %dir %{_datadir}/gnome-vpn-properties |
91494482 | 105 | %{_datadir}/nm-applet |
30e5fda0 | 106 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop |
91494482 MB |
107 | %{_desktopdir}/nm-connection-editor.desktop |
108 | %{_iconsdir}/hicolor/*/apps/*.png | |
c979ae9c | 109 | %{_iconsdir}/hicolor/*/apps/*.svg |
a66e03ae | 110 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/nm-applet.conf |
8c14a52a MB |
111 | |
112 | %files -n gnome-bluetooth-plugin-nma | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/gnome-bluetooth/plugins/libnma.so |