]> git.pld-linux.org Git - packages/crossmingw32-expat.git/blob - crossmingw32-expat.spec
- cleanups, separated -static,-dll
[packages/crossmingw32-expat.git] / crossmingw32-expat.spec
1 Summary:        XML 1.0 parser - Ming32 cross version
2 Summary(pl.UTF-8):      Analizator składni XML-a 1.0 - wersja skrośna dla Ming32
3 %define         _realname               expat
4 Name:           crossmingw32-%{_realname}
5 Version:        2.0.0
6 Release:        1
7 License:        Thai Open Source Software Center Ltd (distributable)
8 Group:          Development/Libraries
9 Source0:        http://dl.sourceforge.net/expat/%{_realname}-%{version}.tar.gz
10 # Source0-md5:  d945df7f1c0868c5c73cf66ba9596f3f
11 Patch0:         %{_realname}-ac_fixes.patch
12 Patch1:         %{_realname}-soname.patch
13 URL:            http://expat.sourceforge.net/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  crossmingw32-gcc
17 BuildRequires:  libtool
18 Requires:       crossmingw32-runtime
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         no_install_post_strip   1
22
23 %define         target                  i386-mingw32
24 %define         target_platform         i386-pc-mingw32
25 %define         arch                    %{_prefix}/%{target}
26
27 %define         _sysprefix              /usr
28 %define         _prefix                 %{_sysprefix}/%{target}
29 %define         _dlldir                 /usr/share/wine/windows/system
30 %define         __cc                    %{target}-gcc
31 %define         __cxx                   %{target}-g++
32
33 %ifarch alpha sparc sparc64 sparcv9
34 # alpha's -mieee and sparc's -mtune=* are not valid for target's gcc
35 %define         optflags        -O2
36 %endif
37
38 %description
39 Expat is an XML parser written in C. It aims to be fully conforming.
40 It is currently not a validating XML parser.
41
42 This package contains the cross version for Win32.
43
44 %description -l pl.UTF-8
45 Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej
46 zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który
47 potwiedzał by zgodność ze specyfikacją.
48
49 Ten pakiet zawiera wersję skrośną dla Win32.
50
51 %package static
52 Summary:        Static expat library (cross mingw32 version)
53 Summary(pl.UTF-8):      Statyczna biblioteka expat (wersja skrośna mingw32)
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56
57 %description static
58 Static expat library (cross mingw32 version).
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka expat (wersja skrośna mingw32).
62
63 %package dll
64 Summary:        DLL expat library for Windows
65 Summary(pl.UTF-8):      Biblioteka DLL expat dla Windows
66 Group:          Applications/Emulators
67 Requires:       wine
68
69 %description dll
70 DLL expat library for Windows.
71
72 %description dll -l pl.UTF-8
73 Biblioteka DLL expat dla Windows.
74
75 %prep
76 %setup -q -n %{_realname}-%{version}
77 %patch0 -p1
78 %patch1 -p1
79
80 %build
81 %{__libtoolize}
82 %{__aclocal}
83 %{__autoconf}
84 %configure \
85         --target=%{target} \
86         --host=%{target}
87
88 %{__make}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 install -d $RPM_BUILD_ROOT%{_dlldir}
97 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
98
99 %if 0%{!?debug:1}
100 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
101 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
102 %endif
103
104 rm -rf $RPM_BUILD_ROOT%{_datadir}/man
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %files
110 %defattr(644,root,root,755)
111 %{_libdir}/libexpat.dll.a
112 %{_libdir}/libexpat.la
113 %{_includedir}/expat*.h
114
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/libexpat.a
118
119 %files dll
120 %defattr(644,root,root,755)
121 %{_dlldir}/libexpat-0.dll
This page took 0.056156 seconds and 3 git commands to generate.