[aws] New package #810676
Pavel Zhukov
landgraf at fedoraproject.org
Sat Nov 3 16:38:29 UTC 2012
commit fac2eb7a4ba9fb53b918c37319683d5b4cf62d61
Author: Pavel Zhukov <pavel at zhukoff.net>
Date: Sat Nov 3 20:38:11 2012 +0400
New package #810676
.gitignore | 2 +
aws-2.11.0-ipv6.patch | 18 +++
aws-2.11.0-remove_null_functions.patch | 13 +++
aws-2.11.0-ssl_versions.patch | 28 +++++
aws.spec | 183 ++++++++++++++++++++++++++++++++
sources | 2 +
6 files changed, 246 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3cc0aad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/aws-fedora.tgz
+/aws-gpl-2.11.0-src.tgz
diff --git a/aws-2.11.0-ipv6.patch b/aws-2.11.0-ipv6.patch
new file mode 100644
index 0000000..b86a689
--- /dev/null
+++ b/aws-2.11.0-ipv6.patch
@@ -0,0 +1,18 @@
+--- a/config/src/aws-net-std__ipv6.adb 2012-08-16 14:28:38.282318610 +0400
++++ b/config/src/aws-net-std__ipv6.adb 2012-08-16 14:29:31.975317013 +0400
+@@ -43,12 +43,13 @@
+ No_Socket : constant C.int := C.int (-1);
+ Failure : constant C.int := C.int (-1);
+
+- type Unsigned_Lock is new Unsigned_8;
++ -- type Unsigned_Lock is new Unsigned_8;
++ type Unsigned_Lock is mod 2**8;
++ pragma Atomic (Unsigned_Lock);
+
+ type Socket_Hidden is record
+ FD : Interfaces.C.int := No_Socket;
+ RL : aliased Unsigned_Lock := 0; -- Flag to detect read competition
+- pragma Atomic (RL);
+ end record;
+
+ subtype In6_Addr is OS_Lib.In6_Addr;
diff --git a/aws-2.11.0-remove_null_functions.patch b/aws-2.11.0-remove_null_functions.patch
new file mode 100644
index 0000000..8240b43
--- /dev/null
+++ b/aws-2.11.0-remove_null_functions.patch
@@ -0,0 +1,13 @@
+--- a/config/src/aws-net-ssl__gnutls.adb 2012-08-20 14:23:59.290021295 +0400
++++ b/config/src/aws-net-ssl__gnutls.adb 2012-08-20 14:24:33.266003512 +0400
+@@ -1001,8 +1001,8 @@
+ -- Unregister the push/pull callback to avoid locking on the
+ -- gnutls_bye() call.
+
+- TSSL.gnutls_transport_set_push_function (Socket.SSL, Null_Address);
+- TSSL.gnutls_transport_set_pull_function (Socket.SSL, Null_Address);
++ -- TSSL.gnutls_transport_set_push_function (Socket.SSL, Null_Address);
++ -- TSSL.gnutls_transport_set_pull_function (Socket.SSL, Null_Address);
+
+ Code := TSSL.gnutls_bye (Socket.SSL, TSSL.GNUTLS_SHUT_RDWR);
+
diff --git a/aws-2.11.0-ssl_versions.patch b/aws-2.11.0-ssl_versions.patch
new file mode 100644
index 0000000..259599a
--- /dev/null
+++ b/aws-2.11.0-ssl_versions.patch
@@ -0,0 +1,28 @@
+--- a/config/src/aws-net-ssl__gnutls.adb 2012-08-16 11:32:25.491633122 +0400
++++ b/config/src/aws-net-ssl__gnutls.adb 2012-08-16 11:33:33.720631093 +0400
+@@ -556,11 +556,9 @@
+ end Set_Certificate;
+
+ begin
+- if (Security_Mode = SSLv2
+- or else Security_Mode = SSLv23
++ if (Security_Mode = SSLv23
+ or else Security_Mode = TLSv1
+ or else Security_Mode = SSLv3
+- or else Security_Mode = SSLv2_Server
+ or else Security_Mode = SSLv23_Server
+ or else Security_Mode = TLSv1_Server
+ or else Security_Mode = SSLv3_Server)
+@@ -593,11 +591,9 @@
+ Config.RCC := Exchange_Certificate;
+ end if;
+
+- if (Security_Mode = SSLv2
+- or else Security_Mode = SSLv23
++ if (Security_Mode = SSLv23
+ or else Security_Mode = TLSv1
+ or else Security_Mode = SSLv3
+- or else Security_Mode = SSLv2_Client
+ or else Security_Mode = SSLv23_Client
+ or else Security_Mode = TLSv1_Client
+ or else Security_Mode = SSLv3_Client)
diff --git a/aws.spec b/aws.spec
new file mode 100644
index 0000000..8eb5f11
--- /dev/null
+++ b/aws.spec
@@ -0,0 +1,183 @@
+## TODO:
+## build docs
+## enable LDAP support
+
+Name: aws
+Version: 2.11.0
+Release: 11%{?dist}
+Summary: Ada Web Server
+
+Group: System Environment/Libraries
+License: GPLv3+ with exceptions and GPLv2+
+URL: http://libre.adacore.com/tools/aws
+## Direct download does't work
+## http://libre.adacore.com/libre/download/
+Source0: %{name}-gpl-%{version}-src.tgz
+### Sources can be obtained from guthub
+### https://github.com/landgraf/aws-fedora.git
+Source1: %{name}-fedora.tgz
+## Fix incorrect enumeration of SSL versions
+## report sent 20121012230755.GA8238 at work.zhukoff.net
+Patch0: %{name}-%{version}-ssl_versions.patch
+## Fix ipv5 implementation. Bug mailed by ada-ru
+Patch1: %{name}-%{version}-ipv6.patch
+## Gnutls segfaults without the patch. Null pointer in Push function
+## report sent 20120820120456.GI31565 at work.zhukoff.net
+Patch2: %{name}-%{version}-remove_null_functions.patch
+BuildRequires: fedora-gnat-project-common >= 3
+BuildRequires: gcc-gnat
+BuildRequires: gprbuild xmlada-devel gnutls-devel zlib-ada-devel
+BuildRequires: templates_parser-devel openldap-devel
+# gcc-gnat only available on these:
+ExclusiveArch: %{GNAT_arches}
+
+
+
+%description
+AWS is a complete framework to develop Web based applications.
+The main part of the framework is the embedded Web server.
+This small yet powerful Web server can be embedded into your application
+so your application will be able to talk with a standard Web browser
+Around this Web server a lot of services have been developed.
+
+%package tools
+Summary: Tools for %{name}
+License: GPLv3+
+Group: Applications/Text
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description tools
+%{summary}
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+BuildArch: noarch
+
+%description doc
+%{summary}
+
+%package devel
+Summary: Devel package for %{name}
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: fedora-gnat-project-common zlib-ada-devel
+Requires: templates_parser-devel xmlada-devel
+
+%description devel
+%{summary}
+Documentation can be found in -doc subpackage
+
+%prep
+%setup -q -n %{name}-gpl-%{version}-src
+tar -xvf %{SOURCE1}
+rm -rf templates_parser
+rm -rf include/zlib*
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+
+%build
+export LIBRARY_TYPE=relocatable
+export PRJ_BUILD=Release
+export GNATOPTFLAGS="%GPRbuild_optflags"
+cd fedora && make %{?_smp_mflags}
+## later, maybe later
+## cd .. && make build_doc
+
+
+%install
+cd fedora && make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} GPRDIR="%_GNAT_project_dir"
+cd %{buildroot}/%{_libdir}/%{name}/ && rm -f lib%{name}.so && ln -s lib%{name}.so.%{version} lib%{name}.so
+cd %{buildroot}/%{_libdir}/ && ln -s %{name}/lib%{name}.so* .
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc COPYING3 AUTHORS
+%dir %{_libdir}/%{name}
+%{_libdir}/lib%{name}.so.%{version}
+%{_libdir}/%{name}/lib%{name}.so.%{version}
+
+
+%files devel
+%doc MANIFEST
+%_GNAT_project_dir/%{name}*
+%{_includedir}/%{name}
+%{_libdir}/%{name}/*.ali
+%{_libdir}/lib%{name}.so
+%{_libdir}/%{name}/lib%{name}.so
+
+%files tools
+%doc
+%{_bindir}/awsres
+%{_bindir}/wsdl2aws
+%{_mandir}/man1/*.1.gz
+
+
+%files doc
+%doc COPYING3
+%{_docdir}/%{name}
+
+
+%changelog
+* Fri Nov 2 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.11.0-11
+- Add gcc-gnat and zlib-ada-devel dependencies
+
+* Sun Oct 28 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.11.0-10
+- Remove "-lz" flag
+- Remove dependencies -doc from base package
+- Fix tools license
+- Add man pages
+
+* Sat Oct 13 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.11.0-8
+- Remove zlib-ada sources
+- Fix license tag
+- Multiple fixes https://bugzilla.redhat.com/show_bug.cgi?id=810676#c28
+- Fix gpr
+
+* Mon Aug 20 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.11.0-6
+- Fix templates_parser import
+- Add gnutls patch
+- Fix license
+- Add LDAP support
+
+* Fri Aug 17 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.11.0-4
+- Change group
+- Remove template_parsers.gpr
+- Add doc subpackages
+
+* Thu Aug 16 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.11.0-2
+- Fix ipv6 issue
+- Add tools package
+
+* Thu Aug 16 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.11.0-1
+- Update to AWS-2012
+
+* Sun May 20 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.10.0-7
+- Change cp with cp -a
+- Remove chrpath dependency
+
+* Fri Apr 13 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.10.0-6
+- Fix copyright in aws.gpr file
+
+* Mon Apr 09 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.10.0-5
+- Fix -devel requires
+- Fix -devel license
+- Fix version in ChangeLog
+
+* Sun Apr 08 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.10.0-4
+- Fix smp optflag
+
+* Sun Mar 24 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.10.0-3
+- Fix gpr file with "xmlada"; added
+
+* Sat Mar 23 2012 Pavel Zhukov <landgraf at fedoraproject.org> - 2.10.0-2
+- Initial build
+- add "directories"
+
diff --git a/sources b/sources
index e69de29..06406b7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+9294f5d3f2a0fa7476221edfb69a19ab aws-fedora.tgz
+60d9667b9f9eac079e6d5c67cd859248 aws-gpl-2.11.0-src.tgz
More information about the scm-commits
mailing list