]> git.pld-linux.org Git - packages/openbabel.git/blame - openbabel.spec
- rebuild with gtk3 and wxWidgets 3.2, rel 12
[packages/openbabel.git] / openbabel.spec
CommitLineData
4afabe56 1# TODO:
affae55c 2# - install+package csharp bindings
bb45edba
JB
3#
4# Conditional build:
e117d02d 5%bcond_with java # Java/JNI bindings
affae55c 6%bcond_with mono # .NET/C# bindings
bb45edba 7#
06c68e42 8%define gitver openbabel-2-4-1
a5af8661 9Summary: A cross-platform chemistry program and library designed to convert file formats
1d4e449f 10Summary(pl.UTF-8): Międzyplatformowy program chemiczny i biblioteka do konwersji formatów plików
a5af8661 11Name: openbabel
06c68e42 12Version: 2.4.1
15b879f6 13Release: 12
a5af8661 14License: GPL v2
0424b5cd 15Group: Libraries
932da6d4 16#Source0Download: https://github.com/openbabel/openbabel/releases
06c68e42
JR
17Source0: https://github.com/openbabel/openbabel/archive/%{gitver}/%{name}-%{version}.tar.gz
18# Source0-md5: c0e0aefeef0f9f2bb2c78109d65c30a5
674189f4 19Patch0: %{name}-prefix.patch
b6a15389
JR
20Patch1: perl-x32.patch
21Patch2: perl-install.patch
22Patch3: ruby-install.patch
06c68e42 23Patch4: gcc6.patch
b6a15389 24Patch5: plugindir.patch
02c53f12 25Patch6: cmake.patch
6f5eb7df 26Patch7: gcc12.patch
932da6d4 27URL: http://openbabel.org/
674189f4 28BuildRequires: cairo-devel
eebeb7a7 29BuildRequires: cmake >= 2.6.0
bb45edba 30BuildRequires: eigen3 >= 3
61ea2b64 31BuildRequires: inchi-devel >= 1.0.3
bb45edba 32%{?with_java:BuildRequires: jdk}
7de8135f 33BuildRequires: libstdc++-devel
e32ffdba 34BuildRequires: libxml2-devel >= 1:2.6.5
bb45edba 35%{?with_mono:BuildRequires: mono-csharp}
4afabe56 36BuildRequires: perl-devel
957595f3
JP
37BuildRequires: python
38BuildRequires: python-modules
f3fb0901
JB
39BuildRequires: rpm-perlprov
40BuildRequires: rpm-pythonprov
a1a79d1f 41BuildRequires: rpmbuild(macros) >= 1.605
674189f4 42BuildRequires: ruby-devel
bb45edba 43BuildRequires: swig >= 2.0
15b879f6 44BuildRequires: wxGTK3-unicode-devel
e5243e3e 45BuildRequires: zlib-devel
8cdbb1ee 46Requires: inchi-libs >= 1.0.3
a5af8661
PG
47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
a5af8661
PG
49%description
50Open Babel is a project designed to pick up where Babel left off, as a
51cross-platform program and library designed to interconvert between
52many file formats used in molecular modeling and computational
53chemistry.
54
3796afb4
JR
55%description -l pl.UTF-8
56Open Babel to projekt mający pozbierać to, co zostało po zaniechaniu
57projektu Babel, jako międzyplatformowy program i biblioteka służące do
58konwersji między wieloma formatami używanymi w modelowaniu cząsteczek
a92c668a
JB
59i chemii obliczeniowej.
60
a0f4d9b2
PG
61%package devel
62Summary: Header files for OpenBabel
1d4e449f 63Summary(pl.UTF-8): Pliki nagłówkowe dla OpenBabel
0424b5cd 64Group: Development/Libraries
bf4a610f 65Requires: %{name} = %{version}-%{release}
4e28c439 66Requires: libstdc++-devel
e5243e3e 67Requires: zlib-devel
4afabe56 68Obsoletes: openbabel-static
a0f4d9b2
PG
69
70%description devel
71Header files for OpenBabel.
72
3796afb4
JR
73%description devel -l pl.UTF-8
74Pliki nagłówkowe dla OpenBabel.
a0f4d9b2 75
da41280c
JB
76%package gui
77Summary: OpenBabel GUI
78Summary(pl.UTF-8): Graficzny interfejs użytkownika OpenBabel
79Group: X11/Applications/Science
80Requires: %{name} = %{version}-%{release}
81
82%description gui
83Graphical User Interface for OpenBabel.
84
85%description gui -l pl.UTF-8
86Graficzny interfejs użytkownika OpenBabel.
87
bb45edba
JB
88%package -n java-openbabel
89Summary: Java binding for OpenBabel
90Summary(pl.UTF-8): Wiązanie Javy do biblioteki OpenBabel
91Group: Libraries/Java
92
93%description -n java-openbabel
94Java binding for OpenBabel.
95
96%description -n java-openbabel -l pl.UTF-8
97Wiązanie Javy do biblioteki OpenBabel.
98
66b3f4a0
JB
99%package -n perl-Chemistry-OpenBabel
100Summary: Perl binding for OpenBabel
101Summary(pl.UTF-8): Wiązanie Perla do biblioteki OpenBabel
102Group: Development/Languages/Perl
103Requires: %{name} = %{version}-%{release}
104
105%description -n perl-Chemistry-OpenBabel
106Perl binding for OpenBabel.
107
108%description -n perl-Chemistry-OpenBabel -l pl.UTF-8
109Wiązanie Perla do biblioteki OpenBabel.
110
f3fb0901
JB
111%package -n python-openbabel
112Summary: Python binding for OpenBabel
113Summary(pl.UTF-8): Wiązanie Pythona do biblioteki OpenBabel
114Group: Libraries/Python
115Requires: %{name} = %{version}-%{release}
116
117%description -n python-openbabel
118Python binding for OpenBabel.
119
120%description -n python-openbabel -l pl.UTF-8
121Wiązanie Pythona do biblioteki OpenBabel.
122
674189f4
JB
123%package -n ruby-openbabel
124Summary: Ruby binding for OpenBabel
125Summary(pl.UTF-8): Wiązanie języka Ruby do biblioteki OpenBabel
126Group: Development/Languages
127Requires: %{name} = %{version}-%{release}
128
129%description -n ruby-openbabel
130Ruby binding for OpenBabel.
131
132%description -n ruby-openbabel -l pl.UTF-8
133Wiązanie języka Ruby do biblioteki OpenBabel.
134
a5af8661 135%prep
932da6d4 136%setup -q -n %{name}-%{gitver}
4afabe56 137%patch0 -p1
20f7e0a0 138%patch1 -p1
0f986b5a 139%patch2 -p1
b6a15389 140%patch3 -p1
5bcb70dc
WF
141%patch4 -p1
142%patch5 -p1
02c53f12 143%patch6 -p1
6f5eb7df 144%patch7 -p1
a5af8661
PG
145
146%build
4afabe56 147%cmake . \
8cdbb1ee
JB
148 -DBIN_INSTALL_DIR=%{_bindir} \
149 -DLIB_INSTALL_DIR=%{_lib} \
bb45edba 150 %{?with_mono:-DCSHARP_BINDINGS=ON} \
da41280c 151 -DCSHARP_EXECUTABLE=/usr/bin/mcs \
f3fb0901 152 -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
4afabe56 153 -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
bb45edba 154 %{?with_java:-DJAVA_BINDINGS=ON} \
674189f4 155 -DOBPERL_INSTALLDIRS="vendor" \
bb45edba
JB
156 -DPERL_BINDINGS=ON \
157 -DPYTHON_BINDINGS=ON \
158 -DRUBY_BINDINGS=ON \
b6a15389 159 -DRUN_SWIG=ON \
8cdbb1ee 160 -DOPENBABEL_USE_SYSTEM_INCHI=ON \
15b879f6 161 -DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-gtk3-unicode-config \
b6a15389
JR
162 -DPERLLIB_INSTALL_DIR=%{perl_vendorarch} \
163 -DRUBYLIB_INSTALL_DIR=%{ruby_vendorarchdir}
a5af8661 164%{__make}
a5af8661
PG
165
166%install
167rm -rf $RPM_BUILD_ROOT
5bcb70dc 168install -d $RPM_BUILD_ROOT%{py_sitedir}
a5af8661
PG
169
170%{__make} install \
20f7e0a0 171 RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_vendorarchdir} \
a5af8661
PG
172 DESTDIR=$RPM_BUILD_ROOT
173
0f986b5a
JR
174%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
175%py_comp $RPM_BUILD_ROOT%{py_sitedir}
f3fb0901
JB
176%py_postclean
177
bb45edba
JB
178%if %{with java}
179install -d $RPM_BUILD_ROOT%{_javadir}
180%{__mv} $RPM_BUILD_ROOT%{_libdir}/*.jar $RPM_BUILD_ROOT%{_javadir}
181%endif
182
a5af8661
PG
183%clean
184rm -rf $RPM_BUILD_ROOT
185
7de8135f
JB
186%post -p /sbin/ldconfig
187%postun -p /sbin/ldconfig
188
a5af8661
PG
189%files
190%defattr(644,root,root,755)
b6a15389 191%doc AUTHORS README.md THANKS doc/*.html
4afabe56
JB
192%attr(755,root,root) %{_bindir}/babel
193%attr(755,root,root) %{_bindir}/obabel
194%attr(755,root,root) %{_bindir}/obchiral
195%attr(755,root,root) %{_bindir}/obconformer
b6a15389 196%attr(755,root,root) %{_bindir}/obdistgen
4afabe56
JB
197%attr(755,root,root) %{_bindir}/obenergy
198%attr(755,root,root) %{_bindir}/obfit
199%attr(755,root,root) %{_bindir}/obgen
200%attr(755,root,root) %{_bindir}/obgrep
201%attr(755,root,root) %{_bindir}/obminimize
202%attr(755,root,root) %{_bindir}/obprobe
203%attr(755,root,root) %{_bindir}/obprop
bb45edba 204%attr(755,root,root) %{_bindir}/obrms
4afabe56
JB
205%attr(755,root,root) %{_bindir}/obrotamer
206%attr(755,root,root) %{_bindir}/obrotate
207%attr(755,root,root) %{_bindir}/obspectrophore
b6a15389
JR
208%attr(755,root,root) %{_bindir}/obsym
209%attr(755,root,root) %{_bindir}/obtautomer
210%attr(755,root,root) %{_bindir}/obthermo
4afabe56 211%attr(755,root,root) %{_bindir}/roundtrip
9098769f 212%attr(755,root,root) %{_libdir}/libopenbabel.so.*.*.*
06c68e42 213%attr(755,root,root) %ghost %{_libdir}/libopenbabel.so.5
e3204b8e 214%dir %{_libdir}/openbabel
4afabe56
JB
215%dir %{_libdir}/openbabel/%{version}
216%attr(755,root,root) %{_libdir}/openbabel/%{version}/*.so
9098769f 217%{_datadir}/openbabel
4afabe56 218%{_mandir}/man1/babel.1*
674189f4 219%{_mandir}/man1/obabel.1*
4afabe56
JB
220%{_mandir}/man1/obchiral.1*
221%{_mandir}/man1/obconformer.1*
222%{_mandir}/man1/obenergy.1*
223%{_mandir}/man1/obfit.1*
224%{_mandir}/man1/obgen.1*
225%{_mandir}/man1/obgrep.1*
226%{_mandir}/man1/obminimize.1*
227%{_mandir}/man1/obprobe.1*
228%{_mandir}/man1/obprop.1*
229%{_mandir}/man1/obrotamer.1*
230%{_mandir}/man1/obrotate.1*
0f986b5a 231%{_mandir}/man1/obspectrophore.1*
4afabe56 232%{_mandir}/man1/roundtrip.1*
a0f4d9b2
PG
233
234%files devel
235%defattr(644,root,root,755)
7de8135f 236%attr(755,root,root) %{_libdir}/libopenbabel.so
057245c1 237%{_includedir}/openbabel-2.0
4afabe56 238%{_pkgconfigdir}/openbabel-2.0.pc
674189f4 239%{_libdir}/cmake/openbabel2
7de8135f 240
da41280c
JB
241%files gui
242%defattr(644,root,root,755)
674189f4 243%attr(755,root,root) %{_bindir}/obgui
0f986b5a 244%{_mandir}/man1/obgui.1*
da41280c 245
bb45edba
JB
246%if %{with java}
247%files -n java-openbabel
248%defattr(644,root,root,755)
249%attr(755,root,root) %{_libdir}/libopenbabel_java.so
250%{_javadir}/openbabel.jar
251%endif
252
4afabe56 253%files -n perl-Chemistry-OpenBabel
8945cb5d 254%defattr(644,root,root,755)
4afabe56
JB
255%{perl_vendorarch}/Chemistry/OpenBabel.pm
256%dir %{perl_vendorarch}/auto/Chemistry/OpenBabel
4afabe56 257%attr(755,root,root) %{perl_vendorarch}/auto/Chemistry/OpenBabel/OpenBabel.so
f3fb0901
JB
258
259%files -n python-openbabel
260%defattr(644,root,root,755)
261%attr(755,root,root) %{py_sitedir}/_openbabel.so
262%{py_sitedir}/openbabel.py[co]
b745b2cd 263%{py_sitedir}/pybel.py[co]
b6a15389 264#%{py_sitedir}/openbabel-1.7-py*.egg-info
674189f4
JB
265
266%files -n ruby-openbabel
267%defattr(644,root,root,755)
20f7e0a0 268%attr(755,root,root) %{ruby_vendorarchdir}/openbabel.so
This page took 0.209641 seconds and 4 git commands to generate.