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