]> git.pld-linux.org Git - packages/crossmingw32-libxml2.git/blob - crossmingw32-libxml2.spec
bf315de5ca88586c767d684afb71ffc1dbd176fd
[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.7.6
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:  7740a8ec23878a2f50120e1faa2730f2
12 Patch0:         %{realname}-amfix.patch
13 Patch1:         %{realname}-man_fixes.patch
14 Patch2:         %{realname}-open.gz.patch
15 #Patch3:                %{realname}-largefile.patch
16 Patch4:         %{realname}-zlib.patch
17 URL:            http://xmlsoft.org/
18 BuildRequires:  autoconf >= 2.2
19 BuildRequires:  automake >= 1.4
20 BuildRequires:  crossmingw32-gcc
21 BuildRequires:  crossmingw32-zlib
22 BuildRequires:  libtool >= 1:1.4.2-9
23 BuildRequires:  sed >= 4.0
24 Requires:       crossmingw32-zlib >= 1.2.3.3
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         filterout_ld            -Wl,--as-needed -Wl,-z,relro -Wl,-z,combreloc
40
41 %description
42 This library allows you to manipulate XML files.
43
44 This package contains the cross version for Win32.
45
46 %description -l pl.UTF-8
47 Biblioteka libxml2 umożliwia manipulowanie zawartością plików XML.
48
49 Ten pakiet zawiera wersję skrośną dla Win32.
50
51 %package static
52 Summary:        Static libxml2 library (cross mingw32 version)
53 Summary(pl.UTF-8):      Statyczna biblioteka libxml2 (wersja skrośna mingw32)
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56
57 %description static
58 Static libxml2 library (cross mingw32 version).
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka libxml2 (wersja skrośna mingw32).
62
63 %package dll
64 Summary:        DLL libxml2 library for Windows
65 Summary(pl.UTF-8):      Biblioteka DLL libxml2 dla Windows
66 Group:          Applications/Emulators
67 Requires:       crossmingw32-zlib-dll
68 Requires:       wine
69
70 %description dll
71 DLL libxml2 library for Windows.
72
73 %description dll -l pl.UTF-8
74 Biblioteka DLL libxml2 dla Windows.
75
76 %prep
77 %setup -q -n %{realname}-%{version}
78 %patch0 -p1
79 %patch1 -p1
80 %patch2 -p1
81 #patch3 -p1
82 %patch4 -p1
83
84 %build
85 %{__libtoolize}
86 %{__aclocal}
87 %{__autoconf}
88 %{__autoheader}
89 %{__automake}
90 %configure \
91         --target=%{target} \
92         --host=%{target} \
93         --without-python
94
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 install -d $RPM_BUILD_ROOT%{_dlldir}
104 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
105
106 %if 0%{!?debug:1}
107 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
108 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
109 %endif
110
111 rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gtk-doc,man}
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog Copyright NEWS README TODO
119 %{_libdir}/libxml2.dll.a
120 %{_libdir}/libxml2.la
121 %{_includedir}/libxml2
122 %{_pkgconfigdir}/libxml-2.0.pc
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libxml2.a
127
128 %files dll
129 %defattr(644,root,root,755)
130 %{_dlldir}/libxml2-*.dll
This page took 0.063816 seconds and 2 git commands to generate.