]> git.pld-linux.org Git - packages/crossmingw32-expat.git/blob - crossmingw32-expat.spec
- updated to 2.2.7 (possible DoS fix)
[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.2.7
6 Release:        1
7 License:        MIT
8 Group:          Development/Libraries
9 Source0:        http://downloads.sourceforge.net/expat/%{realname}-%{version}.tar.xz
10 # Source0-md5:  3659bc0938db78815b5f5a9c24d732aa
11 URL:            http://www.libexpat.org/
12 BuildRequires:  autoconf >= 2.69
13 BuildRequires:  automake
14 BuildRequires:  crossmingw32-gcc >= 1:3.2
15 BuildRequires:  libtool >= 1:1.22
16 BuildRequires:  tar >= 1:1.22
17 BuildRequires:  xz
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         _pkgconfigdir           %{_prefix}/lib/pkgconfig
30 %define         _dlldir                 /usr/share/wine/windows/system
31 %define         __cc                    %{target}-gcc
32 %define         __cxx                   %{target}-g++
33 %define         __pkgconfig_provides    %{nil}
34 %define         __pkgconfig_requires    %{nil}
35
36 %ifnarch %{ix86}
37 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
38 %define         optflags        -O2
39 %endif
40 # -z options are invalid for mingw linker
41 %define         filterout_ld    -Wl,-z,.*
42 %define         filterout_c     -f[-a-z0-9=]*
43 %define         filterout_cxx   -f[-a-z0-9=]*
44
45 %description
46 Expat is an XML parser written in C. It aims to be fully conforming.
47 It is currently not a validating XML parser.
48
49 This package contains the cross version for Win32.
50
51 %description -l pl.UTF-8
52 Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej
53 zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który
54 potwiedzał by zgodność ze specyfikacją.
55
56 Ten pakiet zawiera wersję skrośną dla Win32.
57
58 %package static
59 Summary:        Static expat library (cross mingw32 version)
60 Summary(pl.UTF-8):      Statyczna biblioteka expat (wersja skrośna mingw32)
61 Group:          Development/Libraries
62 Requires:       %{name} = %{version}-%{release}
63
64 %description static
65 Static expat library (cross mingw32 version).
66
67 %description static -l pl.UTF-8
68 Statyczna biblioteka expat (wersja skrośna mingw32).
69
70 %package dll
71 Summary:        DLL expat library for Windows
72 Summary(pl.UTF-8):      Biblioteka DLL expat dla Windows
73 Group:          Applications/Emulators
74 Requires:       wine
75
76 %description dll
77 DLL expat library for Windows.
78
79 %description dll -l pl.UTF-8
80 Biblioteka DLL expat dla Windows.
81
82 %prep
83 %setup -q -n %{realname}-%{version}
84
85 %build
86 %{__libtoolize}
87 %{__aclocal} -I m4
88 %{__autoconf}
89 %{__autoheader}
90 %{__automake}
91 %configure \
92         --target=%{target} \
93         --host=%{target} \
94         --without-docbook \
95         --without-xmlwf
96
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT
104
105 install -d $RPM_BUILD_ROOT%{_dlldir}
106 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
107
108 %if 0%{!?debug:1}
109 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
110 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
111 %endif
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS COPYING Changes README.md
119 %{_libdir}/libexpat.dll.a
120 %{_libdir}/libexpat.la
121 %{_includedir}/expat*.h
122 %{_pkgconfigdir}/expat.pc
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libexpat.a
127
128 %files dll
129 %defattr(644,root,root,755)
130 %{_dlldir}/libexpat-1.dll
This page took 0.111404 seconds and 4 git commands to generate.