]>
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 | |
1af23103 | 5 | Version: 0.7.999 |
f2102cc8 | 6 | Release: 1 |
c939647d PZ |
7 | License: GPL v2 |
8 | Group: X11/Applications | |
91494482 | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/0.7/network-manager-applet-%{version}.tar.bz2 |
1af23103 | 10 | # Source0-md5: 078fe62813a5ac3b96cd90f1f92dde60 |
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 |
30e5fda0 | 19 | BuildRequires: gnome-keyring-devel >= 2.20.0 |
f2102cc8 | 20 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
91494482 MB |
21 | BuildRequires: intltool >= 0.36.2 |
22 | BuildRequires: libglade2-devel | |
23 | BuildRequires: libiw-devel >= 1:28-0.pre9.1 | |
24 | BuildRequires: libnotify-devel >= 0.4.3 | |
e75f8dce | 25 | BuildRequires: libtool |
a66e03ae | 26 | BuildRequires: libuuid-devel |
c939647d | 27 | BuildRequires: pkgconfig |
849fe7b0 | 28 | BuildRequires: polkit-devel |
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} | |
91494482 | 34 | Requires: PolicyKit-gnome |
c979ae9c | 35 | Requires: dbus >= 1.2.6 |
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 | ||
48 | %prep | |
c979ae9c | 49 | %setup -q -n network-manager-applet-%{version} |
c939647d PZ |
50 | |
51 | %build | |
30e5fda0 | 52 | %{__intltoolize} |
e75f8dce JB |
53 | %{__libtoolize} |
54 | %{__aclocal} | |
55 | %{__autoconf} | |
56 | %{__autoheader} | |
57 | %{__automake} | |
c939647d PZ |
58 | %configure |
59 | %{__make} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
ec2ae91b | 63 | install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties |
c939647d PZ |
64 | |
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
91494482 MB |
68 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
69 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
70 | ||
71 | %find_lang %{name} --with-gnome --all-name | |
c939647d PZ |
72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post | |
9a72a4c2 | 77 | %update_icon_cache hicolor |
f2102cc8 MB |
78 | %gconf_schema_install nm-applet.schemas |
79 | ||
80 | %preun | |
81 | %gconf_schema_uninstall nm-applet.schemas | |
c939647d | 82 | |
30e5fda0 MB |
83 | %postun |
84 | %update_icon_cache hicolor | |
85 | ||
91494482 | 86 | %files -f %{name}.lang |
c939647d | 87 | %defattr(644,root,root,755) |
91494482 | 88 | %doc AUTHORS CONTRIBUTING ChangeLog NEWS README |
30e5fda0 | 89 | %attr(755,root,root) %{_bindir}/nm-applet |
91494482 | 90 | %attr(755,root,root) %{_bindir}/nm-connection-editor |
f2102cc8 | 91 | %{_sysconfdir}/gconf/schemas/nm-applet.schemas |
ec2ae91b | 92 | %dir %{_datadir}/gnome-vpn-properties |
91494482 | 93 | %{_datadir}/nm-applet |
30e5fda0 | 94 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop |
91494482 MB |
95 | %{_desktopdir}/nm-connection-editor.desktop |
96 | %{_iconsdir}/hicolor/*/apps/*.png | |
c979ae9c | 97 | %{_iconsdir}/hicolor/*/apps/*.svg |
a66e03ae | 98 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/nm-applet.conf |