]> git.pld-linux.org Git - packages/crossmingw32-expat.git/blob - crossmingw32-expat.spec
- x32 rebuild
[packages/crossmingw32-expat.git] / crossmingw32-expat.spec
1 Summary:        XML 1.0 parser - Ming32 cross version
2 Summary(pl.UTF-8):      Analizator składni XML-a 1.0 - wersja skrośna dla Ming32
3 %define         realname                expat
4 Name:           crossmingw32-%{realname}
5 Version:        2.0.1
6 Release:        3
7 License:        Thai Open Source Software Center Ltd (distributable)
8 Group:          Development/Libraries
9 Source0:        http://dl.sourceforge.net/expat/%{realname}-%{version}.tar.gz
10 # Source0-md5:  ee8b492592568805593f81f8cdf2a04c
11 Patch0:         %{realname}-ac_fixes.patch
12 Patch1:         %{realname}-soname.patch
13 URL:            http://expat.sourceforge.net/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  crossmingw32-gcc
17 BuildRequires:  libtool
18 Requires:       crossmingw32-runtime
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         no_install_post_strip   1
22
23 %define         target                  i386-mingw32
24 %define         target_platform         i386-pc-mingw32
25
26 %define         _sysprefix              /usr
27 %define         _prefix                 %{_sysprefix}/%{target}
28 %define         _libdir                 %{_prefix}/lib
29 %define         _dlldir                 /usr/share/wine/windows/system
30 %define         __cc                    %{target}-gcc
31 %define         __cxx                   %{target}-g++
32
33 %ifnarch %{ix86}
34 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
35 %define         optflags        -O2
36 %endif
37 # -z options are invalid for mingw linker
38 %define         filterout_ld    -Wl,-z,.*
39
40 %description
41 Expat is an XML parser written in C. It aims to be fully conforming.
42 It is currently not a validating XML parser.
43
44 This package contains the cross version for Win32.
45
46 %description -l pl.UTF-8
47 Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej
48 zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który
49 potwiedzał by zgodność ze specyfikacją.
50
51 Ten pakiet zawiera wersję skrośną dla Win32.
52
53 %package static
54 Summary:        Static expat library (cross mingw32 version)
55 Summary(pl.UTF-8):      Statyczna biblioteka expat (wersja skrośna mingw32)
56 Group:          Development/Libraries
57 Requires:       %{name} = %{version}-%{release}
58
59 %description static
60 Static expat library (cross mingw32 version).
61
62 %description static -l pl.UTF-8
63 Statyczna biblioteka expat (wersja skrośna mingw32).
64
65 %package dll
66 Summary:        DLL expat library for Windows
67 Summary(pl.UTF-8):      Biblioteka DLL expat dla Windows
68 Group:          Applications/Emulators
69 Requires:       wine
70
71 %description dll
72 DLL expat library for Windows.
73
74 %description dll -l pl.UTF-8
75 Biblioteka DLL expat dla Windows.
76
77 %prep
78 %setup -q -n %{realname}-%{version}
79 %patch0 -p1
80 %patch1 -p1
81
82 %build
83 %{__libtoolize}
84 %{__aclocal}
85 %{__autoconf}
86 %configure \
87         --target=%{target} \
88         --host=%{target}
89
90 %{__make} buildlib
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} installlib \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 install -d $RPM_BUILD_ROOT%{_dlldir}
99 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
100
101 %if 0%{!?debug:1}
102 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
103 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
104 %endif
105
106 rm -rf $RPM_BUILD_ROOT%{_datadir}/man
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %files
112 %defattr(644,root,root,755)
113 %{_libdir}/libexpat.dll.a
114 %{_libdir}/libexpat.la
115 %{_includedir}/expat*.h
116
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/libexpat.a
120
121 %files dll
122 %defattr(644,root,root,755)
123 %{_dlldir}/libexpat-0.dll
This page took 0.03458 seconds and 3 git commands to generate.