6d94d69957881e73db7eedbda975bbf82c9e537e
[fedora-mingw.git] / gnutls / mingw-gnutls.spec
1 %define __os_install_post /usr/lib/rpm/brp-compress %{nil}
2
3 Name:           mingw-gnutls
4 Version:        2.4.1
5 Release:        2%{?dist}
6 Summary:        MinGW Windows GnuTLS TLS/SSL encryption library
7
8 License:        LGPLv2+
9 Group:          Development/Libraries
10 URL:            http://www.gnu.org/software/gnutls/
11 Source0:        ftp://ftp.gnutls.org/pub/gnutls/gnutls-%{version}.tar.bz2
12 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildRequires:  mingw-gcc
15 BuildRequires:  mingw-binutils
16 BuildRequires:  mingw-libgpg-error
17 BuildRequires:  mingw-libgcrypt
18
19 Requires:       mingw-runtime
20 Requires:       mingw-libgpg-error
21 Requires:       mingw-libgcrypt
22
23 %description
24 MinGW Windows GnuTLS TLS/SSL encryption library.
25
26
27 %prep
28 %setup -q -n gnutls-%{version}
29
30
31 %build
32 CFLAGS="-O2 -g -Wall -pipe" \
33 ./configure \
34   --build=%_build \
35   --host=i686-pc-mingw32 \
36   --prefix=%{_prefix}/i686-pc-mingw32/sys-root/mingw \
37   --disable-cxx
38 # Disable C++ package until we have a C++ compiler (see mingw-gcc).
39
40 make
41
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 make DESTDIR=$RPM_BUILD_ROOT install
47
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52
53 %files
54 %defattr(-,root,root)
55 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/certtool.exe
56 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/gnutls-cli-debug.exe
57 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/gnutls-cli.exe
58 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/gnutls-serv.exe
59 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libgnutls-26.def
60 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libgnutls-26.dll
61 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libgnutls-config
62 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libgnutls-extra-26.def
63 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libgnutls-extra-26.dll
64 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libgnutls-extra-config
65 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libgnutls-openssl-26.def
66 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libgnutls-openssl-26.dll
67 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/psktool.exe
68 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/srptool.exe
69 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libgnutls-extra.a
70 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libgnutls-extra.dll.a
71 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libgnutls-extra.la
72 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libgnutls-openssl.a
73 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libgnutls-openssl.dll.a
74 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libgnutls-openssl.la
75 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libgnutls.a
76 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libgnutls.dll.a
77 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libgnutls.la
78 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig/gnutls-extra.pc
79 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig/gnutls.pc
80 %dir %{_prefix}/i686-pc-mingw32/sys-root/mingw/include/gnutls
81 %{_prefix}/i686-pc-mingw32/sys-root/mingw/include/gnutls/*
82 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/aclocal/libgnutls-extra.m4
83 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/aclocal/libgnutls.m4
84 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/info/gnutls-*.png
85 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/info/gnutls.info*
86 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/certtool.1*
87 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/gnutls-cli-debug.1*
88 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/gnutls-cli.1*
89 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/gnutls-serv.1*
90 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/psktool.1*
91 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/srptool.1*
92 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man3/gnutls_*.3*
93
94
95 %changelog
96 * Tue Sep  2 2008 Daniel P. Berrange <berrange@redhat.com> - 2.4.1-2
97 - List files explicitly and use custom CFLAGS
98
99 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 2.4.1-1
100 - Initial RPM release, largely based on earlier work from several sources.