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