]> git.pld-linux.org Git - packages/crossmingw32-libxml2.git/blob - crossmingw32-libxml2.spec
- updated to 2.6.30
[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.30
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:  460e6d853e824da700d698532e57316b
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         _pkgconfigdir           %{_prefix}/lib/pkgconfig
33 %define         _dlldir                 /usr/share/wine/windows/system
34 %define         __cc                    %{target}-gcc
35 %define         __cxx                   %{target}-g++
36
37 %description
38 This library allows you to manipulate XML files.
39
40 This package contains the cross version for Win32.
41
42 %description -l pl.UTF-8
43 Biblioteka libxml2 umożliwia manipulowanie zawartością plików XML.
44
45 Ten pakiet zawiera wersję skrośną dla Win32.
46
47 %package static
48 Summary:        Static libxml2 library (cross mingw32 version)
49 Summary(pl.UTF-8):      Statyczna biblioteka libxml2 (wersja skrośna mingw32)
50 Group:          Development/Libraries
51 Requires:       %{name} = %{version}-%{release}
52
53 %description static
54 Static libxml2 library (cross mingw32 version).
55
56 %description static -l pl.UTF-8
57 Statyczna biblioteka libxml2 (wersja skrośna mingw32).
58
59 %package dll
60 Summary:        DLL libxml2 library for Windows
61 Summary(pl.UTF-8):      Biblioteka DLL libxml2 dla Windows
62 Group:          Applications/Emulators
63 Requires:       crossmingw32-zlib-dll
64 Requires:       wine
65
66 %description dll
67 DLL libxml2 library for Windows.
68
69 %description dll -l pl.UTF-8
70 Biblioteka DLL libxml2 dla Windows.
71
72 %prep
73 %setup -q -n %{realname}-%{version}
74 %patch0 -p1
75 %patch1 -p1
76 %patch2 -p1
77
78 %build
79 %{__libtoolize}
80 %{__aclocal}
81 %{__autoconf}
82 %{__autoheader}
83 %{__automake}
84 %configure \
85         --target=%{target} \
86         --host=%{target} \
87         --without-python
88
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 install -d $RPM_BUILD_ROOT%{_dlldir}
98 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
99
100 %if 0%{!?debug:1}
101 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
102 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
103 %endif
104
105 rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gtk-doc,man}
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS ChangeLog Copyright NEWS README TODO
113 %{_libdir}/libxml2.dll.a
114 %{_libdir}/libxml2.la
115 %{_includedir}/libxml2
116 %{_pkgconfigdir}/libxml-2.0.pc
117
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/libxml2.a
121
122 %files dll
123 %defattr(644,root,root,755)
124 %{_dlldir}/libxml2-*.dll
This page took 0.652669 seconds and 4 git commands to generate.