]> git.pld-linux.org Git - packages/crossmingw32-libxml2.git/blob - crossmingw32-libxml2.spec
- updated to 2.9.4 (includes security related fixes)
[packages/crossmingw32-libxml2.git] / crossmingw32-libxml2.spec
1 %define         realname   libxml2
2 Summary:        libXML library - cross MinGW32 version
3 Summary(pl.UTF-8):      Biblioteka libXML wersja 2 - wersja skrośna dla MinGW32
4 Name:           crossmingw32-%{realname}
5 Version:        2.9.4
6 Release:        1
7 License:        MIT
8 Group:          Development/Libraries
9 #Source0:       http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/%{name}-%{version}.tar.bz2
10 Source0:        ftp://xmlsoft.org/libxml2/%{realname}-%{version}.tar.gz
11 # Source0-md5:  ae249165c173b1ff386ee8ad676815f5
12 Patch0:         %{realname}-man_fixes.patch
13 Patch1:         %{realname}-open.gz.patch
14 Patch2:         %{realname}-largefile.patch
15 URL:            http://xmlsoft.org/
16 BuildRequires:  autoconf >= 2.68
17 BuildRequires:  automake >= 1.4
18 BuildRequires:  crossmingw32-gcc
19 BuildRequires:  crossmingw32-zlib >= 1.2.4-3
20 BuildRequires:  crossmingw32-xz
21 BuildRequires:  libtool >= 2:2.0
22 BuildRequires:  sed >= 4.0
23 Requires:       crossmingw32-zlib >= 1.2.4-3
24 Requires:       crossmingw32-xz
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         no_install_post_strip   1
28
29 %define         target                  i386-mingw32
30 %define         target_platform         i386-pc-mingw32
31
32 %define         _sysprefix              /usr
33 %define         _prefix                 %{_sysprefix}/%{target}
34 %define         _libdir                 %{_prefix}/lib
35 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
36 %define         _dlldir                 /usr/share/wine/windows/system
37 %define         __cc                    %{target}-gcc
38 %define         __cxx                   %{target}-g++
39 %define         __pkgconfig_provides    %{nil}
40 %define         __pkgconfig_requires    %{nil}
41
42 %ifnarch %{ix86}
43 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
44 %define         optflags        -O2
45 %endif
46 # -z options are invalid for mingw linker, most of -f options are Linux-specific
47 %define         filterout_ld    -Wl,--as-needed -Wl,-z,relro -Wl,-z,combreloc
48 %define         filterout_c     -f[-a-z0-9=]*
49
50 %description
51 This library allows you to manipulate XML files.
52
53 This package contains the cross version for Win32.
54
55 %description -l pl.UTF-8
56 Biblioteka libxml2 umożliwia manipulowanie zawartością plików XML.
57
58 Ten pakiet zawiera wersję skrośną dla Win32.
59
60 %package static
61 Summary:        Static libxml2 library (cross MinGW32 version)
62 Summary(pl.UTF-8):      Statyczna biblioteka libxml2 (wersja skrośna MinGW32)
63 Group:          Development/Libraries
64 Requires:       %{name} = %{version}-%{release}
65
66 %description static
67 Static libxml2 library (cross MinGW32 version).
68
69 %description static -l pl.UTF-8
70 Statyczna biblioteka libxml2 (wersja skrośna MinGW32).
71
72 %package dll
73 Summary:        DLL libxml2 library for Windows
74 Summary(pl.UTF-8):      Biblioteka DLL libxml2 dla Windows
75 Group:          Applications/Emulators
76 Requires:       crossmingw32-zlib-dll >= 1.2.4-3
77 Requires:       crossmingw32-xz-dll
78 Requires:       wine
79
80 %description dll
81 DLL libxml2 library for Windows.
82
83 %description dll -l pl.UTF-8
84 Biblioteka DLL libxml2 dla Windows.
85
86 %prep
87 %setup -q -n %{realname}-%{version}
88 %patch0 -p1
89 %patch1 -p1
90 %patch2 -p1
91
92 %build
93 %{__libtoolize}
94 %{__aclocal}
95 %{__autoconf}
96 %{__autoheader}
97 %{__automake}
98 %configure \
99         --target=%{target} \
100         --host=%{target} \
101         --disable-silent-rules \
102         --without-python
103
104 %{__make}
105
106 %install
107 rm -rf $RPM_BUILD_ROOT
108
109 %{__make} install \
110         DESTDIR=$RPM_BUILD_ROOT
111
112 install -d $RPM_BUILD_ROOT%{_dlldir}
113 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
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 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gtk-doc,man}
121
122 %clean
123 rm -rf $RPM_BUILD_ROOT
124
125 %files
126 %defattr(644,root,root,755)
127 %doc AUTHORS ChangeLog Copyright NEWS README TODO
128 %{_libdir}/libxml2.dll.a
129 %{_libdir}/libxml2.la
130 %{_includedir}/libxml2
131 %{_pkgconfigdir}/libxml-2.0.pc
132
133 %files static
134 %defattr(644,root,root,755)
135 %{_libdir}/libxml2.a
136
137 %files dll
138 %defattr(644,root,root,755)
139 %{_dlldir}/libxml2-*.dll
This page took 0.088497 seconds and 3 git commands to generate.