3 %bcond_without static_libs # static library
5 Summary: C++ XML processing library
6 Summary(pl.UTF-8): Biblioteka C++ do przetwarzania XML-a
12 #Source0Download: http://pugixml.org/
13 Source0: http://github.com/zeux/pugixml/releases/download/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: f97237e9908201c6d8536210747b66af
15 Patch0: longlong.patch
16 URL: http://pugixml.org/
17 BuildRequires: cmake >= 2.8.12
18 BuildRequires: libstdc++-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 pugixml is a C++ XML processing library, which consists of a DOM-like
23 interface with rich traversal/modification capabilities, an extremely
24 fast XML parser which constructs the DOM tree from an XML file/buffer,
25 and an XPath 1.0 implementation for complex data-driven tree queries.
26 Full Unicode support is also available, with Unicode interface
27 variants and conversions between different Unicode encodings (which
28 happen automatically during parsing/saving).
30 %description -l pl.UTF-8
31 pugixml to biblioteka C++ do przetwarzania XML-a, składająca się z
32 interfejsu w stylu DOM z dużymi możliwościami przeglądania i
33 modyfikowania, bardzo szybkim analizatorem XML-a tworzącym drzewo DOM
34 z pliku/bufora XML oraz implementacji XPath 1.0 do złożonych zapytań
35 drzewiastych zależnych od danych. Dostępna jest też pełna obsługa
36 Unikodu, z wariantowym interfejsem i przekształcaniem między różnymi
37 kodowaniami Unikodu (co wykonywane jest automatycznie podczas
41 Summary: Header files for pugixml library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki pugixml
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Requires: libstdc++-devel
48 Header files for pugixml library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki pugixml.
54 Summary: Static pugixml library
55 Summary(pl.UTF-8): Statyczna biblioteka pugixml
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 Static pugixml library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka pugixml.
73 -DBUILD_SHARED_LIBS=ON
76 %if %{with static_libs}
77 install -d build-static
80 -DBUILD_SHARED_LIBS=OFF
85 rm -rf $RPM_BUILD_ROOT
87 %if %{with static_libs}
88 %{__make} -C build-static install \
89 DESTDIR=$RPM_BUILD_ROOT
92 %{__make} -C build install \
93 DESTDIR=$RPM_BUILD_ROOT
96 rm -rf $RPM_BUILD_ROOT
98 %post -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
102 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libpugixml.so.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libpugixml.so.1
108 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libpugixml.so
111 %{_includedir}/pugiconfig.hpp
112 %{_includedir}/pugixml.hpp
113 %{_pkgconfigdir}/pugixml.pc
114 %{_libdir}/cmake/pugixml
116 %if %{with static_libs}
118 %defattr(644,root,root,755)
119 %{_libdir}/libpugixml.a