]>
Commit | Line | Data |
---|---|---|
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 | 11 | Summary: gdome2 binding for various programming languages |
9e5a42db | 12 | Summary(pl.UTF-8): Wiązania gdome2 dla różnych języków programowania |
93d6e47a | 13 | Name: gmetadom |
29d21f58 | 14 | Version: 0.2.6 |
e4bf8d09 | 15 | Release: 15 |
77de2dad | 16 | License: LGPL v2.1+ |
93d6e47a | 17 | Group: Libraries |
ce302261 | 18 | Source0: http://downloads.sourceforge.net/gmetadom/%{name}-%{version}.tar.gz |
29d21f58 | 19 | # Source0-md5: 7bfb5d9c6f20ffa5e790b63d1f8cb481 |
3649d139 | 20 | Patch0: %{name}-gcc43.patch |
8fea5346 | 21 | URL: http://gmetadom.sourceforge.net/ |
29d21f58 | 22 | BuildRequires: autoconf >= 2.50 |
93d6e47a | 23 | BuildRequires: automake |
77de2dad | 24 | BuildRequires: gdome2-devel >= 0.8.0 |
d54bf19d | 25 | BuildRequires: libstdc++-devel |
29d21f58 | 26 | BuildRequires: libtool >= 2:1.5 |
d8da3aa2 | 27 | %{?with_ocaml:BuildRequires: ocaml >= %{ocaml_ver}} |
c3541520 | 28 | BuildRequires: pkgconfig |
75a37257 | 29 | BuildRequires: rpmbuild(macros) >= 1.198 |
93d6e47a MM |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | gdome2 binding for various programming languages. gdome2 is a fast, | |
34 | light and complete DOM level2 implementation based on libxml2. | |
35 | ||
17519340 JR |
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. | |
93d6e47a MM |
39 | |
40 | %package -n ocaml-gdome2 | |
41 | Summary: gdome2 binding for OCaml | |
9e5a42db | 42 | Summary(pl.UTF-8): Wiązania gdome2 dla OCamla |
93d6e47a | 43 | Group: Libraries |
77de2dad | 44 | Requires: gdome2 >= 0.8.0 |
93d6e47a MM |
45 | %requires_eq ocaml-runtime |
46 | ||
47 | %description -n ocaml-gdome2 | |
48 | gdome2 binding for OCaml. gdome2 is a fast, light and complete DOM | |
49 | level2 implementation based on libxml2. | |
50 | ||
51 | This package contains files needed to run bytecode executables using | |
52 | this library. | |
53 | ||
17519340 JR |
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. | |
93d6e47a | 57 | |
17519340 JR |
58 | Pakiet ten zawiera binaria potrzebne do uruchamiania programów |
59 | używających tej biblioteki. | |
93d6e47a MM |
60 | |
61 | %package -n ocaml-gdome2-devel | |
62 | Summary: gdome2 binding for OCaml - development part | |
9e5a42db | 63 | Summary(pl.UTF-8): Wiązania gdome2 dla OCamla - cześć programistyczna |
93d6e47a MM |
64 | Group: Development/Libraries |
65 | Requires: %{name} = %{version}-%{release} | |
66 | Requires: ocaml-gdome2 = %{version}-%{release} | |
67 | %requires_eq ocaml | |
68 | ||
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. | |
72 | ||
73 | This package contains files needed to develop OCaml programs using | |
74 | this library. | |
75 | ||
17519340 JR |
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. | |
93d6e47a | 79 | |
17519340 | 80 | Pakiet ten zawiera pliki niezbędne do tworzenia programów używających |
93d6e47a MM |
81 | tej biblioteki. |
82 | ||
83 | %package -n gdome2-cpp_smart | |
84 | Summary: gdome2 binding for C++/smart pointers | |
9e5a42db | 85 | Summary(pl.UTF-8): Wiązania gdome2 dla C++/mądre wskaźniki |
93d6e47a | 86 | Group: Libraries |
77de2dad | 87 | Requires: gdome2 >= 0.8.0 |
93d6e47a MM |
88 | |
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. | |
92 | ||
17519340 JR |
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. | |
93d6e47a MM |
96 | |
97 | %package -n gdome2-cpp_smart-devel | |
98 | Summary: gdome2 binding for C++/smart pointers - development part | |
9e5a42db | 99 | Summary(pl.UTF-8): Wiązania gdome2 dla C++/mądre wskaźniki - cześć programistyczna |
93d6e47a | 100 | Group: Development/Libraries |
93d6e47a MM |
101 | Requires: %{name} = %{version}-%{release} |
102 | Requires: gdome2-cpp_smart = %{version}-%{release} | |
77de2dad JB |
103 | Requires: gdome2-devel >= 0.8.0 |
104 | Requires: libstdc++-devel | |
93d6e47a MM |
105 | |
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. | |
109 | ||
110 | This package contains header files needed to develop programs using | |
111 | gdome2-cpp_smart. | |
112 | ||
17519340 JR |
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. | |
93d6e47a | 116 | |
17519340 JR |
117 | Pakiet ten zawiera pliki nagłówkowe niezbędne do rozwijania programów |
118 | korzystających z gdome2-cpp_smart. | |
93d6e47a MM |
119 | |
120 | %package -n gdome2-cpp_smart-static | |
121 | Summary: gdome2 binding for C++/smart pointers - static libraries | |
9e5a42db | 122 | Summary(pl.UTF-8): Wiązania gdome2 dla C++/mądre wskaźniki - biblioteki statyczne |
93d6e47a MM |
123 | Group: Development/Libraries |
124 | Requires: gdome2-cpp_smart-devel = %{version}-%{release} | |
125 | ||
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. | |
129 | ||
130 | This package contains static libraries needed to develop programs | |
131 | using gdome2-cpp_smart. | |
132 | ||
17519340 JR |
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. | |
93d6e47a | 136 | |
17519340 JR |
137 | Pakiet ten zawiera statyczne biblioteki niezbędne do rozwijania |
138 | programó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 |
145 | find -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 | |
159 | rm -rf $RPM_BUILD_ROOT | |
160 | ||
8fea5346 JB |
161 | %{__make} install \ |
162 | DESTDIR=$RPM_BUILD_ROOT | |
93d6e47a | 163 | |
77de2dad JB |
164 | install -d $RPM_BUILD_ROOT%{_examplesdir}/ocaml-gdome2-%{version} |
165 | install 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 |
178 | rm -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 |