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 Requires: inchi-libs >= 1.0.3
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Open Babel is a project designed to pick up where Babel left off, as a
43 cross-platform program and library designed to interconvert between
44 many file formats used in molecular modeling and computational
47 %description -l pl.UTF-8
48 Open Babel to projekt mający pozbierać to, co zostało po zaniechaniu
49 projektu Babel, jako międzyplatformowy program i biblioteka służące do
50 konwersji między wieloma formatami używanymi w modelowaniu cząsteczek
51 i chemii obliczeniowej.
54 Summary: Header files for OpenBabel
55 Summary(pl.UTF-8): Pliki nagłówkowe dla OpenBabel
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
58 Requires: libstdc++-devel
60 Obsoletes: openbabel-static
63 Header files for OpenBabel.
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe dla OpenBabel.
69 Summary: OpenBabel GUI
70 Summary(pl.UTF-8): Graficzny interfejs użytkownika OpenBabel
71 Group: X11/Applications/Science
72 Requires: %{name} = %{version}-%{release}
75 Graphical User Interface for OpenBabel.
77 %description gui -l pl.UTF-8
78 Graficzny interfejs użytkownika OpenBabel.
80 %package -n java-openbabel
81 Summary: Java binding for OpenBabel
82 Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenBabel
85 %description -n java-openbabel
86 Java binding for OpenBabel.
88 %description -n java-openbabel -l pl.UTF-8
89 Wiązanie Javy do biblioteki OpenBabel.
91 %package -n perl-Chemistry-OpenBabel
92 Summary: Perl binding for OpenBabel
93 Summary(pl.UTF-8): Wiązanie Perla do biblioteki OpenBabel
94 Group: Development/Languages/Perl
95 Requires: %{name} = %{version}-%{release}
97 %description -n perl-Chemistry-OpenBabel
98 Perl binding for OpenBabel.
100 %description -n perl-Chemistry-OpenBabel -l pl.UTF-8
101 Wiązanie Perla do biblioteki OpenBabel.
103 %package -n python-openbabel
104 Summary: Python binding for OpenBabel
105 Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenBabel
106 Group: Libraries/Python
107 Requires: %{name} = %{version}-%{release}
109 %description -n python-openbabel
110 Python binding for OpenBabel.
112 %description -n python-openbabel -l pl.UTF-8
113 Wiązanie Pythona do biblioteki OpenBabel.
115 %package -n ruby-openbabel
116 Summary: Ruby binding for OpenBabel
117 Summary(pl.UTF-8): Wiązanie języka Ruby do biblioteki OpenBabel
118 Group: Development/Languages
119 Requires: %{name} = %{version}-%{release}
121 %description -n ruby-openbabel
122 Ruby binding for OpenBabel.
124 %description -n ruby-openbabel -l pl.UTF-8
125 Wiązanie języka Ruby do biblioteki OpenBabel.
136 -DBIN_INSTALL_DIR=%{_bindir} \
137 -DLIB_INSTALL_DIR=%{_lib} \
138 %{?with_mono:-DCSHARP_BINDINGS=ON} \
139 -DCSHARP_EXECUTABLE=/usr/bin/mcs \
140 -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
141 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
142 %{?with_java:-DJAVA_BINDINGS=ON} \
143 -DOBPERL_INSTALLDIRS="vendor" \
145 -DPYTHON_BINDINGS=ON \
147 -DOPENBABEL_USE_SYSTEM_INCHI=ON \
148 -DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-gtk2-unicode-config
152 rm -rf $RPM_BUILD_ROOT
155 RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_vendorarchdir} \
156 DESTDIR=$RPM_BUILD_ROOT
158 %{__mv} $RPM_BUILD_ROOT%{_libdir}/*.py $RPM_BUILD_ROOT%{py_sitedir}
160 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
161 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
165 install -d $RPM_BUILD_ROOT%{_javadir}
166 %{__mv} $RPM_BUILD_ROOT%{_libdir}/*.jar $RPM_BUILD_ROOT%{_javadir}
170 rm -rf $RPM_BUILD_ROOT
172 %post -p /sbin/ldconfig
173 %postun -p /sbin/ldconfig
176 %defattr(644,root,root,755)
177 %doc AUTHORS ChangeLog README THANKS doc/*.html
178 %attr(755,root,root) %{_bindir}/babel
179 %attr(755,root,root) %{_bindir}/obabel
180 %attr(755,root,root) %{_bindir}/obchiral
181 %attr(755,root,root) %{_bindir}/obconformer
182 %attr(755,root,root) %{_bindir}/obenergy
183 %attr(755,root,root) %{_bindir}/obfit
184 %attr(755,root,root) %{_bindir}/obgen
185 %attr(755,root,root) %{_bindir}/obgrep
186 %attr(755,root,root) %{_bindir}/obminimize
187 %attr(755,root,root) %{_bindir}/obprobe
188 %attr(755,root,root) %{_bindir}/obprop
189 %attr(755,root,root) %{_bindir}/obrms
190 %attr(755,root,root) %{_bindir}/obrotamer
191 %attr(755,root,root) %{_bindir}/obrotate
192 %attr(755,root,root) %{_bindir}/obspectrophore
193 %attr(755,root,root) %{_bindir}/roundtrip
194 %attr(755,root,root) %{_libdir}/libopenbabel.so.*.*.*
195 %attr(755,root,root) %ghost %{_libdir}/libopenbabel.so.4
196 %dir %{_libdir}/openbabel
197 %dir %{_libdir}/openbabel/%{version}
198 %attr(755,root,root) %{_libdir}/openbabel/%{version}/*.so
199 %{_datadir}/openbabel
200 %{_mandir}/man1/babel.1*
201 %{_mandir}/man1/obabel.1*
202 %{_mandir}/man1/obchiral.1*
203 %{_mandir}/man1/obconformer.1*
204 %{_mandir}/man1/obenergy.1*
205 %{_mandir}/man1/obfit.1*
206 %{_mandir}/man1/obgen.1*
207 %{_mandir}/man1/obgrep.1*
208 %{_mandir}/man1/obminimize.1*
209 %{_mandir}/man1/obprobe.1*
210 %{_mandir}/man1/obprop.1*
211 %{_mandir}/man1/obrotamer.1*
212 %{_mandir}/man1/obrotate.1*
213 %{_mandir}/man1/obspectrophore.1*
214 %{_mandir}/man1/roundtrip.1*
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/libopenbabel.so
219 %{_includedir}/openbabel-2.0
220 %{_pkgconfigdir}/openbabel-2.0.pc
221 %{_libdir}/cmake/openbabel2
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_bindir}/obgui
226 %{_mandir}/man1/obgui.1*
229 %files -n java-openbabel
230 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_libdir}/libopenbabel_java.so
232 %{_javadir}/openbabel.jar
235 %files -n perl-Chemistry-OpenBabel
236 %defattr(644,root,root,755)
237 %{perl_vendorarch}/Chemistry/OpenBabel.pm
238 %dir %{perl_vendorarch}/auto/Chemistry/OpenBabel
239 %{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.bs
240 %attr(755,root,root) %{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.so
242 %files -n python-openbabel
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{py_sitedir}/_openbabel.so
245 %{py_sitedir}/openbabel.py[co]
246 %{py_sitedir}/pybel.py[co]
247 %{py_sitedir}/openbabel-1.7-py*.egg-info
249 %files -n ruby-openbabel
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{ruby_vendorarchdir}/openbabel.so