3 %bcond_without ocaml # don't build OCaml binding
4 %bcond_without ocaml_opt # skip building native optimized binaries
6 %ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
7 %undefine with_ocaml_opt
10 %define ocaml_ver 1:3.09.3
11 Summary: gdome2 binding for various programming languages
12 Summary(pl.UTF-8): Wiązania gdome2 dla różnych języków programowania
18 Source0: http://downloads.sourceforge.net/gmetadom/%{name}-%{version}.tar.gz
19 # Source0-md5: 7bfb5d9c6f20ffa5e790b63d1f8cb481
20 Patch0: %{name}-gcc43.patch
21 URL: http://gmetadom.sourceforge.net/
22 BuildRequires: autoconf >= 2.50
23 BuildRequires: automake
24 BuildRequires: gdome2-devel >= 0.8.0
25 BuildRequires: libstdc++-devel
26 BuildRequires: libtool >= 2:1.5
27 %{?with_ocaml:BuildRequires: ocaml >= %{ocaml_ver}}
28 BuildRequires: pkgconfig
29 BuildRequires: rpmbuild(macros) >= 1.198
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 gdome2 binding for various programming languages. gdome2 is a fast,
34 light and complete DOM level2 implementation based on libxml2.
36 %description -l pl.UTF-8
37 Wiązania gdome2 dla różnych języków programowania. gdome2 jest szybką,
38 lekką i kompletną implementacją DOM poziom 2 opartą o libxml2.
40 %package -n ocaml-gdome2
41 Summary: gdome2 binding for OCaml
42 Summary(pl.UTF-8): Wiązania gdome2 dla OCamla
44 Requires: gdome2 >= 0.8.0
45 %requires_eq ocaml-runtime
47 %description -n ocaml-gdome2
48 gdome2 binding for OCaml. gdome2 is a fast, light and complete DOM
49 level2 implementation based on libxml2.
51 This package contains files needed to run bytecode executables using
54 %description -n ocaml-gdome2 -l pl.UTF-8
55 Wiązania gdome2 dla OCamla. gdome2 jest szybką, lekką i kompletną
56 implementacją DOM poziom 2 opartą o libxml2.
58 Pakiet ten zawiera binaria potrzebne do uruchamiania programów
59 używających tej biblioteki.
61 %package -n ocaml-gdome2-devel
62 Summary: gdome2 binding for OCaml - development part
63 Summary(pl.UTF-8): Wiązania gdome2 dla OCamla - cześć programistyczna
64 Group: Development/Libraries
65 Requires: %{name} = %{version}-%{release}
66 Requires: ocaml-gdome2 = %{version}-%{release}
69 %description -n ocaml-gdome2-devel
70 gdome2 binding for OCaml. gdome2 is a fast, light and complete DOM
71 level2 implementation based on libxml2.
73 This package contains files needed to develop OCaml programs using
76 %description -n ocaml-gdome2-devel -l pl.UTF-8
77 Wiązania gdome2 dla OCamla. gdome2 jest szybką, lekką i kompletną
78 implementacją DOM poziom 2 opartą o libxml2.
80 Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
83 %package -n gdome2-cpp_smart
84 Summary: gdome2 binding for C++/smart pointers
85 Summary(pl.UTF-8): Wiązania gdome2 dla C++/mądre wskaźniki
87 Requires: gdome2 >= 0.8.0
89 %description -n gdome2-cpp_smart
90 gdome2 binding for C++ with smart pointers. gdome2 is a fast, light
91 and complete DOM level2 implementation based on libxml2.
93 %description -n gdome2-cpp_smart -l pl.UTF-8
94 Wiązania gdome2 dla C++ z mądrymi wskaźnikami. gdome2 jest szybką,
95 lekką i kompletną implementacją DOM poziom 2 opartą o libxml2.
97 %package -n gdome2-cpp_smart-devel
98 Summary: gdome2 binding for C++/smart pointers - development part
99 Summary(pl.UTF-8): Wiązania gdome2 dla C++/mądre wskaźniki - cześć programistyczna
100 Group: Development/Libraries
101 Requires: %{name} = %{version}-%{release}
102 Requires: gdome2-cpp_smart = %{version}-%{release}
103 Requires: gdome2-devel >= 0.8.0
104 Requires: libstdc++-devel
106 %description -n gdome2-cpp_smart-devel
107 gdome2 binding for C++ with smart pointers. gdome2 is a fast, light
108 and complete DOM level2 implementation based on libxml2.
110 This package contains header files needed to develop programs using
113 %description -n gdome2-cpp_smart-devel -l pl.UTF-8
114 Wiązania gdome2 dla C++ z mądrymi wskaźnikami. gdome2 jest szybką,
115 lekką i kompletną implementacją DOM poziom 2 opartą o libxml2.
117 Pakiet ten zawiera pliki nagłówkowe niezbędne do rozwijania programów
118 korzystających z gdome2-cpp_smart.
120 %package -n gdome2-cpp_smart-static
121 Summary: gdome2 binding for C++/smart pointers - static libraries
122 Summary(pl.UTF-8): Wiązania gdome2 dla C++/mądre wskaźniki - biblioteki statyczne
123 Group: Development/Libraries
124 Requires: gdome2-cpp_smart-devel = %{version}-%{release}
126 %description -n gdome2-cpp_smart-static
127 gdome2 binding for C++ with smart pointers. gdome2 is a fast, light
128 and complete DOM level2 implementation based on libxml2.
130 This package contains static libraries needed to develop programs
131 using gdome2-cpp_smart.
133 %description -n gdome2-cpp_smart-static -l pl.UTF-8
134 Wiązania gdome2 dla C++ z mądrymi wskaźnikami. gdome2 jest szybką,
135 lekką i kompletną implementacją DOM poziom 2 opartą o libxml2.
137 Pakiet ten zawiera statyczne biblioteki niezbędne do rozwijania
138 programów korzystających z gdome2-cpp_smart.
144 # clean up CVS dirs in xml tree
145 find -name CVS | xargs rm -rf
154 --with-modules="gdome_cpp_smart%{?with_ocaml: gdome_caml}"
159 rm -rf $RPM_BUILD_ROOT
162 DESTDIR=$RPM_BUILD_ROOT
164 install -d $RPM_BUILD_ROOT%{_examplesdir}/ocaml-gdome2-%{version}
165 install src/gdome_caml/examples/*.ml $RPM_BUILD_ROOT%{_examplesdir}/ocaml-gdome2-%{version}
168 # .mli packaged as %doc
169 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/gdome2/*.{ml,mli}
170 # findlib-specific file, useless with rpm
171 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllmlgdome.so.owner
175 rm -rf $RPM_BUILD_ROOT
177 %post -n gdome2-cpp_smart -p /sbin/ldconfig
178 %postun -n gdome2-cpp_smart -p /sbin/ldconfig
181 %defattr(644,root,root,755)
182 %doc xml/DOM/* AUTHORS ChangeLog HISTORY LICENSE
183 %dir %{_includedir}/gmetadom
186 %files -n ocaml-gdome2
187 %defattr(644,root,root,755)
188 %dir %{_libdir}/ocaml/gdome2
189 %attr(755,root,root) %{_libdir}/ocaml/stublibs/dllmlgdome.so
191 %files -n ocaml-gdome2-devel
192 %defattr(644,root,root,755)
193 %doc src/gdome_caml/ocaml/gdome.mli
194 %{_libdir}/ocaml/gdome2/META
195 %{_libdir}/ocaml/gdome2/*.cmi
196 %{_libdir}/ocaml/gdome2/gdomeInit.cmo
197 %{_libdir}/ocaml/gdome2/mlgdomevalue.h
198 %{_libdir}/ocaml/gdome2/mlgdome.cma
199 %{_libdir}/ocaml/gdome2/mlogdome.cma
200 %if %{with ocaml_opt}
201 %{_libdir}/ocaml/gdome2/gdomeInit.cmx
202 %{_libdir}/ocaml/gdome2/gdomeInit.o
203 %{_libdir}/ocaml/gdome2/mlgdome.a
204 %{_libdir}/ocaml/gdome2/mlgdome.cmxa
205 %{_libdir}/ocaml/gdome2/mlogdome.a
206 %{_libdir}/ocaml/gdome2/mlogdome.cmxa
208 %{_libdir}/ocaml/gdome2/libmlgdome.a
209 %{_examplesdir}/ocaml-gdome2-%{version}
212 %files -n gdome2-cpp_smart
213 %defattr(644,root,root,755)
214 %attr(755,root,root) %{_libdir}/libgmetadom_gdome_cpp_smart.so.*.*.*
215 %attr(755,root,root) %ghost %{_libdir}/libgmetadom_gdome_cpp_smart.so.0
217 %files -n gdome2-cpp_smart-devel
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/libgmetadom_gdome_cpp_smart.so
220 %{_libdir}/libgmetadom_gdome_cpp_smart.la
221 %{_includedir}/gmetadom
222 %{_pkgconfigdir}/gdome2-cpp-smart.pc
224 %files -n gdome2-cpp_smart-static
225 %defattr(644,root,root,755)
226 %{_libdir}/libgmetadom_gdome_cpp_smart.a