- Rebase to native Fedora version 1.14.11.
[fedora-mingw.git] / gnutls / mingw32-gnutls.spec
1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
6
7 Name:           mingw32-gnutls
8 Version:        2.6.3
9 Release:        1%{?dist}
10 Summary:        MinGW Windows GnuTLS TLS/SSL encryption library
11
12 License:        GPLv3+ and LGPLv2+
13 Group:          Development/Libraries
14 URL:            http://www.gnutls.org/
15 #Source0:        ftp://ftp.gnutls.org/pub/gnutls/gnutls-%{version}.tar.bz2
16 # XXX patent tainted SRP code removed.
17 Source0:        gnutls-%{version}-nosrp.tar.bz2
18 Source1:        libgnutls-config
19 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20
21 BuildArch:      noarch
22
23 Patch1:         gnutls-2.6.2-nosrp.patch
24
25 # MinGW-specific patches.
26 Patch1000:      gnutls-certtool-build.patch
27
28 BuildRequires:  mingw32-filesystem >= 25
29 BuildRequires:  mingw32-gcc
30 BuildRequires:  mingw32-binutils
31 BuildRequires:  mingw32-libgpg-error
32 BuildRequires:  mingw32-libgcrypt >= 1.2.2
33 BuildRequires:  mingw32-iconv
34 BuildRequires:  mingw32-gettext
35 BuildRequires:  mingw32-zlib
36 BuildRequires:  autoconf automake libtool
37
38 Requires:       pkgconfig
39
40
41 %description
42 MinGW Windows GnuTLS TLS/SSL encryption library.
43
44
45 %prep
46 %setup -q -n gnutls-%{version}
47
48 %patch1 -p1 -b .nosrp
49
50 %patch1000 -p1 -b .mingw32
51
52 for i in auth_srp_rsa.c auth_srp_sb64.c auth_srp_passwd.c auth_srp.c gnutls_srp.c ext_srp.c; do
53     touch lib/$i
54 done
55
56 %build
57 autoreconf
58 PATH="%{_mingw32_bindir}:$PATH" \
59 %{_mingw32_configure} \
60   --with-included-libtasn1 \
61   --disable-srp-authentication \
62   --disable-static
63 make %{?_smp_mflags}
64
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 make DESTDIR=$RPM_BUILD_ROOT install
70 rm -f $RPM_BUILD_ROOT%{_mingw32_datadir}/info/dir
71
72 # Remove info and man pages which duplicate stuff in Fedora already.
73 rm -rf $RPM_BUILD_ROOT%{_mingw32_infodir}
74 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
75
76 %find_lang gnutls
77
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82
83 %files -f gnutls.lang
84 %defattr(-,root,root)
85 %{_mingw32_bindir}/certtool.exe
86 %{_mingw32_bindir}/gnutls-cli-debug.exe
87 %{_mingw32_bindir}/gnutls-cli.exe
88 %{_mingw32_bindir}/gnutls-serv.exe
89 %{_mingw32_bindir}/libgnutls-26.def
90 %{_mingw32_bindir}/libgnutls-26.dll
91 %{_mingw32_bindir}/libgnutls-config
92 %{_mingw32_bindir}/libgnutls-extra-26.def
93 %{_mingw32_bindir}/libgnutls-extra-26.dll
94 %{_mingw32_bindir}/libgnutls-extra-config
95 %{_mingw32_bindir}/libgnutls-openssl-26.def
96 %{_mingw32_bindir}/libgnutls-openssl-26.dll
97 %{_mingw32_bindir}/psktool.exe
98 %{_mingw32_libdir}/libgnutls-extra.dll.a
99 %{_mingw32_libdir}/libgnutls-extra.la
100 %{_mingw32_libdir}/libgnutls-openssl.dll.a
101 %{_mingw32_libdir}/libgnutls-openssl.la
102 %{_mingw32_libdir}/libgnutls.dll.a
103 %{_mingw32_libdir}/libgnutls.la
104 %{_mingw32_libdir}/pkgconfig/gnutls-extra.pc
105 %{_mingw32_libdir}/pkgconfig/gnutls.pc
106 %{_mingw32_includedir}/gnutls/
107 %{_mingw32_datadir}/aclocal/libgnutls-extra.m4
108 %{_mingw32_datadir}/aclocal/libgnutls.m4
109
110
111 %changelog
112 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.6.3-1
113 - Rebase to native Fedora version 2.6.3.
114 - Enable C++ library.
115 - Use _smp_mflags.
116 - Use find_lang macro.
117 - Don't build static library.
118
119 * Tue Jan 13 2009 Richard W.M. Jones <rjones@redhat.com> - 2.4.2-4
120 - Requires pkgconfig.
121
122 * Thu Nov 13 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.2-3
123 - fix chain verification issue CVE-2008-4989 (#470079)
124 - separate out the MinGW-specific patch from the others
125
126 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.2-2
127 - Rename mingw -> mingw32.
128
129 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.2-1
130 - New native version.
131
132 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-9
133 - Switch to source tar.bz2 with SRP stuff removed
134
135 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-8
136 - Remove duplicate manpages and info files.
137
138 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-7
139 - Add BR on autoconf, automake and libtool
140
141 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-6
142 - Need to run autoreconf after patching src/Makefile.am.
143 - Remove static libs.
144
145 * Fri Sep  5 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-5
146 - Add patch to build certtool.exe because of missing dep of gnulib on intl.
147 - BuildArch is noarch.
148
149 * Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-3
150 - Use mingw-filesystem RPM macros.
151 - Depends on mingw-iconv, mingw-gettext.
152
153 * Tue Sep  2 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-2
154 - List files explicitly and use custom CFLAGS
155
156 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-1
157 - Initial RPM release, largely based on earlier work from several sources.