- Use RPM macros from mingw-filesystem.
[fedora-mingw.git] / portablexdr / mingw-portablexdr.spec
1 %define __os_install_post /usr/lib/rpm/brp-compress %{nil}
2
3 Name:           mingw-portablexdr
4 Version:        4.0.10
5 Release:        2%{?dist}
6 Summary:        MinGW Windows PortableXDR XDR / RPC library
7
8 License:        LGPLv2+
9 Group:          Development/Libraries
10 URL:            http://et.redhat.com/~rjones/portablexdr/
11 Source0:        http://et.redhat.com/~rjones/portablexdr/portablexdr-%{version}.tar.gz
12 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildRequires:  mingw-gcc
15 BuildRequires:  mingw-binutils
16
17 Requires:       mingw-runtime
18
19 %description
20 MinGW Windows PortableXDR XDR / RPC library.
21
22
23 %prep
24 %setup -q -n portablexdr-%{version}
25
26
27 %build
28 CFLAGS="-O2 -g -Wall -pipe" \
29 ./configure \
30   --build=%_build \
31   --host=i686-pc-mingw32 \
32   --prefix=%{_prefix}/i686-pc-mingw32/sys-root/mingw
33
34 make
35
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39
40 make DESTDIR=$RPM_BUILD_ROOT install
41
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46
47 %files
48 %defattr(-,root,root)
49 %{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/libportablexdr-0.dll
50 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libportablexdr.a
51 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libportablexdr.dll.a
52 %{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/libportablexdr.la
53 %{_prefix}/i686-pc-mingw32/sys-root/mingw/include/rpc
54
55 %changelog
56 * Tue Sep  2 2008 Daniel P. Berrange <berrange@redhat.com> - 4.0.10-2
57 - List files explicitly and set custom CFLAGS
58
59 * Tue Jul  8 2008 Richard W.M. Jones <rjones@redhat.com> - 4.0.10-1
60 - New upstream release 4.0.10.
61 - No need to manually install header files in this version.
62
63 * Mon Jul  7 2008 Richard W.M. Jones <rjones@redhat.com> - 4.0.9-2
64 - Initial RPM release, largely based on earlier work from several sources.