]> git.pld-linux.org Git - packages/gmetadom.git/blame - gmetadom.spec
- dropped .la file, release 15
[packages/gmetadom.git] / gmetadom.spec
CommitLineData
d54bf19d 1#
77de2dad 2# Conditional build:
e4bf8d09
JB
3%bcond_without ocaml # OCaml binding
4%bcond_without ocaml_opt # native optimized binaries
77de2dad 5#
e4bf8d09 6%ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
ce302261
JB
7%undefine with_ocaml_opt
8%endif
9
2d90bb0e 10%define ocaml_ver 1:3.09.3
93d6e47a 11Summary: gdome2 binding for various programming languages
9e5a42db 12Summary(pl.UTF-8): Wiązania gdome2 dla różnych języków programowania
93d6e47a 13Name: gmetadom
29d21f58 14Version: 0.2.6
e4bf8d09 15Release: 15
77de2dad 16License: LGPL v2.1+
93d6e47a 17Group: Libraries
ce302261 18Source0: http://downloads.sourceforge.net/gmetadom/%{name}-%{version}.tar.gz
29d21f58 19# Source0-md5: 7bfb5d9c6f20ffa5e790b63d1f8cb481
3649d139 20Patch0: %{name}-gcc43.patch
8fea5346 21URL: http://gmetadom.sourceforge.net/
29d21f58 22BuildRequires: autoconf >= 2.50
93d6e47a 23BuildRequires: automake
77de2dad 24BuildRequires: gdome2-devel >= 0.8.0
d54bf19d 25BuildRequires: libstdc++-devel
29d21f58 26BuildRequires: libtool >= 2:1.5
d8da3aa2 27%{?with_ocaml:BuildRequires: ocaml >= %{ocaml_ver}}
c3541520 28BuildRequires: pkgconfig
75a37257 29BuildRequires: rpmbuild(macros) >= 1.198
93d6e47a
MM
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33gdome2 binding for various programming languages. gdome2 is a fast,
34light and complete DOM level2 implementation based on libxml2.
35
17519340
JR
36%description -l pl.UTF-8
37Wiązania gdome2 dla różnych języków programowania. gdome2 jest szybką,
38lekką i kompletną implementacją DOM poziom 2 opartą o libxml2.
93d6e47a
MM
39
40%package -n ocaml-gdome2
41Summary: gdome2 binding for OCaml
9e5a42db 42Summary(pl.UTF-8): Wiązania gdome2 dla OCamla
93d6e47a 43Group: Libraries
77de2dad 44Requires: gdome2 >= 0.8.0
93d6e47a
MM
45%requires_eq ocaml-runtime
46
47%description -n ocaml-gdome2
48gdome2 binding for OCaml. gdome2 is a fast, light and complete DOM
49level2 implementation based on libxml2.
50
51This package contains files needed to run bytecode executables using
52this library.
53
17519340
JR
54%description -n ocaml-gdome2 -l pl.UTF-8
55Wiązania gdome2 dla OCamla. gdome2 jest szybką, lekką i kompletną
56implementacją DOM poziom 2 opartą o libxml2.
93d6e47a 57
17519340
JR
58Pakiet ten zawiera binaria potrzebne do uruchamiania programów
59używających tej biblioteki.
93d6e47a
MM
60
61%package -n ocaml-gdome2-devel
62Summary: gdome2 binding for OCaml - development part
9e5a42db 63Summary(pl.UTF-8): Wiązania gdome2 dla OCamla - cześć programistyczna
93d6e47a
MM
64Group: Development/Libraries
65Requires: %{name} = %{version}-%{release}
66Requires: ocaml-gdome2 = %{version}-%{release}
67%requires_eq ocaml
68
69%description -n ocaml-gdome2-devel
70gdome2 binding for OCaml. gdome2 is a fast, light and complete DOM
71level2 implementation based on libxml2.
72
73This package contains files needed to develop OCaml programs using
74this library.
75
17519340
JR
76%description -n ocaml-gdome2-devel -l pl.UTF-8
77Wiązania gdome2 dla OCamla. gdome2 jest szybką, lekką i kompletną
78implementacją DOM poziom 2 opartą o libxml2.
93d6e47a 79
17519340 80Pakiet ten zawiera pliki niezbędne do tworzenia programów używających
93d6e47a
MM
81tej biblioteki.
82
83%package -n gdome2-cpp_smart
84Summary: gdome2 binding for C++/smart pointers
9e5a42db 85Summary(pl.UTF-8): Wiązania gdome2 dla C++/mądre wskaźniki
93d6e47a 86Group: Libraries
77de2dad 87Requires: gdome2 >= 0.8.0
93d6e47a
MM
88
89%description -n gdome2-cpp_smart
90gdome2 binding for C++ with smart pointers. gdome2 is a fast, light
91and complete DOM level2 implementation based on libxml2.
92
17519340
JR
93%description -n gdome2-cpp_smart -l pl.UTF-8
94Wiązania gdome2 dla C++ z mądrymi wskaźnikami. gdome2 jest szybką,
95lekką i kompletną implementacją DOM poziom 2 opartą o libxml2.
93d6e47a
MM
96
97%package -n gdome2-cpp_smart-devel
98Summary: gdome2 binding for C++/smart pointers - development part
9e5a42db 99Summary(pl.UTF-8): Wiązania gdome2 dla C++/mądre wskaźniki - cześć programistyczna
93d6e47a 100Group: Development/Libraries
93d6e47a
MM
101Requires: %{name} = %{version}-%{release}
102Requires: gdome2-cpp_smart = %{version}-%{release}
77de2dad
JB
103Requires: gdome2-devel >= 0.8.0
104Requires: libstdc++-devel
93d6e47a
MM
105
106%description -n gdome2-cpp_smart-devel
107gdome2 binding for C++ with smart pointers. gdome2 is a fast, light
108and complete DOM level2 implementation based on libxml2.
109
110This package contains header files needed to develop programs using
111gdome2-cpp_smart.
112
17519340
JR
113%description -n gdome2-cpp_smart-devel -l pl.UTF-8
114Wiązania gdome2 dla C++ z mądrymi wskaźnikami. gdome2 jest szybką,
115lekką i kompletną implementacją DOM poziom 2 opartą o libxml2.
93d6e47a 116
17519340
JR
117Pakiet ten zawiera pliki nagłówkowe niezbędne do rozwijania programów
118korzystających z gdome2-cpp_smart.
93d6e47a
MM
119
120%package -n gdome2-cpp_smart-static
121Summary: gdome2 binding for C++/smart pointers - static libraries
9e5a42db 122Summary(pl.UTF-8): Wiązania gdome2 dla C++/mądre wskaźniki - biblioteki statyczne
93d6e47a
MM
123Group: Development/Libraries
124Requires: gdome2-cpp_smart-devel = %{version}-%{release}
125
126%description -n gdome2-cpp_smart-static
127gdome2 binding for C++ with smart pointers. gdome2 is a fast, light
128and complete DOM level2 implementation based on libxml2.
129
130This package contains static libraries needed to develop programs
131using gdome2-cpp_smart.
132
17519340
JR
133%description -n gdome2-cpp_smart-static -l pl.UTF-8
134Wiązania gdome2 dla C++ z mądrymi wskaźnikami. gdome2 jest szybką,
135lekką i kompletną implementacją DOM poziom 2 opartą o libxml2.
93d6e47a 136
17519340
JR
137Pakiet ten zawiera statyczne biblioteki niezbędne do rozwijania
138programów korzystających z gdome2-cpp_smart.
93d6e47a
MM
139
140%prep
e8a79c0e 141%setup -q
3649d139 142%patch0 -p1
7a8fb975 143
29d21f58 144# clean up CVS dirs in xml tree
93d6e47a
MM
145find -name CVS | xargs rm -rf
146
147%build
40953aa6 148%{__libtoolize}
87a3df2a 149%{__aclocal}
ee668d55 150%{__autoconf}
c1ba6d99 151%{__automake}
93d6e47a 152
d54bf19d 153%configure \
77de2dad 154 --with-modules="gdome_cpp_smart%{?with_ocaml: gdome_caml}"
93d6e47a 155
d8da3aa2 156%{__make} -j1
93d6e47a
MM
157
158%install
159rm -rf $RPM_BUILD_ROOT
160
8fea5346
JB
161%{__make} install \
162 DESTDIR=$RPM_BUILD_ROOT
93d6e47a 163
77de2dad
JB
164install -d $RPM_BUILD_ROOT%{_examplesdir}/ocaml-gdome2-%{version}
165install src/gdome_caml/examples/*.ml $RPM_BUILD_ROOT%{_examplesdir}/ocaml-gdome2-%{version}
166
e4bf8d09
JB
167# obsoleted by pkg-config
168%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgmetadom_gdome_cpp_smart.la
169
389091e3 170%if %{with ocaml}
ce302261
JB
171# .mli packaged as %doc
172%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/gdome2/*.{ml,mli}
173# findlib-specific file, useless with rpm
174%{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllmlgdome.so.owner
389091e3 175%endif
29d21f58 176
93d6e47a
MM
177%clean
178rm -rf $RPM_BUILD_ROOT
179
77de2dad
JB
180%post -n gdome2-cpp_smart -p /sbin/ldconfig
181%postun -n gdome2-cpp_smart -p /sbin/ldconfig
1b616f18 182
93d6e47a
MM
183%files
184%defattr(644,root,root,755)
185%doc xml/DOM/* AUTHORS ChangeLog HISTORY LICENSE
93d6e47a
MM
186%dir %{_includedir}/gmetadom
187
77de2dad
JB
188%if %{with ocaml}
189%files -n ocaml-gdome2
190%defattr(644,root,root,755)
191%dir %{_libdir}/ocaml/gdome2
192%attr(755,root,root) %{_libdir}/ocaml/stublibs/dllmlgdome.so
77de2dad
JB
193
194%files -n ocaml-gdome2-devel
195%defattr(644,root,root,755)
196%doc src/gdome_caml/ocaml/gdome.mli
73f1371a 197%{_libdir}/ocaml/gdome2/META
ce302261
JB
198%{_libdir}/ocaml/gdome2/*.cmi
199%{_libdir}/ocaml/gdome2/gdomeInit.cmo
200%{_libdir}/ocaml/gdome2/mlgdomevalue.h
201%{_libdir}/ocaml/gdome2/mlgdome.cma
202%{_libdir}/ocaml/gdome2/mlogdome.cma
203%if %{with ocaml_opt}
204%{_libdir}/ocaml/gdome2/gdomeInit.cmx
205%{_libdir}/ocaml/gdome2/gdomeInit.o
206%{_libdir}/ocaml/gdome2/mlgdome.a
207%{_libdir}/ocaml/gdome2/mlgdome.cmxa
208%{_libdir}/ocaml/gdome2/mlogdome.a
209%{_libdir}/ocaml/gdome2/mlogdome.cmxa
210%endif
211%{_libdir}/ocaml/gdome2/libmlgdome.a
77de2dad
JB
212%{_examplesdir}/ocaml-gdome2-%{version}
213%endif
93d6e47a
MM
214
215%files -n gdome2-cpp_smart
216%defattr(644,root,root,755)
77de2dad 217%attr(755,root,root) %{_libdir}/libgmetadom_gdome_cpp_smart.so.*.*.*
29d21f58 218%attr(755,root,root) %ghost %{_libdir}/libgmetadom_gdome_cpp_smart.so.0
93d6e47a
MM
219
220%files -n gdome2-cpp_smart-devel
221%defattr(644,root,root,755)
93d6e47a 222%attr(755,root,root) %{_libdir}/libgmetadom_gdome_cpp_smart.so
1b616f18 223%{_includedir}/gmetadom
e8a79c0e 224%{_pkgconfigdir}/gdome2-cpp-smart.pc
93d6e47a
MM
225
226%files -n gdome2-cpp_smart-static
227%defattr(644,root,root,755)
228%{_libdir}/libgmetadom_gdome_cpp_smart.a
This page took 0.138557 seconds and 4 git commands to generate.