2024-01-06 08:09:28 +01:00
|
|
|
%define apiver 3.0
|
2024-01-06 08:09:28 +01:00
|
|
|
%define minver %(echo %version | cut -d. -f 2-)
|
2024-01-06 08:09:28 +01:00
|
|
|
%define gitver %(echo %version | tr . -)
|
2024-01-06 08:09:28 +01:00
|
|
|
Name: openbabel
|
2024-01-06 08:09:28 +01:00
|
|
|
Version: 3.1.1
|
2024-01-06 08:09:29 +01:00
|
|
|
Release: 4mamba
|
2024-01-06 08:09:28 +01:00
|
|
|
Summary: Chemistry file translation program
|
|
|
|
Group: Applications/Educational
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 08:09:29 +01:00
|
|
|
URL: https://sourceforge.net/projects/openbabel/files/
|
2024-01-06 08:09:28 +01:00
|
|
|
Source: https://github.com/openbabel/openbabel.git/openbabel-%{gitver}/openbabel-%{version}.tar.bz2
|
2024-01-06 08:09:28 +01:00
|
|
|
Patch0: openbabel-2.3.2-gcc-6.1.0.patch
|
2024-01-06 08:09:28 +01:00
|
|
|
Patch1: openbabel-3.1.1-fix-libdir-in-pkgconfig.patch
|
2024-01-06 08:09:28 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 08:09:28 +01:00
|
|
|
BuildRequires: libcairo-devel
|
2024-01-06 08:09:28 +01:00
|
|
|
BuildRequires: libcoordgen-devel
|
2024-01-06 08:09:28 +01:00
|
|
|
BuildRequires: libgcc
|
2024-01-06 08:09:28 +01:00
|
|
|
BuildRequires: libmaeparser-devel
|
2024-01-06 08:09:28 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-06 08:09:28 +01:00
|
|
|
BuildRequires: libtirpc-devel
|
|
|
|
BuildRequires: libwxBase-unicode-devel
|
|
|
|
BuildRequires: libwxGTK-unicode-devel
|
2024-01-06 08:09:28 +01:00
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 08:09:29 +01:00
|
|
|
BuildRequires: libcoordgen-devel >= 3.0.0
|
2024-01-06 08:09:28 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
OpenBabel is a project designed to pick up where Babel left off, as a cross-platform program and library designed to interconvert between many file formats used in molecular modeling and computational chemistry.
|
|
|
|
|
2024-01-06 08:09:28 +01:00
|
|
|
%package -n lib%{name}
|
|
|
|
Summary: Shared libraries provided by %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
OpenBabel is a project designed to pick up where Babel left off, as a cross-platform program and library designed to interconvert between many file formats used in molecular modeling and computational chemistry.
|
|
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
2024-01-06 08:09:28 +01:00
|
|
|
Summary: Devel package for %{name}
|
|
|
|
Group: Development/Libraries
|
2024-01-06 08:09:28 +01:00
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Provides: openbabel-devel
|
|
|
|
Obsoletes: openbabel-devel <= 3.1.1-2mamba
|
2024-01-06 08:09:28 +01:00
|
|
|
|
2024-01-06 08:09:28 +01:00
|
|
|
%description -n lib%{name}-devel
|
2024-01-06 08:09:28 +01:00
|
|
|
OpenBabel is a project designed to pick up where Babel left off, as a cross-platform program and library designed to interconvert between many file formats used in molecular modeling and computational chemistry.
|
2024-01-06 08:09:28 +01:00
|
|
|
This package contains static libraries and header files needed for development.
|
2024-01-06 08:09:28 +01:00
|
|
|
|
2024-01-06 08:09:28 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 08:09:28 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 08:09:28 +01:00
|
|
|
#%patch0 -p1
|
2024-01-06 08:09:28 +01:00
|
|
|
%patch1 -p1
|
2024-01-06 08:09:28 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 08:09:28 +01:00
|
|
|
%cmake -d build \
|
2024-01-06 08:09:28 +01:00
|
|
|
-DCMAKE_SHARED_LINKER_FLAGS="-ltirpc" \
|
|
|
|
-DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-config-unicode
|
2024-01-06 08:09:28 +01:00
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
2024-01-06 08:09:28 +01:00
|
|
|
%makeinstall -C build
|
|
|
|
|
|
|
|
# Unable to fix this before build
|
|
|
|
sed -i "s|\${OpenBabel3_INSTALL_PREFIX}/include|/usr/include|" %{buildroot}%{_libdir}/cmake/openbabel3/OpenBabel3Config.cmake
|
|
|
|
sed -i "s|\${OpenBabel3_INSTALL_PREFIX}//usr|/usr|" %{buildroot}%{_libdir}/cmake/openbabel3/OpenBabel3Config.cmake
|
2024-01-06 08:09:28 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
2024-01-06 08:09:28 +01:00
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
2024-01-06 08:09:28 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 08:09:28 +01:00
|
|
|
%{_bindir}/ob*
|
2024-01-06 08:09:28 +01:00
|
|
|
%{_bindir}/roundtrip
|
2024-01-06 08:09:28 +01:00
|
|
|
%{_datadir}/openbabel/*
|
|
|
|
%{_mandir}/man1/ob*.1*
|
|
|
|
%{_mandir}/man1/roundtrip.1*
|
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 08:09:28 +01:00
|
|
|
%{_libdir}/libinchi.so.*
|
|
|
|
%{_libdir}/libopenbabel.so.*
|
2024-01-06 08:09:28 +01:00
|
|
|
%dir %{_libdir}/openbabel
|
|
|
|
%{_libdir}/openbabel/*/*.so
|
2024-01-06 08:09:28 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
2024-01-06 08:09:28 +01:00
|
|
|
%files -n lib%{name}-devel
|
2024-01-06 08:09:28 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 08:09:28 +01:00
|
|
|
%dir %{_includedir}/inchi
|
2024-01-06 08:09:28 +01:00
|
|
|
%{_includedir}/inchi/inchi_api.h
|
2024-01-06 08:09:28 +01:00
|
|
|
%dir %{_includedir}/openbabel3
|
|
|
|
%dir %{_includedir}/openbabel3/openbabel
|
|
|
|
%{_includedir}/openbabel3/openbabel/*
|
|
|
|
%{_includedir}/openbabel3/LBFGS.h
|
|
|
|
%dir %{_includedir}/openbabel3/LBFGS
|
|
|
|
%{_includedir}/openbabel3/LBFGS/*
|
|
|
|
%{_libdir}/libinchi.so
|
|
|
|
%{_libdir}/libopenbabel.so
|
|
|
|
#%{_libdir}/libmaeparser.so
|
|
|
|
%dir %{_libdir}/cmake/openbabel3
|
|
|
|
%{_libdir}/cmake/openbabel3/OpenBabel3*.cmake
|
2024-01-06 08:09:28 +01:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 08:09:29 +01:00
|
|
|
* Sat May 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-4mamba
|
|
|
|
- rebuilt with libcoordgen 3.0.0
|
|
|
|
|
2024-01-06 08:09:28 +01:00
|
|
|
* Mon Apr 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-3mamba
|
|
|
|
- added library subpackages; fixed cmake and pkgconfig files
|
|
|
|
|
|
|
|
* Mon Apr 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-2mamba
|
|
|
|
- fix source: use tag instead of master
|
|
|
|
|
2024-01-06 08:09:28 +01:00
|
|
|
* Mon May 11 2020 Automatic Build System <autodist@mambasoft.it> 3.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Mar 17 2020 Automatic Build System <autodist@mambasoft.it> 3.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Dec 28 2016 Automatic Build System <autodist@mambasoft.it> 2.4.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:09:28 +01:00
|
|
|
* Thu Aug 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.2.20160804git-1mamba
|
|
|
|
- update to 2.3.2.20160804git
|
|
|
|
|
|
|
|
* Thu Aug 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.2-2mamba
|
|
|
|
- rebuilt with gcc 6.1.0
|
|
|
|
|
2024-01-06 08:09:28 +01:00
|
|
|
* Fri Dec 28 2012 Automatic Build System <autodist@mambasoft.it> 2.3.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Mar 04 2011 Automatic Build System <autodist@mambasoft.it> 2.3.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Aug 04 2009 Automatic Build System <autodist@mambasoft.it> 2.2.3-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Jul 17 2009 Automatic Build System <autodist@mambasoft.it> 2.2.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Mar 22 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Oct 13 2008 gil <puntogil@libero.it> 2.2.0-1mamba
|
|
|
|
- update to 2.2.0
|
|
|
|
|
|
|
|
* Tue Aug 30 2005 Massimo Pintore <massimo.pintore@qilinux.it> 1.100.2-1qilnx
|
|
|
|
- package created by autospec
|