139e22752a401a4f30289854e0ce09772df2db0b
[fedora-mingw.git] / gnutls / mingw-gnutls.spec
1 %define __strip %{_mingw_strip}
2 %define __objdump %{_mingw_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw_findrequires}
5 %define __find_provides %{_mingw_findprovides}
6
7 Name:           mingw-gnutls
8 Version:        2.4.1
9 Release:        8%{?dist}
10 Summary:        MinGW Windows GnuTLS TLS/SSL encryption library
11
12 License:        LGPLv2+
13 Group:          Development/Libraries
14 URL:            http://www.gnu.org/software/gnutls/
15 Source0:        ftp://ftp.gnutls.org/pub/gnutls/gnutls-%{version}.tar.bz2
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 BuildArch:      noarch
19
20 Patch0:         gnutls-certtool-build.patch
21
22 BuildRequires:  mingw-filesystem >= 25
23 BuildRequires:  mingw-gcc
24 BuildRequires:  mingw-binutils
25 BuildRequires:  mingw-libgpg-error
26 BuildRequires:  mingw-libgcrypt
27 BuildRequires:  mingw-iconv
28 BuildRequires:  mingw-gettext
29 BuildRequires:  mingw-zlib
30 BuildRequires:  autoconf automake libtool
31
32 %description
33 MinGW Windows GnuTLS TLS/SSL encryption library.
34
35
36 %prep
37 %setup -q -n gnutls-%{version}
38 %patch0 -p1
39
40
41 %build
42 autoreconf
43 PATH="%{_mingw_bindir}:$PATH" \
44 %{_mingw_configure} --with-included-libtasn1 --disable-cxx
45 make
46
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 make DESTDIR=$RPM_BUILD_ROOT install
52 rm -f $RPM_BUILD_ROOT%{_mingw_datadir}/info/dir
53
54 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libgnutls-extra.a
55 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libgnutls-openssl.a
56 rm $RPM_BUILD_ROOT%{_mingw_libdir}/libgnutls.a
57
58 # Remove info and man pages which duplicate stuff in Fedora already.
59 rm -rf $RPM_BUILD_ROOT%{_mingw_infodir}
60 rm -rf $RPM_BUILD_ROOT%{_mingw_mandir}
61
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66
67 %files
68 %defattr(-,root,root)
69 %{_mingw_bindir}/certtool.exe
70 %{_mingw_bindir}/gnutls-cli-debug.exe
71 %{_mingw_bindir}/gnutls-cli.exe
72 %{_mingw_bindir}/gnutls-serv.exe
73 %{_mingw_bindir}/libgnutls-26.def
74 %{_mingw_bindir}/libgnutls-26.dll
75 %{_mingw_bindir}/libgnutls-config
76 %{_mingw_bindir}/libgnutls-extra-26.def
77 %{_mingw_bindir}/libgnutls-extra-26.dll
78 %{_mingw_bindir}/libgnutls-extra-config
79 %{_mingw_bindir}/libgnutls-openssl-26.def
80 %{_mingw_bindir}/libgnutls-openssl-26.dll
81 %{_mingw_bindir}/psktool.exe
82 %{_mingw_bindir}/srptool.exe
83 %{_mingw_libdir}/libgnutls-extra.dll.a
84 %{_mingw_libdir}/libgnutls-extra.la
85 %{_mingw_libdir}/libgnutls-openssl.dll.a
86 %{_mingw_libdir}/libgnutls-openssl.la
87 %{_mingw_libdir}/libgnutls.dll.a
88 %{_mingw_libdir}/libgnutls.la
89 %{_mingw_libdir}/pkgconfig/gnutls-extra.pc
90 %{_mingw_libdir}/pkgconfig/gnutls.pc
91 %{_mingw_includedir}/gnutls/
92 %{_mingw_datadir}/aclocal/libgnutls-extra.m4
93 %{_mingw_datadir}/aclocal/libgnutls.m4
94 %{_mingw_datadir}/locale/*/LC_MESSAGES/gnutls.mo
95
96
97 %changelog
98 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-8
99 - Remove duplicate manpages and info files.
100
101 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-7
102 - Add BR on autoconf, automake and libtool
103
104 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-6
105 - Need to run autoreconf after patching src/Makefile.am.
106 - Remove static libs.
107
108 * Fri Sep  5 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-5
109 - Add patch to build certtool.exe because of missing dep of gnulib on intl.
110 - BuildArch is noarch.
111
112 * Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-3
113 - Use mingw-filesystem RPM macros.
114 - Depends on mingw-iconv, mingw-gettext.
115
116 * Tue Sep  2 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-2
117 - List files explicitly and use custom CFLAGS
118
119 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-1
120 - Initial RPM release, largely based on earlier work from several sources.