]> git.pld-linux.org Git - packages/crossmingw32-libxml2.git/blame - crossmingw32-libxml2.spec
do not require pkgconfig deps either
[packages/crossmingw32-libxml2.git] / crossmingw32-libxml2.spec
CommitLineData
d6d063a5 1%define realname libxml2
254c0603
JB
2Summary: libXML library - cross MinGW32 version
3Summary(pl.UTF-8): Biblioteka libXML wersja 2 - wersja skrośna dla MinGW32
d6d063a5 4Name: crossmingw32-%{realname}
a47449f3 5Version: 2.9.1
6a93caa8 6Release: 2
bae24ee6 7License: MIT
a338d023 8Group: Development/Libraries
bae24ee6 9#Source0: http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/%{name}-%{version}.tar.bz2
d6d063a5 10Source0: ftp://xmlsoft.org/libxml2/%{realname}-%{version}.tar.gz
a47449f3 11# Source0-md5: 9c0cfef285d5c4a5c80d00904ddab380
2d77eca5
JB
12Patch0: %{realname}-man_fixes.patch
13Patch1: %{realname}-open.gz.patch
14Patch2: %{realname}-largefile.patch
bae24ee6 15URL: http://xmlsoft.org/
3fc69630 16BuildRequires: autoconf >= 2.68
5d33cd62 17BuildRequires: automake >= 1.4
a338d023 18BuildRequires: crossmingw32-gcc
d43adb62 19BuildRequires: crossmingw32-zlib >= 1.2.4-3
3fc69630 20BuildRequires: libtool >= 2:2.0
bae24ee6 21BuildRequires: sed >= 4.0
d43adb62 22Requires: crossmingw32-zlib >= 1.2.4-3
bae24ee6 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
bae24ee6 29
30%define _sysprefix /usr
31%define _prefix %{_sysprefix}/%{target}
b33e056f 32%define _libdir %{_prefix}/lib
bae24ee6 33%define _pkgconfigdir %{_prefix}/lib/pkgconfig
a338d023 34%define _dlldir /usr/share/wine/windows/system
bae24ee6 35%define __cc %{target}-gcc
36%define __cxx %{target}-g++
fa16681a 37%define __pkgconfig_provides %{nil}
6a93caa8 38%define __pkgconfig_requires %{nil}
bb67111e
JB
39
40%ifnarch %{ix86}
41# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
42%define optflags -O2
43%endif
44# -z options are invalid for mingw linker, most of -f options are Linux-specific
45%define filterout_ld -Wl,--as-needed -Wl,-z,relro -Wl,-z,combreloc
46%define filterout_c -f[-a-z0-9=]*
bae24ee6 47
48%description
49This library allows you to manipulate XML files.
50
a338d023 51This package contains the cross version for Win32.
bae24ee6 52
53%description -l pl.UTF-8
54Biblioteka libxml2 umożliwia manipulowanie zawartością plików XML.
55
a338d023
JB
56Ten pakiet zawiera wersję skrośną dla Win32.
57
58%package static
254c0603
JB
59Summary: Static libxml2 library (cross MinGW32 version)
60Summary(pl.UTF-8): Statyczna biblioteka libxml2 (wersja skrośna MinGW32)
a338d023
JB
61Group: Development/Libraries
62Requires: %{name} = %{version}-%{release}
63
64%description static
254c0603 65Static libxml2 library (cross MinGW32 version).
a338d023
JB
66
67%description static -l pl.UTF-8
254c0603 68Statyczna biblioteka libxml2 (wersja skrośna MinGW32).
a338d023
JB
69
70%package dll
71Summary: DLL libxml2 library for Windows
72Summary(pl.UTF-8): Biblioteka DLL libxml2 dla Windows
73Group: Applications/Emulators
d43adb62 74Requires: crossmingw32-zlib-dll >= 1.2.4-3
a338d023
JB
75Requires: wine
76
77%description dll
78DLL libxml2 library for Windows.
79
80%description dll -l pl.UTF-8
81Biblioteka DLL libxml2 dla Windows.
bae24ee6 82
83%prep
d6d063a5 84%setup -q -n %{realname}-%{version}
bae24ee6 85%patch0 -p1
86%patch1 -p1
87%patch2 -p1
bae24ee6 88
89%build
bae24ee6 90%{__libtoolize}
91%{__aclocal}
92%{__autoconf}
93%{__autoheader}
94%{__automake}
95%configure \
96 --target=%{target} \
97 --host=%{target} \
2d77eca5 98 --disable-silent-rules \
a338d023 99 --without-python
bae24ee6 100
101%{__make}
102
103%install
104rm -rf $RPM_BUILD_ROOT
105
106%{__make} install \
a338d023 107 DESTDIR=$RPM_BUILD_ROOT
bae24ee6 108
a338d023
JB
109install -d $RPM_BUILD_ROOT%{_dlldir}
110mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
111
112%if 0%{!?debug:1}
113%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
114%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
115%endif
116
2d77eca5 117%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gtk-doc,man}
bae24ee6 118
119%clean
120rm -rf $RPM_BUILD_ROOT
121
122%files
123%defattr(644,root,root,755)
124%doc AUTHORS ChangeLog Copyright NEWS README TODO
a338d023
JB
125%{_libdir}/libxml2.dll.a
126%{_libdir}/libxml2.la
127%{_includedir}/libxml2
128%{_pkgconfigdir}/libxml-2.0.pc
bae24ee6 129
a338d023
JB
130%files static
131%defattr(644,root,root,755)
132%{_libdir}/libxml2.a
bae24ee6 133
a338d023
JB
134%files dll
135%defattr(644,root,root,755)
136%{_dlldir}/libxml2-*.dll
This page took 0.104847 seconds and 4 git commands to generate.