]> git.pld-linux.org Git - packages/xerces-c.git/blob - xerces-c.spec
- -devel R: libstdc++-devel
[packages/xerces-c.git] / xerces-c.spec
1 Summary:        XML parser
2 Summary(pl):    Parser XML
3 Name:           xerces-c
4 Version:        2.3.0
5 %define ver     %(echo %{version} | tr . _)
6 Release:        2
7 License:        Apache
8 Group:          Applications/Publishing/XML
9 Source0:        http://xml.apache.org/dist/xerces-c/stable/%{name}-src_%{ver}.tar.gz
10 # Source0-md5:  5167dca8942dd2dd719fa5a8ebe0c18b
11 Patch0:         %{name}-iso88592.patch
12 Patch1:         %{name}-opt.patch
13 Patch2:         %{name}-gcc295.patch
14 URL:            http://xml.apache.org/
15 BuildRequires:  autoconf
16 BuildRequires:  libstdc++-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 XML parser.
21
22 %description -l pl
23 Parser XML.
24
25 %package devel
26 Summary:        %{name} header files
27 Summary(pl):    Pliki nag³ówkowe %{name}
28 Group:          Development/Libraries
29 Requires:       %{name} = %{version}
30 Requires:       libstdc++-devel
31
32 %description devel
33 %{name} header files.
34
35 %description devel -l pl
36 Pliki nag³ówkowe %{name}.
37
38 %package doc
39 Summary:        Extensive %{name} documentation
40 Summary(pl):    Obszerna dokumentacja %{name}
41 Group:          Documentation
42
43 %description doc
44 Extensive %{name} documentation and examples.
45
46 %description doc -l pl
47 Obszerna dokumentacja oraz przyk³ady %{name}.
48
49 %prep
50 %setup -q -n xerces-c-src_%{ver}
51 %patch0 -p1
52 %patch1 -p1
53 %patch2 -p1
54
55 %build
56 ## What a shit!!!
57 XERCESCROOT=`pwd`; export XERCESCROOT
58 cd src/xercesc
59 %{__autoconf}
60 chmod 755 runConfigure
61 ./runConfigure -plinux -cgcc -xg++ -minmem -nsocket -tnative -rpthread \
62         -z%(echo %{rpmcflags} | sed -e 's/\(.\) \+\(.\)/\1 -z\2/g')
63
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_examplesdir}/%{name}-%{version}}
69
70 # Only one file?
71 install lib/lib*.so $RPM_BUILD_ROOT%{_libdir}
72
73 # I put all stuff from that dir, maybe some can be omitted
74 cp -a include/xercesc $RPM_BUILD_ROOT%{_includedir}
75
76 cp -a samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post   -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
83
84 %files
85 %defattr(644,root,root,755)
86 %doc LICENSE.txt credits.txt
87 %attr(755,root,root) %{_libdir}/lib*.so
88
89 %files devel
90 %defattr(644,root,root,755)
91 %{_includedir}/*
92
93 %files doc
94 %defattr(644,root,root,755)
95 %doc doc/html
96 %{_examplesdir}/%{name}-%{version}
This page took 0.11365 seconds and 4 git commands to generate.