]> git.pld-linux.org Git - packages/crossmingw32-expat.git/blob - crossmingw32-expat.spec
- updated to 2.6.2 (fixes CVE-2023-52425 CVE-2023-52426 CVE-2024-28757)
[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.6
6 Release:        1
7 License:        MIT
8 Group:          Development/Libraries
9 Source0:        http://downloads.sourceforge.net/expat/%{realname}-%{version}.tar.bz2
10 # Source0-md5:  ca047ae951b40020ac831c28859161b2
11 Patch0:         %{realname}-ac_fixes.patch
12 URL:            http://www.libexpat.org/
13 BuildRequires:  autoconf >= 2.58
14 BuildRequires:  automake
15 BuildRequires:  crossmingw32-gcc
16 BuildRequires:  libtool
17 Requires:       crossmingw32-runtime
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         no_install_post_strip   1
21
22 %define         target                  i386-mingw32
23 %define         target_platform         i386-pc-mingw32
24
25 %define         _sysprefix              /usr
26 %define         _prefix                 %{_sysprefix}/%{target}
27 %define         _libdir                 %{_prefix}/lib
28 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
29 %define         _dlldir                 /usr/share/wine/windows/system
30 %define         __cc                    %{target}-gcc
31 %define         __cxx                   %{target}-g++
32 %define         __pkgconfig_provides    %{nil}
33 %define         __pkgconfig_requires    %{nil}
34
35 %ifnarch %{ix86}
36 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
37 %define         optflags        -O2
38 %endif
39 # -z options are invalid for mingw linker
40 %define         filterout_ld    -Wl,-z,.*
41 %define         filterout_c     -f[-a-z0-9=]*
42 %define         filterout_cxx   -f[-a-z0-9=]*
43
44 %description
45 Expat is an XML parser written in C. It aims to be fully conforming.
46 It is currently not a validating XML parser.
47
48 This package contains the cross version for Win32.
49
50 %description -l pl.UTF-8
51 Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej
52 zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który
53 potwiedzał by zgodność ze specyfikacją.
54
55 Ten pakiet zawiera wersję skrośną dla Win32.
56
57 %package static
58 Summary:        Static expat library (cross mingw32 version)
59 Summary(pl.UTF-8):      Statyczna biblioteka expat (wersja skrośna mingw32)
60 Group:          Development/Libraries
61 Requires:       %{name} = %{version}-%{release}
62
63 %description static
64 Static expat library (cross mingw32 version).
65
66 %description static -l pl.UTF-8
67 Statyczna biblioteka expat (wersja skrośna mingw32).
68
69 %package dll
70 Summary:        DLL expat library for Windows
71 Summary(pl.UTF-8):      Biblioteka DLL expat dla Windows
72 Group:          Applications/Emulators
73 Requires:       wine
74
75 %description dll
76 DLL expat library for Windows.
77
78 %description dll -l pl.UTF-8
79 Biblioteka DLL expat dla Windows.
80
81 %prep
82 %setup -q -n %{realname}-%{version}
83 %patch0 -p1
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 %{_libdir}/libexpat.dll.a
119 %{_libdir}/libexpat.la
120 %{_includedir}/expat*.h
121 %{_pkgconfigdir}/expat.pc
122
123 %files static
124 %defattr(644,root,root,755)
125 %{_libdir}/libexpat.a
126
127 %files dll
128 %defattr(644,root,root,755)
129 %{_dlldir}/libexpat-1.dll
This page took 0.10948 seconds and 3 git commands to generate.