Browse code

Build OSTree with TLS support. Adding new glib-networking package.

Touseef Liaqat authored on 2015/08/13 03:33:45
Showing 4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,68 @@
0
+Summary:    Glib networking modules
1
+Name:       glib-networking
2
+Version:    2.45.1
3
+Release:    1%{?dist}
4
+License:    GPLv2
5
+URL:        http://wiki.gnome.org/glib-networking
6
+Group:      System Environment/Development
7
+Vendor:     VMware, Inc.
8
+Distribution:   Photon
9
+Source0:    http://ftp.gnome.org/pub/GNOME/sources/glib-networking/2.45/%{name}-%{version}.tar.xz
10
+%define sha1 glib-networking=e6e17d1d6ed86a99db228fcf3ea1bd7f844a0cb5
11
+BuildRequires:	nettle-devel
12
+BuildRequires:	autogen-devel
13
+BuildRequires:	libtasn1-devel
14
+BuildRequires:	ca-certificates
15
+BuildRequires:  gnutls-devel
16
+BuildRequires:	openssl-devel
17
+BuildRequires:  intltool
18
+BuildRequires:  glib
19
+BuildRequires:  glib-devel
20
+BuildRequires:  glib-schemas
21
+Requires:	nettle
22
+Requires:	autogen
23
+Requires:   gnutls
24
+Requires:	libtasn1
25
+Requires:	openssl
26
+Requires:	ca-certificates
27
+
28
+%description
29
+Glib-netowkring contains networking related gio modules for Glib.
30
+
31
+%package lang
32
+Summary: Additional language files for glib-networking
33
+Group: System Environment/Development
34
+Requires: glib-networking
35
+%description lang
36
+These are the additional language files of glib-networking.
37
+
38
+%prep
39
+%setup -q
40
+
41
+%build
42
+export CFLAGS="%{optflags}"
43
+./configure  --prefix=%{_prefix} \
44
+    --with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt \
45
+    --disable-static
46
+
47
+make %{?_smp_mflags}
48
+
49
+%install
50
+rm -rf %{buildroot}%{_infodir}
51
+make DESTDIR=%{buildroot} install
52
+%find_lang %{name}
53
+
54
+%post   -p /sbin/ldconfig
55
+%postun -p /sbin/ldconfig
56
+
57
+%files
58
+%defattr(-,root,root)
59
+%{_libdir}
60
+%exclude %{_libdir}/debug
61
+
62
+%files lang -f %{name}.lang
63
+%defattr(-,root,root)
64
+
65
+%changelog
66
+*   Wed Aug 12 2015 Touseef Liaqat <tliaqat@vmware.com> 2.45.1-1
67
+-   Initial build.  First version
... ...
@@ -1,14 +1,14 @@
1 1
 Summary:	Low-level libraries useful for providing data structure handling for C.
2 2
 Name:		glib
3
-Version:	2.42.0
4
-Release:	3%{?dist}
3
+Version:	2.45.4
4
+Release:	1%{?dist}
5 5
 License:	LGPLv2+
6
-URL:		http://ftp.gnome.org/pub/gnome/sources/glib/2.42/glib-2.42.0.tar.xz
6
+URL:		http://ftp.gnome.org/pub/gnome/sources/glib/2.45/glib-2.45.4.tar.xz
7 7
 Group:		Applications/System
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution:	Photon
10
-Source0:	http://ftp.gnome.org/pub/gnome/sources/glib/2.42/%{name}-%{version}.tar.xz
11
-%define sha1 glib=f5168a7adffad3620ff3f1b3d6ff6d0ad3f0752e
10
+Source0:	http://ftp.gnome.org/pub/gnome/sources/glib/2.45/%{name}-%{version}.tar.xz
11
+%define sha1 glib=7ea14c2119a39560a0a82f14ba841fcad69f6ec7
12 12
 BuildRequires:	pcre-devel
13 13
 BuildRequires:	libffi
14 14
 BuildRequires:	pkg-config
... ...
@@ -18,6 +18,7 @@ BuildRequires:   python2
18 18
 BuildRequires:   python2-libs
19 19
 BuildRequires:   python2-devel
20 20
 BuildRequires:   python2-tools
21
+BuildRequires:   glib-networking
21 22
 Requires:	libxml2
22 23
 
23 24
 %description
... ...
@@ -50,8 +51,7 @@ These are the additional language files of libsoup.
50 50
 
51 51
 %build
52 52
 export CFLAGS="%{optflags}"
53
-./configure  --prefix=%{_prefix} \
54
-    --disable-tls-check
53
+./configure  --prefix=%{_prefix}
55 54
 
56 55
 make %{?_smp_mflags}
57 56
 
... ...
@@ -75,6 +75,7 @@ env NOCONFIGURE=1 ./autogen.sh
75 75
 	--enable-gtk-doc \
76 76
 	--with-dracut \
77 77
 	--with-mkinitcpio \
78
+    --enable-libsoup-client-certs  \
78 79
 	--prefix=%{_prefix}
79 80
 	  
80 81
 make %{?_smp_mflags}