2 # - install+package csharp bindings
5 %bcond_without java # Java/JNI bindings
6 %bcond_with mono # .NET/C# bindings
8 Summary: A cross-platform chemistry program and library designed to convert file formats
9 Summary(pl.UTF-8): Międzyplatformowy program chemiczny i biblioteka do konwersji formatów plików
15 Source0: http://downloads.sourceforge.net/openbabel/%{name}-%{version}.tar.gz
16 # Source0-md5: 9b0007560d9d838b40ab4ad06daf5610
17 Patch0: %{name}-prefix.patch
18 Patch1: ruby-gcc-no-option.patch
19 Patch2: cmake-fix.patch
20 Patch3: python-build.patch
21 URL: http://openbabel.sourceforge.net/
22 BuildRequires: cairo-devel
23 BuildRequires: cmake >= 2.6.0
24 BuildRequires: eigen3 >= 3
25 BuildRequires: inchi-devel >= 1.0.3
26 %{?with_java:BuildRequires: jdk}
27 BuildRequires: libstdc++-devel
28 BuildRequires: libxml2-devel >= 2.6.5
29 %{?with_mono:BuildRequires: mono-csharp}
30 BuildRequires: perl-devel
31 BuildRequires: rpm-perlprov
32 BuildRequires: rpm-pythonprov
33 BuildRequires: rpmbuild(macros) >= 1.577
34 BuildRequires: ruby-devel
35 BuildRequires: swig >= 2.0
36 BuildRequires: wxGTK2-devel
37 BuildRequires: zlib-devel
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Open Babel is a project designed to pick up where Babel left off, as a
42 cross-platform program and library designed to interconvert between
43 many file formats used in molecular modeling and computational
46 %description -l pl.UTF-8
47 Open Babel to projekt mający pozbierać to, co zostało po zaniechaniu
48 projektu Babel, jako międzyplatformowy program i biblioteka służące do
49 konwersji między wieloma formatami używanymi w modelowaniu cząsteczek
50 i chemii obliczeniowej.
53 Summary: Header files for OpenBabel
54 Summary(pl.UTF-8): Pliki nagłówkowe dla OpenBabel
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
57 Requires: libstdc++-devel
59 Obsoletes: openbabel-static
62 Header files for OpenBabel.
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe dla OpenBabel.
68 Summary: OpenBabel GUI
69 Summary(pl.UTF-8): Graficzny interfejs użytkownika OpenBabel
70 Group: X11/Applications/Science
71 Requires: %{name} = %{version}-%{release}
74 Graphical User Interface for OpenBabel.
76 %description gui -l pl.UTF-8
77 Graficzny interfejs użytkownika OpenBabel.
79 %package -n java-openbabel
80 Summary: Java binding for OpenBabel
81 Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenBabel
84 %description -n java-openbabel
85 Java binding for OpenBabel.
87 %description -n java-openbabel -l pl.UTF-8
88 Wiązanie Javy do biblioteki OpenBabel.
90 %package -n perl-Chemistry-OpenBabel
91 Summary: Perl binding for OpenBabel
92 Summary(pl.UTF-8): Wiązanie Perla do biblioteki OpenBabel
93 Group: Development/Languages/Perl
94 Requires: %{name} = %{version}-%{release}
96 %description -n perl-Chemistry-OpenBabel
97 Perl binding for OpenBabel.
99 %description -n perl-Chemistry-OpenBabel -l pl.UTF-8
100 Wiązanie Perla do biblioteki OpenBabel.
102 %package -n python-openbabel
103 Summary: Python binding for OpenBabel
104 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenBabel
105 Group: Libraries/Python
106 Requires: %{name} = %{version}-%{release}
108 %description -n python-openbabel
109 Python binding for OpenBabel.
111 %description -n python-openbabel -l pl.UTF-8
112 Wiązanie Pythona do biblioteki OpenBabel.
114 %package -n ruby-openbabel
115 Summary: Ruby binding for OpenBabel
116 Summary(pl.UTF-8): Wiązanie języka Ruby do biblioteki OpenBabel
117 Group: Development/Languages
118 Requires: %{name} = %{version}-%{release}
120 %description -n ruby-openbabel
121 Ruby binding for OpenBabel.
123 %description -n ruby-openbabel -l pl.UTF-8
124 Wiązanie języka Ruby do biblioteki OpenBabel.
135 %{?with_mono:-DCSHARP_BINDINGS=ON} \
136 -DCSHARP_EXECUTABLE=/usr/bin/mcs \
137 -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
138 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
139 %{?with_java:-DJAVA_BINDINGS=ON} \
140 -DOBPERL_INSTALLDIRS="vendor" \
142 -DPYTHON_BINDINGS=ON \
144 -DOPENBABEL_USE_SYSTEM_INCHI=true \
145 -DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-gtk2-unicode-config
149 rm -rf $RPM_BUILD_ROOT
152 RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_vendorarchdir} \
153 DESTDIR=$RPM_BUILD_ROOT
155 %{__mv} $RPM_BUILD_ROOT%{_libdir}/*.py $RPM_BUILD_ROOT%{py_sitedir}
157 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
158 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
162 install -d $RPM_BUILD_ROOT%{_javadir}
163 %{__mv} $RPM_BUILD_ROOT%{_libdir}/*.jar $RPM_BUILD_ROOT%{_javadir}
167 rm -rf $RPM_BUILD_ROOT
169 %post -p /sbin/ldconfig
170 %postun -p /sbin/ldconfig
173 %defattr(644,root,root,755)
174 %doc AUTHORS ChangeLog README THANKS doc/*.html
175 %attr(755,root,root) %{_bindir}/babel
176 %attr(755,root,root) %{_bindir}/obabel
177 %attr(755,root,root) %{_bindir}/obchiral
178 %attr(755,root,root) %{_bindir}/obconformer
179 %attr(755,root,root) %{_bindir}/obenergy
180 %attr(755,root,root) %{_bindir}/obfit
181 %attr(755,root,root) %{_bindir}/obgen
182 %attr(755,root,root) %{_bindir}/obgrep
183 %attr(755,root,root) %{_bindir}/obminimize
184 %attr(755,root,root) %{_bindir}/obprobe
185 %attr(755,root,root) %{_bindir}/obprop
186 %attr(755,root,root) %{_bindir}/obrms
187 %attr(755,root,root) %{_bindir}/obrotamer
188 %attr(755,root,root) %{_bindir}/obrotate
189 %attr(755,root,root) %{_bindir}/obspectrophore
190 %attr(755,root,root) %{_bindir}/roundtrip
191 %attr(755,root,root) %{_libdir}/libinchi.so.*.*.*
192 %attr(755,root,root) %ghost %{_libdir}/libinchi.so.0
193 %attr(755,root,root) %{_libdir}/libopenbabel.so.*.*.*
194 %attr(755,root,root) %ghost %{_libdir}/libopenbabel.so.4
195 %dir %{_libdir}/openbabel
196 %dir %{_libdir}/openbabel/%{version}
197 %attr(755,root,root) %{_libdir}/openbabel/%{version}/*.so
198 %{_datadir}/openbabel
199 %{_mandir}/man1/babel.1*
200 %{_mandir}/man1/obabel.1*
201 %{_mandir}/man1/obchiral.1*
202 %{_mandir}/man1/obconformer.1*
203 %{_mandir}/man1/obenergy.1*
204 %{_mandir}/man1/obfit.1*
205 %{_mandir}/man1/obgen.1*
206 %{_mandir}/man1/obgrep.1*
207 %{_mandir}/man1/obminimize.1*
208 %{_mandir}/man1/obprobe.1*
209 %{_mandir}/man1/obprop.1*
210 %{_mandir}/man1/obrotamer.1*
211 %{_mandir}/man1/obrotate.1*
212 %{_mandir}/man1/obspectrophore.1*
213 %{_mandir}/man1/roundtrip.1*
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{_libdir}/libinchi.so
218 %attr(755,root,root) %{_libdir}/libopenbabel.so
220 %{_includedir}/openbabel-2.0
221 %{_pkgconfigdir}/openbabel-2.0.pc
222 %{_libdir}/cmake/openbabel2
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_bindir}/obgui
227 %{_mandir}/man1/obgui.1*
230 %files -n java-openbabel
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_libdir}/libopenbabel_java.so
233 %{_javadir}/openbabel.jar
236 %files -n perl-Chemistry-OpenBabel
237 %defattr(644,root,root,755)
238 %{perl_vendorarch}/Chemistry/OpenBabel.pm
239 %dir %{perl_vendorarch}/auto/Chemistry/OpenBabel
240 %{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.bs
241 %attr(755,root,root) %{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.so
243 %files -n python-openbabel
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{py_sitedir}/_openbabel.so
246 %{py_sitedir}/openbabel.py[co]
247 %{py_sitedir}/pybel.py[co]
248 %{py_sitedir}/openbabel-1.7-py*.egg-info
250 %files -n ruby-openbabel
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{ruby_vendorarchdir}/openbabel.so