]> git.pld-linux.org Git - packages/crossmingw32-libxml2.git/blame_incremental - crossmingw32-libxml2.spec
- updated to 2.6.29
[packages/crossmingw32-libxml2.git] / crossmingw32-libxml2.spec
... / ...
CommitLineData
1%define realname libxml2
2Summary: libXML library - cross Mingw32 version
3Summary(pl.UTF-8): Biblioteka libXML wersja 2 - wersja skrośna dla Mingw32
4Name: crossmingw32-%{realname}
5Version: 2.6.29
6Release: 1
7License: MIT
8Group: Development/Libraries
9#Source0: http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/%{name}-%{version}.tar.bz2
10Source0: ftp://xmlsoft.org/libxml2/%{realname}-%{version}.tar.gz
11# Source0-md5: 8b99b6e8b08e838438d9e6b639d79ebd
12Patch0: %{realname}-man_fixes.patch
13Patch1: %{realname}-open.gz.patch
14Patch2: %{realname}-DESTDIR.patch
15URL: http://xmlsoft.org/
16BuildRequires: autoconf >= 2.2
17BuildRequires: automake
18BuildRequires: crossmingw32-gcc
19BuildRequires: crossmingw32-zlib
20BuildRequires: libtool >= 1:1.4.2-9
21BuildRequires: sed >= 4.0
22Requires: crossmingw32-zlib
23BuildRoot: %{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%define arch %{_prefix}/%{target}
30
31%define _sysprefix /usr
32%define _prefix %{_sysprefix}/%{target}
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
39This library allows you to manipulate XML files.
40
41This package contains the cross version for Win32.
42
43%description -l pl.UTF-8
44Biblioteka libxml2 umożliwia manipulowanie zawartością plików XML.
45
46Ten pakiet zawiera wersję skrośną dla Win32.
47
48%package static
49Summary: Static libxml2 library (cross mingw32 version)
50Summary(pl.UTF-8): Statyczna biblioteka libxml2 (wersja skrośna mingw32)
51Group: Development/Libraries
52Requires: %{name} = %{version}-%{release}
53
54%description static
55Static libxml2 library (cross mingw32 version).
56
57%description static -l pl.UTF-8
58Statyczna biblioteka libxml2 (wersja skrośna mingw32).
59
60%package dll
61Summary: DLL libxml2 library for Windows
62Summary(pl.UTF-8): Biblioteka DLL libxml2 dla Windows
63Group: Applications/Emulators
64Requires: crossmingw32-zlib-dll
65Requires: wine
66
67%description dll
68DLL libxml2 library for Windows.
69
70%description dll -l pl.UTF-8
71Biblioteka 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
80export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig
81%{__libtoolize}
82%{__aclocal}
83%{__autoconf}
84%{__autoheader}
85%{__automake}
86%configure \
87 --target=%{target} \
88 --host=%{target} \
89 --without-python
90
91%{__make}
92
93%install
94rm -rf $RPM_BUILD_ROOT
95
96%{__make} install \
97 DESTDIR=$RPM_BUILD_ROOT
98
99install -d $RPM_BUILD_ROOT%{_dlldir}
100mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
101
102%if 0%{!?debug:1}
103%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
104%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
105%endif
106
107rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gtk-doc,man}
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
112%files
113%defattr(644,root,root,755)
114%doc AUTHORS ChangeLog Copyright NEWS README TODO
115%{_libdir}/libxml2.dll.a
116%{_libdir}/libxml2.la
117%{_includedir}/libxml2
118%{_pkgconfigdir}/libxml-2.0.pc
119
120%files static
121%defattr(644,root,root,755)
122%{_libdir}/libxml2.a
123
124%files dll
125%defattr(644,root,root,755)
126%{_dlldir}/libxml2-*.dll
This page took 0.096539 seconds and 4 git commands to generate.