| 1 | %define nm_version 0.9.2.0 |
|---|
| 2 | %define dbus_version 1.4.14 |
|---|
| 3 | %define gtk3_version 3.0.0 |
|---|
| 4 | %define openvpn_version 2.1 |
|---|
| 5 | %define shared_mime_version 0.16-3 |
|---|
| 6 | |
|---|
| 7 | %define svn_snapshot %{nil} |
|---|
| 8 | |
|---|
| 9 | Summary: NetworkManager VPN plugin for OpenVPN |
|---|
| 10 | Summary(ja): OpenVPN を使った NetworkManager 用 VPN プラグイン |
|---|
| 11 | Name: NetworkManager-openvpn |
|---|
| 12 | Version: 0.9.2.0 |
|---|
| 13 | Release: 1%{?svn_snapshot}%{?_dist_release} |
|---|
| 14 | License: GPLv2+ |
|---|
| 15 | URL: http://www.gnome.org/projects/NetworkManager/ |
|---|
| 16 | Group: System Environment/Base |
|---|
| 17 | # How to build the source package: |
|---|
| 18 | # - Check out NetworkManager from Gnome SVN, currently trunk is used |
|---|
| 19 | # - cd NetworkManager/vpn-daemons/openvpn |
|---|
| 20 | # - ./autogen.sh --prefix=/usr --sysconfdir=/etc |
|---|
| 21 | # - make distcheck |
|---|
| 22 | # - use generated NetworkManager-openvpn-0.7.0.tar.gz |
|---|
| 23 | Source: %{name}-%{version}%{?svn_snapshot}.tar.xz |
|---|
| 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 25 | BuildRequires: gtk3-devel >= %{gtk3_version} |
|---|
| 26 | BuildRequires: dbus-devel >= %{dbus_version} |
|---|
| 27 | BuildRequires: NetworkManager-devel >= %{nm_version} |
|---|
| 28 | BuildRequires: NetworkManager-glib-devel >= %{nm_version} |
|---|
| 29 | BuildRequires: glib2-devel |
|---|
| 30 | BuildRequires: GConf2-devel |
|---|
| 31 | BuildRequires: libgnomeui-devel |
|---|
| 32 | BuildRequires: gnome-keyring-devel |
|---|
| 33 | BuildRequires: libglade2-devel |
|---|
| 34 | BuildRequires: libpng-devel |
|---|
| 35 | BuildRequires: perl-XML-Parser |
|---|
| 36 | BuildRequires: libtool intltool gettext |
|---|
| 37 | BuildRequires: perl |
|---|
| 38 | BuildRequires: gnome-common |
|---|
| 39 | Requires(post): %{_bindir}/update-desktop-database |
|---|
| 40 | Requires(postun): %{_bindir}/update-desktop-database |
|---|
| 41 | Requires(post): /sbin/ldconfig |
|---|
| 42 | Requires(postun): /sbin/ldconfig |
|---|
| 43 | Requires: gtk3 >= %{gtk3_version} |
|---|
| 44 | Requires: dbus >= %{dbus_version} |
|---|
| 45 | Requires: NetworkManager >= %{nm_version} |
|---|
| 46 | Requires: openvpn >= %{openvpn_version} |
|---|
| 47 | Requires: shared-mime-info >= %{shared_mime_version} |
|---|
| 48 | Requires: GConf2 |
|---|
| 49 | Requires: gnome-keyring |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | %description |
|---|
| 53 | This package contains software for integrating the OpenVPN VPN software |
|---|
| 54 | with NetworkManager and the GNOME desktop. |
|---|
| 55 | |
|---|
| 56 | %description -l ja |
|---|
| 57 | 本パッケージに収録されているソフトウェアにより、OpenVPN を |
|---|
| 58 | NetworkManager と GNOME デスクトップに統合させることができます。 |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | %prep |
|---|
| 62 | %setup -q -n %{name}-%{version} |
|---|
| 63 | |
|---|
| 64 | |
|---|
| 65 | %build |
|---|
| 66 | if [ ! -f configure ]; then |
|---|
| 67 | ./autogen.sh |
|---|
| 68 | fi |
|---|
| 69 | %configure --disable-static --disable-dependency-tracking \ |
|---|
| 70 | --enable-more-warnings=yes |
|---|
| 71 | make %{?_smp_mflags} |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | %install |
|---|
| 75 | rm -rf %{buildroot} |
|---|
| 76 | make install DESTDIR=%{buildroot} INSTALL="%{__install} -p" |
|---|
| 77 | |
|---|
| 78 | rm -f %{buildroot}%{_libdir}/NetworkManager/lib*.la |
|---|
| 79 | |
|---|
| 80 | %find_lang %{name} |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | %clean |
|---|
| 84 | rm -rf %{buildroot} |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | %post |
|---|
| 88 | /sbin/ldconfig |
|---|
| 89 | /usr/bin/update-desktop-database > /dev/null |
|---|
| 90 | touch --no-create %{_datadir}/icons/hicolor |
|---|
| 91 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
|---|
| 92 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
|---|
| 93 | fi |
|---|
| 94 | |
|---|
| 95 | %postun |
|---|
| 96 | /sbin/ldconfig |
|---|
| 97 | /usr/bin/update-desktop-database > /dev/null |
|---|
| 98 | touch --no-create %{_datadir}/icons/hicolor |
|---|
| 99 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
|---|
| 100 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : |
|---|
| 101 | fi |
|---|
| 102 | |
|---|
| 103 | %files -f %{name}.lang |
|---|
| 104 | %defattr(-, root, root) |
|---|
| 105 | |
|---|
| 106 | %doc AUTHORS ChangeLog README |
|---|
| 107 | %{_libdir}/NetworkManager/lib*.so* |
|---|
| 108 | %{_libexecdir}/nm-openvpn-auth-dialog |
|---|
| 109 | %{_sysconfdir}/dbus-1/system.d/nm-openvpn-service.conf |
|---|
| 110 | %{_sysconfdir}/NetworkManager/VPN/nm-openvpn-service.name |
|---|
| 111 | %{_libexecdir}/nm-openvpn-service |
|---|
| 112 | %{_libexecdir}/nm-openvpn-service-openvpn-helper |
|---|
| 113 | %{_datadir}/gnome-vpn-properties/openvpn/nm-openvpn-dialog.ui |
|---|
| 114 | %dir %{_datadir}/gnome-vpn-properties/openvpn |
|---|
| 115 | |
|---|
| 116 | |
|---|
| 117 | %changelog |
|---|
| 118 | * Wed Nov 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.2.0-1 |
|---|
| 119 | - new upstream release |
|---|
| 120 | |
|---|
| 121 | * Tue Aug 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.0-1 |
|---|
| 122 | - new upstream release |
|---|
| 123 | |
|---|
| 124 | * Thu Aug 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.9997-1 |
|---|
| 125 | - new upstream release |
|---|
| 126 | - change BuildRequires: gtk3-devel instead of gtk2-devel |
|---|
| 127 | |
|---|
| 128 | * Wed May 04 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.4-1 |
|---|
| 129 | - new upstream release |
|---|
| 130 | |
|---|
| 131 | * Sat Jan 01 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.8.2-1 |
|---|
| 132 | - new upstream release |
|---|
| 133 | |
|---|
| 134 | * Tue May 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8-1 |
|---|
| 135 | - new upstream release |
|---|
| 136 | |
|---|
| 137 | * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.1-1 |
|---|
| 138 | - new upstream release |
|---|
| 139 | |
|---|
| 140 | * Sat Mar 28 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.7.0.99-1 |
|---|
| 141 | - new upstream release in sync with NetworkManager-0.7.0.99 |
|---|
| 142 | |
|---|
| 143 | * Wed Jan 28 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.7.0-1.svn14 |
|---|
| 144 | - updated to new upstream tree, svn snapshot r14 |
|---|
| 145 | (svn://svn.gnome.org/svn/network-manager-openvpn) |
|---|
| 146 | - rebuilt with updated NetworkManager (0.7.0-1.git20090102) |
|---|
| 147 | - add Japanese summary and description |
|---|
| 148 | |
|---|
| 149 | * Sat Sep 27 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.0-0.2.svn4027 |
|---|
| 150 | - update to new svn snapshot (r4027) |
|---|
| 151 | |
|---|
| 152 | * Mon Aug 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.0-0.1.svn3918 |
|---|
| 153 | - initial build for Vine Linux |
|---|
| 154 | |
|---|
| 155 | * Thu Jul 24 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-15.svn3846 |
|---|
| 156 | - Rebuild to sync with F9 release number |
|---|
| 157 | |
|---|
| 158 | * Thu Jul 24 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3846 |
|---|
| 159 | - Fix TLS Authentication direction combo |
|---|
| 160 | - Only update settings if the advanced dialog's OK button is pressed |
|---|
| 161 | |
|---|
| 162 | * Fri Jul 18 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3832 |
|---|
| 163 | - Update for NM netmask -> prefix changes |
|---|
| 164 | |
|---|
| 165 | * Wed Jul 02 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-11.svn3801 |
|---|
| 166 | - Update for moving VPN editing into connection manager |
|---|
| 167 | - Import OpenVPN configuration files rather than old custom format |
|---|
| 168 | |
|---|
| 169 | * Mon May 05 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn3632 |
|---|
| 170 | - Fix issue with location of the VPN plugin |
|---|
| 171 | |
|---|
| 172 | * Thu May 01 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-10.svn3627 |
|---|
| 173 | - Update for compat with new NM bits |
|---|
| 174 | |
|---|
| 175 | * Wed Apr 23 2008 Christoph Höger <choeger@cs.tu-berlin.de> 1:0.7.0-10.svn3549 |
|---|
| 176 | - (Hopefully) Fix generation of nm-openvpn-service.name (#443389) |
|---|
| 177 | |
|---|
| 178 | * Wed Apr 09 2008 Dan Williams <dcbw@redhat.com> 1:0.7.0-9.svn3549 |
|---|
| 179 | - Update for compat with new NM bits |
|---|
| 180 | |
|---|
| 181 | * Mon Mar 03 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-9.svn3302 |
|---|
| 182 | - Mute %post and %postun scripts |
|---|
| 183 | |
|---|
| 184 | * Fri Feb 08 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-8.svn3302 |
|---|
| 185 | - Update to latest SVN snapshot |
|---|
| 186 | - Fixes rhbz#429816 (port was not saved correctly) |
|---|
| 187 | - Respects DNS search string from OpenVPN server |
|---|
| 188 | |
|---|
| 189 | * Fri Jan 18 2008 Tim Niemueller <tim@niemueller.de> 1:0.7.0-7.svn3169 |
|---|
| 190 | - Use install -p during "make install" to fix #342701 |
|---|
| 191 | |
|---|
| 192 | * Thu Dec 13 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-6.svn3169 |
|---|
| 193 | - Update to latest SVN snapshot |
|---|
| 194 | |
|---|
| 195 | * Thu Dec 6 2007 Dan Williams <dcbw@redhat.com> 1:0.7.0-5.svn3140 |
|---|
| 196 | - Update to latest SVN snapshot to get stuff working |
|---|
| 197 | |
|---|
| 198 | * Fri Nov 23 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-4.svn3047 |
|---|
| 199 | - BuildRequire libtool and glib2-devel since we call autogen.sh now |
|---|
| 200 | |
|---|
| 201 | * Fri Nov 23 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-3.svn3047 |
|---|
| 202 | - Fixed #320941 |
|---|
| 203 | - Call autogen, therefore BuildRequire gnome-common |
|---|
| 204 | - Use plain 3047 from repo and use a patch, we cannot use trunk at the |
|---|
| 205 | moment since it is in flux and incompatible with NM available for F8 |
|---|
| 206 | |
|---|
| 207 | * Wed Oct 31 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-2.svn3047.fc8 |
|---|
| 208 | - BuildRequire gettext |
|---|
| 209 | |
|---|
| 210 | * Tue Oct 30 2007 Tim Niemueller <tim@niemueller.de> 1:0.7.0-1.svn3047.fc8 |
|---|
| 211 | - Upgrade to trunk, needed to be compatible with NM 0.7.0, rebuild for F-8 |
|---|
| 212 | |
|---|
| 213 | * Fri Sep 15 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-7 |
|---|
| 214 | - Rebuild for FC6 |
|---|
| 215 | |
|---|
| 216 | * Sat Aug 19 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-5 |
|---|
| 217 | - Added perl-XML-Parser as a build requirement, needed for intltool |
|---|
| 218 | |
|---|
| 219 | * Tue Aug 15 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-4 |
|---|
| 220 | - Added instructions how to build the source package |
|---|
| 221 | - removed a rm line |
|---|
| 222 | |
|---|
| 223 | * Wed Aug 09 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-3 |
|---|
| 224 | - Added URL |
|---|
| 225 | |
|---|
| 226 | * Fri Aug 04 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-2 |
|---|
| 227 | - Upgrade to current upstream version (0.3.2 on 0.6 branch) |
|---|
| 228 | |
|---|
| 229 | * Mon Jul 10 2006 Tim Niemueller <tim@niemueller.de> 0.3.2-1 |
|---|
| 230 | - Upgraded to 0.3.2 for 0.6 branch |
|---|
| 231 | |
|---|
| 232 | * Tue Dec 06 2005 Tim Niemueller <tim@niemueller.de> 0.3-1 |
|---|
| 233 | - Initial revision based on NetworkManager-vpnc spec |
|---|
| 234 | |
|---|