some small fixes for 3.13 spec file

David Woodhouse dwmw2 at infradead.org
Mon Oct 3 12:05:28 EDT 2011


On Sun, 2011-10-02 at 22:40 -0400, ken_yap at programmer.net wrote:
> I wasn't sure who the author of the spec file in the 3.12 RPM was so
> I'm posting here.

Which 3.12 RPM?

Any specfile should have a changelog which would give a clue as to who
updated it last, even if that isn't the original author.

The one in Fedora is mine... although the one in Fedora is not 3.12; it
was updated to 3.13 within half an hour of the 3.13 release being
announced to this list. These are the changes (which are slightly
different to what you describe):

Are you interested in maintaining the OpenConnect package in EPEL? And
NetworkManager-openconnect?

diff --git a/openconnect.spec b/openconnect.spec
index 433d2ff..efd7d21 100644
--- a/openconnect.spec
+++ b/openconnect.spec
@@ -1,5 +1,5 @@
 Name:		openconnect
-Version:	3.12
+Version:	3.13
 Release:	1%{?dist}
 Summary:	Open client for Cisco AnyConnect VPN
 
@@ -10,7 +10,7 @@ Source0:	ftp://ftp.infradead.org/pub/openconnect/openconnect-%{version}.tar.gz
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	openssl-devel libxml2-devel gtk2-devel GConf2-devel dbus-devel
-BuildRequires:	libproxy-devel
+BuildRequires:	libproxy-devel python intltool
 Requires:	vpnc-script
 Requires:	openssl >= 0.9.8k-4
 # The "lasthost" and "autoconnect" gconf keys will cause older versions of
@@ -41,7 +41,11 @@ make %{?_smp_mflags}
 %install
 rm -rf $RPM_BUILD_ROOT
 %makeinstall
+# Move HTML docs into correct place
+mkdir -p $RPM_BUILD_ROOT%{_docdir}
+mv $RPM_BUILD_ROOT%{_datadir}/%{name} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 rm -f $RPM_BUILD_ROOT/%{_libdir}/libopenconnect.la
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -50,12 +54,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %postun -p /sbin/ldconfig
 
-%files
+%files -f %{name}.lang
 %defattr(-,root,root,-)
 %{_libdir}/libopenconnect.so.1*
 %{_bindir}/openconnect
 %{_mandir}/man8/*
-%doc TODO COPYING.LGPL openconnect.html
+%doc TODO COPYING.LGPL
 
 %files devel
 %defattr(-,root,root,-)
@@ -64,6 +68,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/pkgconfig/openconnect.pc
 
 %changelog
+* Fri Sep 30 2011 David Woodhouse <David.Woodhouse at intel.com> - 3.13-1
+- Update to 3.13. (Add localisation support, --cert-expire-warning)
+
 * Mon Sep 12 2011 David Woodhouse <David.Woodhouse at intel.com> - 3.12-1
 * Update to 3.12. (Fix DTLS compatibility issue with new ASA firmware)
 


-- 
dwmw2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5818 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openconnect-devel/attachments/20111003/68ffe4cd/attachment.bin>


More information about the openconnect-devel mailing list