[7633] | 1 | %define dbus_version 1.4.20 |
---|
| 2 | %define dbus_glib_version 0.96 |
---|
| 3 | |
---|
[7938] | 4 | %define gtk3_version 3.10.0 |
---|
[7633] | 5 | %define wireless_tools_version 29 |
---|
| 6 | %define libnl3_version 3.2.14 |
---|
| 7 | %define ppp_version 2.4.5 |
---|
| 8 | |
---|
[8011] | 9 | %define applet_version 0.9.8.8 |
---|
[7633] | 10 | |
---|
| 11 | #define snapshot .git20090414 |
---|
| 12 | #define applet_snapshot %{nil} |
---|
| 13 | |
---|
| 14 | Name: network-manager-applet |
---|
| 15 | Summary: GNOME applications for use with NetworkManager |
---|
| 16 | Summary(ja): NetworkManager 用 GNOME アプリケーション |
---|
[8011] | 17 | Version: 0.9.8.8 |
---|
[7938] | 18 | Release: 1%{?snapshot}%{?_dist_release} |
---|
[7633] | 19 | Group: Applications/Internet |
---|
| 20 | License: GPLv2+ |
---|
| 21 | URL: http://www.gnome.org/projects/NetworkManager/ |
---|
| 22 | |
---|
| 23 | Source: %{name}-%{version}.tar.xz |
---|
| 24 | |
---|
| 25 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 26 | |
---|
| 27 | Requires(post): chkconfig |
---|
| 28 | Requires(preun): chkconfig |
---|
| 29 | |
---|
| 30 | Requires: libnm-gtk = %{version}-%{release} |
---|
[7712] | 31 | Requires: NetworkManager >= %{version} |
---|
[7633] | 32 | |
---|
| 33 | Requires: dbus |
---|
| 34 | Requires: dbus-glib |
---|
| 35 | Requires: libnotify |
---|
| 36 | Requires: gnome-keyring |
---|
| 37 | Requires: nss |
---|
| 38 | Requires: gnome-icon-theme |
---|
| 39 | |
---|
| 40 | Obsoletes: NetworkManager-gnome < 0.9.7.0 |
---|
| 41 | Provides: NetworkManager-gnome = 0.9.7.0 |
---|
| 42 | |
---|
[7712] | 43 | BuildRequires: NetworkManager-glib-devel >= %{version} |
---|
[7938] | 44 | BuildRequires: ModemManager-glib-devel |
---|
[7633] | 45 | BuildRequires: dbus-devel >= %{dbus_version} |
---|
| 46 | BuildRequires: dbus-glib-devel >= %{dbus_glib_version} |
---|
| 47 | BuildRequires: gtk3-devel |
---|
| 48 | BuildRequires: GConf2-devel |
---|
| 49 | BuildRequires: libgnome-keyring-devel |
---|
| 50 | BuildRequires: gettext |
---|
| 51 | BuildRequires: libnotify-devel >= 0.7 |
---|
| 52 | BuildRequires: libgudev1-devel |
---|
[7712] | 53 | BuildRequires: libsecret-devel |
---|
[7633] | 54 | BuildRequires: iso-codes |
---|
| 55 | |
---|
| 56 | Vendor: Project Vine |
---|
| 57 | Distribution: Vine Linux |
---|
| 58 | Packager: Takemikaduchi |
---|
| 59 | |
---|
| 60 | %description |
---|
| 61 | This package contains GNOME utilities and applications for use with |
---|
| 62 | NetworkManager, including a panel applet for wireless networks. |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | %package -n libnm-gtk |
---|
| 66 | Summary: Private libraries for NetworkManager GUI support |
---|
| 67 | Group: Development/Libraries |
---|
| 68 | Requires: gtk3 >= %{gtk3_version} |
---|
| 69 | Obsoletes: NetworkManager-gtk < 0.9.7.0 |
---|
| 70 | Provides: NetworkManager-gtk = 0.9.7.0 |
---|
| 71 | |
---|
| 72 | %description -n libnm-gtk |
---|
| 73 | This package contains private libraries to be used only by nm-applet and |
---|
| 74 | the GNOME Control Center. |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %package -n libnm-gtk-devel |
---|
| 78 | Summary: Private header files for NetworkManager GUI support |
---|
| 79 | Group: Development/Libraries |
---|
| 80 | Requires: libnm-gtk = %{version}-%{release} |
---|
| 81 | Requires: gtk3-devel |
---|
| 82 | Requires: dbus-glib-devel |
---|
| 83 | Requires: pkgconfig |
---|
| 84 | Obsoletes: NetworkManager-gtk-devel < 0.9.7.0 |
---|
| 85 | Provides: NetworkManager-gtk-devel = 0.9.7.0 |
---|
| 86 | |
---|
| 87 | %description -n libnm-gtk-devel |
---|
| 88 | This package contains private header and pkg-config files to be used only by |
---|
| 89 | nm-applet and the GNOME control center. |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %prep |
---|
| 93 | %setup -q |
---|
| 94 | |
---|
| 95 | %build |
---|
[7786] | 96 | NOCONFIGURE=1 ./autogen.sh |
---|
[7633] | 97 | %configure --disable-static |
---|
| 98 | make |
---|
| 99 | |
---|
| 100 | %install |
---|
| 101 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 102 | |
---|
| 103 | # install the applet |
---|
| 104 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 105 | |
---|
| 106 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 107 | |
---|
| 108 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties |
---|
| 109 | |
---|
| 110 | %find_lang nm-applet |
---|
| 111 | |
---|
| 112 | %clean |
---|
| 113 | rm -rf $RPM_BUILD_ROOT |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | %post |
---|
| 117 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 118 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 119 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
| 120 | fi |
---|
| 121 | |
---|
| 122 | %postun |
---|
| 123 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 124 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 125 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
| 126 | fi |
---|
| 127 | if [ $1 -eq 0 ]; then |
---|
| 128 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 129 | fi |
---|
| 130 | |
---|
| 131 | %posttrans |
---|
| 132 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 133 | |
---|
| 134 | %post -n libnm-gtk -p /sbin/ldconfig |
---|
| 135 | |
---|
| 136 | %postun -n libnm-gtk -p /sbin/ldconfig |
---|
| 137 | |
---|
| 138 | |
---|
| 139 | %files -f nm-applet.lang |
---|
| 140 | %defattr(-,root,root,0755) |
---|
| 141 | %{_bindir}/nm-applet |
---|
| 142 | %{_bindir}/nm-connection-editor |
---|
| 143 | %{_libexecdir}/nm-applet-migration-tool |
---|
| 144 | %{_datadir}/applications/*.desktop |
---|
| 145 | %{_datadir}/nm-applet/ |
---|
| 146 | %{_datadir}/GConf/gsettings/nm-applet.convert |
---|
| 147 | %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml |
---|
| 148 | %{_datadir}/icons/hicolor/16x16/apps/*.png |
---|
| 149 | %{_datadir}/icons/hicolor/22x22/apps/*.png |
---|
| 150 | %{_datadir}/icons/hicolor/32x32/apps/*.png |
---|
| 151 | %{_datadir}/icons/hicolor/48x48/apps/*.png |
---|
| 152 | %{_datadir}/icons/hicolor/scalable/apps/*.svg |
---|
| 153 | %{_sysconfdir}/xdg/autostart/nm-applet.desktop |
---|
| 154 | %dir %{_datadir}/gnome-vpn-properties |
---|
| 155 | ##%{_libdir}/gnome-bluetooth/plugins/libnma.so |
---|
| 156 | %{_mandir}/man1/nm-applet.1.gz |
---|
| 157 | %{_mandir}/man1/nm-connection-editor.1.gz |
---|
| 158 | |
---|
| 159 | %files -n libnm-gtk |
---|
| 160 | %defattr(-,root,root,-) |
---|
| 161 | %{_libdir}/libnm-gtk.so.* |
---|
| 162 | %{_libdir}/girepository-1.0/NMGtk-1.0.typelib |
---|
| 163 | %dir %{_datadir}/libnm-gtk |
---|
| 164 | %{_datadir}/libnm-gtk/*.ui |
---|
| 165 | |
---|
| 166 | %files -n libnm-gtk-devel |
---|
| 167 | %defattr(-,root,root,-) |
---|
| 168 | %{_includedir}/libnm-gtk |
---|
| 169 | %{_libdir}/pkgconfig/libnm-gtk.pc |
---|
| 170 | %{_libdir}/libnm-gtk.so |
---|
| 171 | %{_datadir}/gir-1.0/NMGtk-1.0.gir |
---|
| 172 | |
---|
| 173 | |
---|
| 174 | %changelog |
---|
[8011] | 175 | * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.8-1 |
---|
| 176 | - new upstream release |
---|
| 177 | |
---|
[7938] | 178 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.4-1 |
---|
| 179 | - new upstream release |
---|
| 180 | - remove Patch0 (network-manager-applet--0.9.8.2-git20130801.patch) |
---|
| 181 | - add BuildRequires: ModemManager-glib-devel |
---|
| 182 | |
---|
[7786] | 183 | * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-2 |
---|
| 184 | - add Patch0 (network-manager-applet--0.9.8.2-git20130801.patch) |
---|
| 185 | |
---|
[7712] | 186 | * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.2-1 |
---|
| 187 | - update to 0.9.8.2 |
---|
| 188 | - add BuildRequires: libsecret-devel |
---|
| 189 | |
---|
[7633] | 190 | * Sun Apr 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.8.0-1 |
---|
| 191 | - initial package split from NetworkManager |
---|
| 192 | |
---|