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