]> git.pld-linux.org Git - packages/crossmingw32-libxml2.git/blob - crossmingw32-libxml2.spec
8be80491c9342403f3b1599e663a9966435298a4
[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.6.32
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:  2621d322c16f0257e30f0ff2b13384de
12 Patch0:         %{realname}-man_fixes.patch
13 Patch1:         %{realname}-open.gz.patch
14 Patch2:         %{realname}-DESTDIR.patch
15 URL:            http://xmlsoft.org/
16 BuildRequires:  autoconf >= 2.2
17 BuildRequires:  automake
18 BuildRequires:  crossmingw32-gcc
19 BuildRequires:  crossmingw32-zlib
20 BuildRequires:  libtool >= 1:1.4.2-9
21 BuildRequires:  sed >= 4.0
22 Requires:       crossmingw32-zlib
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         no_install_post_strip   1
26
27 %define         target                  i386-mingw32
28 %define         target_platform         i386-pc-mingw32
29
30 %define         _sysprefix              /usr
31 %define         _prefix                 %{_sysprefix}/%{target}
32 %define         _libdir                 %{_prefix}/lib
33 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
34 %define         _dlldir                 /usr/share/wine/windows/system
35 %define         __cc                    %{target}-gcc
36 %define         __cxx                   %{target}-g++
37
38 %description
39 This library allows you to manipulate XML files.
40
41 This package contains the cross version for Win32.
42
43 %description -l pl.UTF-8
44 Biblioteka libxml2 umożliwia manipulowanie zawartością plików XML.
45
46 Ten pakiet zawiera wersję skrośną dla Win32.
47
48 %package static
49 Summary:        Static libxml2 library (cross mingw32 version)
50 Summary(pl.UTF-8):      Statyczna biblioteka libxml2 (wersja skrośna mingw32)
51 Group:          Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53
54 %description static
55 Static libxml2 library (cross mingw32 version).
56
57 %description static -l pl.UTF-8
58 Statyczna biblioteka libxml2 (wersja skrośna mingw32).
59
60 %package dll
61 Summary:        DLL libxml2 library for Windows
62 Summary(pl.UTF-8):      Biblioteka DLL libxml2 dla Windows
63 Group:          Applications/Emulators
64 Requires:       crossmingw32-zlib-dll
65 Requires:       wine
66
67 %description dll
68 DLL libxml2 library for Windows.
69
70 %description dll -l pl.UTF-8
71 Biblioteka DLL libxml2 dla Windows.
72
73 %prep
74 %setup -q -n %{realname}-%{version}
75 %patch0 -p1
76 %patch1 -p1
77 %patch2 -p1
78
79 %build
80 %{__libtoolize}
81 %{__aclocal}
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
85 %configure \
86         --target=%{target} \
87         --host=%{target} \
88         --without-python
89
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install \
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}/{aclocal,doc,gtk-doc,man}
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %files
112 %defattr(644,root,root,755)
113 %doc AUTHORS ChangeLog Copyright NEWS README TODO
114 %{_libdir}/libxml2.dll.a
115 %{_libdir}/libxml2.la
116 %{_includedir}/libxml2
117 %{_pkgconfigdir}/libxml-2.0.pc
118
119 %files static
120 %defattr(644,root,root,755)
121 %{_libdir}/libxml2.a
122
123 %files dll
124 %defattr(644,root,root,755)
125 %{_dlldir}/libxml2-*.dll
This page took 0.055339 seconds and 2 git commands to generate.