85e78377780c08e3c0f8d99629ed6292792b8a34
[fedora-mingw.git] / libgcrypt / mingw-libgcrypt.spec
1 %define __os_install_post /usr/lib/rpm/brp-compress %{nil}
2
3 Name:           mingw-libgcrypt
4 Version:        1.4.1
5 Release:        1%{?dist}
6 Summary:        MinGW Windows gcrypt encryption library
7
8 License:        LGPLv2+
9 Group:          Development/Libraries
10 URL:            ftp://ftp.gnupg.org/gcrypt/libgcrypt/
11 Source0:        ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{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
18 Requires:       mingw-runtime
19 Requires:       mingw-libgpg-error
20
21 %description
22 MinGW Windows gcrypt encryption library.
23
24
25 %prep
26 %setup -q -n libgcrypt-%{version}
27
28
29 %build
30 CFLAGS="$RPM_OPT_FLAGS -fno-stack-protector" \
31 ./configure \
32   --build=%_build \
33   --host=i686-pc-mingw32 \
34   --prefix=%{_prefix}/i686-pc-mingw32/sys-root/mingw
35
36 make
37
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 make DESTDIR=$RPM_BUILD_ROOT install
43
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48
49 %files
50 %defattr(-,root,root)
51 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/*
52 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/*
53 %{_prefix}/i686-pc-mingw32/sys-root/mingw/include/*
54 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/aclocal/*
55 %{_prefix}/i686-pc-mingw32/sys-root/mingw/share/info/*
56
57
58 %changelog
59 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 1.4.1-1
60 - Initial RPM release, largely based on earlier work from several sources.