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