Blame SPECS/network-manager-applet.spec

28a0fd
%define gtk3_version    3.0.1
28a0fd
%define glib2_version   2.32.0
28a0fd
%define dbus_version    1.4
607f76
%define dbus_glib_version 0.100
607f76
%define nm_version      1:1.0.0
28a0fd
%define obsoletes_ver   1:0.9.7
28a0fd
607f76
%define snapshot .git20150122
607f76
%define git_sha .76569a46
607f76
%define realversion 1.0.0
28a0fd
28a0fd
Name: network-manager-applet
28a0fd
Summary: A network control and status applet for NetworkManager
607f76
Version: 1.0.0
607f76
Release: 2%{snapshot}%{git_sha}%{?dist}
28a0fd
Group: Applications/System
28a0fd
License: GPLv2+
28a0fd
URL: http://www.gnome.org/projects/NetworkManager/
28a0fd
Obsoletes: NetworkManager-gnome < %{obsoletes_ver}
28a0fd
49336e
Source: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/0.9/%{name}-%{realversion}%{snapshot}%{git_sha}.tar.bz2
28a0fd
Patch0: nm-applet-no-notifications.patch
28a0fd
Patch1: nm-applet-wifi-dialog-ui-fixes.patch
28a0fd
Patch2: applet-ignore-deprecated.patch
607f76
Patch3: 0001-Revert-applet-don-t-check-for-gnome-shell-bgo-707953.patch
28a0fd
28a0fd
Requires: NetworkManager >= %{nm_version}
28a0fd
Requires: NetworkManager-glib >= %{nm_version}
28a0fd
Requires: libnm-gtk = %{version}-%{release}
28a0fd
Requires: dbus >= 1.4
28a0fd
Requires: dbus-glib >= 0.100
28a0fd
Requires: libnotify >= 0.4.3
28a0fd
Requires: gnome-icon-theme
28a0fd
Requires: nm-connection-editor = %{version}-%{release}
28a0fd
28a0fd
BuildRequires: NetworkManager-devel >= %{nm_version}
28a0fd
BuildRequires: NetworkManager-glib-devel >= %{nm_version}
49336e
BuildRequires: ModemManager-glib-devel >= 1.0
28a0fd
BuildRequires: dbus-devel >= %{dbus_version}
28a0fd
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
28a0fd
BuildRequires: glib2-devel >= %{glib2_version}
28a0fd
BuildRequires: gtk3-devel >= %{gtk3_version}
28a0fd
BuildRequires: libsecret-devel
28a0fd
BuildRequires: gobject-introspection-devel >= 0.10.3
28a0fd
BuildRequires: gettext-devel
28a0fd
BuildRequires: /usr/bin/autopoint
28a0fd
BuildRequires: pkgconfig
28a0fd
BuildRequires: libnotify-devel >= 0.4
28a0fd
BuildRequires: automake autoconf intltool libtool
28a0fd
BuildRequires: gtk-doc
28a0fd
BuildRequires: desktop-file-utils
28a0fd
# No bluetooth on s390
28a0fd
%ifnarch s390 s390x
28a0fd
BuildRequires: gnome-bluetooth-libs-devel >= 2.27.7.1-1
28a0fd
%endif
28a0fd
BuildRequires: iso-codes-devel
28a0fd
BuildRequires: libgudev1-devel >= 147
28a0fd
BuildRequires: libsecret-devel >= 0.12
28a0fd
28a0fd
%description
28a0fd
This package contains a network control and status notification area applet
28a0fd
for use with NetworkManager.
28a0fd
28a0fd
%package -n nm-connection-editor
28a0fd
Summary: A network connection configuration editor for NetworkManager
28a0fd
Requires: NetworkManager-glib >= %{nm_version}
28a0fd
Requires: libnm-gtk = %{version}-%{release}
28a0fd
Requires: dbus >= 1.4
28a0fd
Requires: dbus-glib >= 0.94
28a0fd
Requires: gnome-icon-theme
28a0fd
Requires(post): /usr/bin/gtk-update-icon-cache
28a0fd
28a0fd
%description -n nm-connection-editor
28a0fd
This package contains a network configuration editor and Bluetooth modem
28a0fd
utility for use with NetworkManager.
28a0fd
28a0fd
28a0fd
%package -n libnm-gtk
28a0fd
Summary: Private libraries for NetworkManager GUI support
28a0fd
Group: Development/Libraries
28a0fd
Requires: gtk3 >= %{gtk3_version}
28a0fd
Requires: mobile-broadband-provider-info >= 0.20090602
28a0fd
Obsoletes: NetworkManager-gtk < %{obsoletes_ver}
28a0fd
28a0fd
%description -n libnm-gtk
28a0fd
This package contains private libraries to be used only by nm-applet,
28a0fd
nm-connection editor, and the GNOME Control Center.
28a0fd
28a0fd
%package -n libnm-gtk-devel
28a0fd
Summary: Private header files for NetworkManager GUI support
28a0fd
Group: Development/Libraries
28a0fd
Requires: NetworkManager-devel >= %{nm_version}
28a0fd
Requires: NetworkManager-glib-devel >= %{nm_version}
28a0fd
Obsoletes: NetworkManager-gtk-devel < %{obsoletes_ver}
28a0fd
Requires: libnm-gtk = %{version}-%{release}
28a0fd
Requires: gtk3-devel
28a0fd
Requires: pkgconfig
28a0fd
28a0fd
%description -n libnm-gtk-devel
28a0fd
This package contains private header and pkg-config files to be used only by
28a0fd
nm-applet, nm-connection-editor, and the GNOME control center.
28a0fd
28a0fd
28a0fd
%prep
28a0fd
%setup -q -n network-manager-applet-%{realversion}
28a0fd
28a0fd
%patch0 -p1 -b .no-notifications
28a0fd
%patch1 -p1 -b .applet-wifi-ui
28a0fd
%patch2 -p1 -b .no-deprecated
607f76
%patch3 -p1 -b .revert-shell-watcher-removal
28a0fd
28a0fd
%build
28a0fd
autoreconf -i -f
28a0fd
intltoolize --force
28a0fd
%configure \
28a0fd
    --disable-static \
28a0fd
    --with-bluetooth \
49336e
    --with-modem-manager-1=yes \
28a0fd
    --enable-more-warnings=yes \
28a0fd
    --disable-migration
28a0fd
make %{?_smp_mflags}
28a0fd
28a0fd
%install
28a0fd
make install DESTDIR=$RPM_BUILD_ROOT
28a0fd
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties
28a0fd
28a0fd
%find_lang nm-applet
28a0fd
cat nm-applet.lang >> %{name}.lang
28a0fd
28a0fd
rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-bluetooth/plugins/*.la
28a0fd
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
28a0fd
28a0fd
# validate .desktop and autostart files
28a0fd
desktop-file-validate $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/nm-applet.desktop
28a0fd
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/nm-connection-editor.desktop
28a0fd
28a0fd
28a0fd
%post	-n libnm-gtk -p /sbin/ldconfig
28a0fd
%postun	-n libnm-gtk -p /sbin/ldconfig
28a0fd
28a0fd
%post
28a0fd
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
28a0fd
28a0fd
%postun
28a0fd
if [ $1 -eq 0 ] ; then
28a0fd
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
28a0fd
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
28a0fd
fi
28a0fd
28a0fd
%posttrans
28a0fd
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
28a0fd
28a0fd
28a0fd
%post -n nm-connection-editor
28a0fd
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
28a0fd
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
28a0fd
28a0fd
%postun -n nm-connection-editor
28a0fd
if [ $1 -eq 0 ] ; then
28a0fd
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
28a0fd
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
28a0fd
fi
28a0fd
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
28a0fd
28a0fd
%posttrans -n nm-connection-editor
28a0fd
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
28a0fd
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
28a0fd
28a0fd
%files
28a0fd
%defattr(-,root,root,0755)
28a0fd
%doc COPYING NEWS AUTHORS README CONTRIBUTING
28a0fd
%dir %{_datadir}/nm-applet
28a0fd
%{_bindir}/nm-applet
28a0fd
%{_datadir}/applications/nm-applet.desktop
28a0fd
%{_datadir}/nm-applet/8021x.ui
28a0fd
%{_datadir}/nm-applet/info.ui
28a0fd
%{_datadir}/nm-applet/gsm-unlock.ui
28a0fd
%{_datadir}/nm-applet/keyring.png
28a0fd
%{_datadir}/icons/hicolor/22x22/apps/nm-adhoc.png
28a0fd
%{_datadir}/icons/hicolor/22x22/apps/nm-mb-roam.png
28a0fd
%{_datadir}/icons/hicolor/22x22/apps/nm-secure-lock.png
28a0fd
%{_datadir}/icons/hicolor/22x22/apps/nm-signal-*.png
28a0fd
%{_datadir}/icons/hicolor/22x22/apps/nm-stage*-connecting*.png
28a0fd
%{_datadir}/icons/hicolor/22x22/apps/nm-tech-*.png
28a0fd
%{_datadir}/icons/hicolor/22x22/apps/nm-vpn-active-lock.png
28a0fd
%{_datadir}/icons/hicolor/22x22/apps/nm-vpn-connecting*.png
28a0fd
%{_datadir}/icons/hicolor/22x22/apps/nm-wwan-tower.png
28a0fd
%{_datadir}/GConf/gsettings/nm-applet.convert
28a0fd
%{_sysconfdir}/xdg/autostart/nm-applet.desktop
28a0fd
%{_mandir}/man1/nm-applet*
28a0fd
28a0fd
# Yes, lang files for the applet go in nm-connection-editor RPM since it
28a0fd
# is the RPM that everything else depends on
28a0fd
%files -n nm-connection-editor -f %{name}.lang
28a0fd
%dir %{_datadir}/nm-applet
28a0fd
%{_bindir}/nm-connection-editor
28a0fd
%{_datadir}/applications/nm-connection-editor.desktop
28a0fd
%{_datadir}/nm-applet/ce-*.ui
28a0fd
%{_datadir}/nm-applet/eap-method-*.ui
28a0fd
%{_datadir}/nm-applet/ws-*.ui
28a0fd
%{_datadir}/nm-applet/nm-connection-editor.ui
28a0fd
%{_datadir}/icons/hicolor/*/apps/nm-device-*.*
28a0fd
%{_datadir}/icons/hicolor/*/apps/nm-no-connection.*
28a0fd
%{_datadir}/icons/hicolor/16x16/apps/nm-vpn-standalone-lock.png
28a0fd
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
28a0fd
%{_mandir}/man1/nm-connection-editor*
28a0fd
%dir %{_datadir}/gnome-vpn-properties
28a0fd
%ifnarch s390 s390x
28a0fd
%{_libdir}/gnome-bluetooth/plugins/*
28a0fd
%endif
28a0fd
28a0fd
%files -n libnm-gtk
28a0fd
%defattr(-,root,root,0755)
28a0fd
%{_libdir}/libnm-gtk.so.*
28a0fd
%dir %{_datadir}/libnm-gtk
28a0fd
%{_datadir}/libnm-gtk/*.ui
28a0fd
%{_libdir}/girepository-1.0/NMGtk-1.0.typelib
28a0fd
28a0fd
%files -n libnm-gtk-devel
28a0fd
%defattr(-,root,root,0755)
28a0fd
%dir %{_includedir}/libnm-gtk
28a0fd
%{_includedir}/libnm-gtk/*.h
28a0fd
%{_libdir}/pkgconfig/libnm-gtk.pc
28a0fd
%{_libdir}/libnm-gtk.so
28a0fd
%{_datadir}/gir-1.0/NMGtk-1.0.gir
28a0fd
28a0fd
%changelog
607f76
* Thu Jan 22 2015 Dan Williams <dcbw@redhat.com> - 1.0.0-2.git20150122.76569a46
607f76
- editor: fix IPoIB editing support (rh #1182560)
607f76
607f76
* Fri Jan  9 2015 Dan Williams <dcbw@redhat.com> - 1.0.0-1
607f76
- Update to 1.0 release
607f76
607f76
* Tue Nov 25 2014 Dan Williams <dcbw@redhat.com> - 0.9.11.0-2.git20141125.b4973b85
607f76
- New snapshot
607f76
607f76
* Wed Nov 19 2014 Dan Williams <dcbw@redhat.com> - 0.9.11.0-1.git20141119.a06c7cd3
607f76
- Update translations (rh #1081943)
607f76
- Allow creating master devices without slaves (rh #1075198)
607f76
49336e
* Wed Mar 26 2014 Dan Winship <danw@redhat.com> - 0.9.9.0-15.git20140307
49336e
- Make Bluetooth plugin work more than once (rh #1054212)
49336e
49336e
* Thu Mar 20 2014 Dan Winship <danw@redhat.com> - 0.9.9.0-14.git20140307
49336e
- Add ModemManager-glib-devel to BuildRequires to fix Bluetooth (rh #1054212)
49336e
49336e
* Fri Mar  7 2014 Jiří Klimeš <jklimes@redhat.com> - 0.9.9.0-13.git20140307
49336e
- Update to new git master snapshot
49336e
- connection-editor: allow VLANs/slaves of more device types (rh #1045203)
49336e
- connection-editor: add DCB configuration UI (bgo #711032) (rh #1068688) 
49336e
49336e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.9.9.0-12.git20131212
49336e
- Mass rebuild 2014-01-24
49336e
49336e
* Wed Jan 15 2014 Dan Winship <danw@redhat.com> - 0.9.9.0-11.git20131212
49336e
- Fix keyboard activation of bridge priority field (rh #1036142)
49336e
49336e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.9.9.0-10.git20131212
49336e
- Mass rebuild 2013-12-27
49336e
49336e
* Fri Dec 13 2013 Dan Williams <dcbw@redhat.com> - 0.9.9.0-9.git20131212
49336e
- applet: fix crash if some resources were not available (rh #1034500)
49336e
- editor: default to user-saved secrets and allow changing secret storage (rh #879566)
49336e
- applet/editor: fix various Coverity-found defects (rh #1025894)
49336e
49336e
* Fri Nov  8 2013 Dan Williams <dcbw@redhat.com> - 0.9.9.0-8.git20131108
28a0fd
- editor: improve handling of NPAR/SRIOV devices in bonds (rh #804527)
28a0fd
- editor: allow creating bridge masters without slaves
28a0fd
28a0fd
* Fri Oct 11 2013 Dan Williams <dcbw@redhat.com> - 0.9.9.0-7.git20131011
28a0fd
- editor: add support for Team devices (rh #1003646)
28a0fd
- editor: don't use deprecated WEP40 and WEP104 values for pairwise (rh #1005171)
28a0fd
- editor: add 'primary' option for bond interfaces (rh #1013727)
28a0fd
- editor: dis-allow IPv6 scopes in DNS server entry (rh #962449)
28a0fd
28a0fd
* Fri Sep 13 2013 Dan Williams <dcbw@redhat.com> - 0.9.9.0-6.git20130906
28a0fd
- libnm-gtk: fix for enabling the Apply button for PEAP and TTLS (rh #1000564)
28a0fd
- libnm-gtk: only save CA certificate ignored value when connection is saved
28a0fd
- editor: fix display of VLAN parent interface
28a0fd
28a0fd
* Fri Sep 06 2013 Dan Williams <dcbw@redhat.com> - 0.9.9.0-5.git20130906
28a0fd
- editor: fix missing user/password when re-editing a connection (rh #1000564)
28a0fd
- editor: fix handling of missing CA certificate prompts (rh #758076) (rh #809489)
28a0fd
- editor: fix handling of bonding modes (rh #953076)
28a0fd
- applet/editor: add InfiniBand device support (rh #867273)
28a0fd
28a0fd
* Tue Aug 06 2013 Dennis Gilmore <dennis@ausil.us> - 0.9.9.0-4.git20130515
28a0fd
- rebuild for soname bump in gnome-bluetooth
28a0fd
28a0fd
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9.0-3.git20130515
28a0fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
28a0fd
28a0fd
* Wed Jul 17 2013 Dan Williams <dcbw@redhat.com> - 0.9.9.0-2
28a0fd
- Disable migration tool and remove dependencies on GConf and gnome-keyring
28a0fd
28a0fd
* Wed May 15 2013 Dan Williams <dcbw@redhat.com> - 0.9.9.0-1.git20130515
28a0fd
- Update to 0.9.10 snapshot
28a0fd
28a0fd
* Tue Apr 30 2013 Dan Williams <dcbw@redhat.com> - 0.9.8.1-3.git20130430
28a0fd
- editor: fix possible crash canceling connection edit dialog
28a0fd
- applet: only request secrets from the user when allowed to
28a0fd
- applet: fix signal icons with newer libpng
28a0fd
- applet: fix possible crash getting secrets with libsecret
28a0fd
28a0fd
* Thu Apr 18 2013 Jiří Klimeš <jklimes@redhat.com> - 0.9.8.1-2.git20130327
28a0fd
- applet: fix crash while getting a PIN to unlock a modem (rh #950925)
28a0fd
28a0fd
* Wed Mar 27 2013 Dan Williams <dcbw@redhat.com> - 0.9.8.1-1.git20130327
28a0fd
- Update to 0.9.8.2 snapshot
28a0fd
- Updated translations
28a0fd
- editor: don't overwrite bridge/bond master interface name with UUID
28a0fd
- applet: fix WWAN PIN dialog invalid "label1" entry widget
28a0fd
- editor: fix allowed values for VLAN ID and MTU
28a0fd
- editor: preserve existing PPP connection LCP echo failure and reply values
28a0fd
- editor: ensure changes to the STP checkbox are saved
28a0fd
- editor: hide BSSID for AdHoc connection (rh #906133)
28a0fd
- editor: fix random data sneaking into IPv6 route gateway fields
28a0fd
- editor: fix handling of initial entry for MAC address widgets
28a0fd
28a0fd
* Wed Feb 27 2013 Jiří Klimeš <jklimes@redhat.com> - 0.9.8.0-1
28a0fd
- Update to 0.9.8.0
28a0fd
28a0fd
* Fri Feb  8 2013 Dan Williams <dcbw@redhat.com> - 0.9.7.997-1
28a0fd
- Update to 0.9.7.997 (0.9.8-beta2)
28a0fd
- editor: better handling of gateway entry for IPv4
28a0fd
- editor: fix some mnemonics (rh #893466)
28a0fd
- editor: fix saving connection when ignoring CA certificate
28a0fd
- editor: enable Bridge connection editing
28a0fd
- editor: hide widgets not relevant for VPN connections
28a0fd
28a0fd
* Tue Dec 11 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.7.0-6.git20121211
28a0fd
- editor: fix populating Firewall zone in 'General' tab
28a0fd
28a0fd
* Tue Dec 11 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.7.0-5.git20121211
28a0fd
- Update to git snapshot (git20121211) without bridges
28a0fd
28a0fd
* Thu Nov 08 2012 Kalev Lember <kalevlember@gmail.com> - 0.9.7.0-4.git20121016
28a0fd
- Update the versioned obsoletes for the new F17 NM build
28a0fd
28a0fd
* Tue Oct 16 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.7.0-3.git20121016
28a0fd
- Update to git snapshot (git20121016)
28a0fd
- editor: fix a crash when no VPN plugins are installed
28a0fd
28a0fd
* Thu Oct  4 2012 Dan Winship <danw@redhat.com> - 0.9.7.0-3.git20121004
28a0fd
- Update to git snapshot
28a0fd
28a0fd
* Wed Sep 12 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.7.0-3.git20120820
28a0fd
- move GSettings schema XML to nm-connection-editor rpm (rh #852792)
28a0fd
28a0fd
* Thu Aug 30 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.7.0-2.git20120820
28a0fd
- run glib-compile-schemas in %post scriplet (rh #852792)
28a0fd
28a0fd
* Tue Aug 21 2012 Dan Winship <danw@redhat.com> - 0.9.7.0-1.git20120820
28a0fd
- Update to 0.9.7.0 snapshot
28a0fd
28a0fd
* Tue Aug 14 2012 Daniel Drake <dsd@laptop.org> - 0.9.5.96-2
28a0fd
- Rebuild for libgnome-bluetooth.so.11
28a0fd
28a0fd
* Mon Jul 23 2012 Dan Williams <dcbw@redhat.com> - 0.9.5.96-1
28a0fd
- Update to 0.9.6-rc2
28a0fd
- lib: recognize PKCS#12 files exported from Firefox
28a0fd
- lib: fix some wireless dialog crashes
28a0fd
28a0fd
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5.95-3.git20120713
28a0fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
28a0fd
28a0fd
* Sat Jul 14 2012 Kalev Lember <kalevlember@gmail.com> - 0.9.5.95-2.git20120713
28a0fd
- Fix the versioned obsoletes
28a0fd
28a0fd
* Fri Jul 13 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.5.95-1.git20120713
28a0fd
- update to 0.9.5.95 (0.9.6-rc1)  snapshot
28a0fd
- editor: fixed UI mnemonics
28a0fd
- editor: fix defaults for PPP echo values
28a0fd
- applet: various crash and stability fixes
28a0fd
- applet: show IPv6 addressing page for VPN plugins that support it
28a0fd
- applet: port to GSettings and split out 0.8 -> 0.9 migration code into standalone tool
28a0fd
28a0fd
* Mon May 21 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.4-4
28a0fd
- update to git snapshot
28a0fd
28a0fd
* Wed May  2 2012 Jiří Klimeš <jklimes@redhat.com> - 0.9.4-3
28a0fd
- update to git snapshot
28a0fd
28a0fd
* Mon Mar 19 2012 Dan Williams <dcbw@redhat.com> - 0.9.3.997-1
28a0fd
- Initial package split from NetworkManager
28a0fd