139 lines
4.3 KiB
RPMSpec
139 lines
4.3 KiB
RPMSpec
%define apiver 3.0
|
|
%define minver %(echo %version | cut -d. -f 2-)
|
|
Name: openbabel
|
|
Version: 3.1.1
|
|
Release: 1mamba
|
|
Summary: Chemistry file translation program
|
|
Group: Applications/Educational
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://downloads.sourceforge.net/sourceforge/openbabel/
|
|
Source: https://github.com/openbabel/openbabel.git/master/openbabel-%{version}.tar.bz2
|
|
#http://downloads.sourceforge.net/openbabel/openbabel-%{version}.tar.gz
|
|
Patch0: openbabel-2.3.2-gcc-6.1.0.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libcairo-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libtirpc-devel
|
|
BuildRequires: libwxBase-unicode-devel
|
|
BuildRequires: libwxGTK-unicode-devel
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: libmaeparser-devel
|
|
BuildRequires: libcoordgen-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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.
|
|
|
|
%package devel
|
|
Summary: Devel package for %{name}
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
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 need for development.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
#-D -T
|
|
#%patch0 -p1
|
|
#%ifarch x86_64
|
|
#sed -i "s|DESTINATION lib$|DESTINATION lib64|" external/maeparser-1.1/CMakeLists.txt
|
|
#%endif
|
|
|
|
%build
|
|
%cmake \
|
|
-DCMAKE_SHARED_LINKER_FLAGS="-ltirpc" \
|
|
-DwxWidgets_CONFIG_EXECUTABLE=%{_bindir}/wx-config-unicode
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
%makeinstall
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/ob*
|
|
%{_bindir}/roundtrip
|
|
%{_libdir}/libinchi.so.*
|
|
%{_libdir}/libopenbabel.so.*
|
|
%dir %{_libdir}/openbabel
|
|
%{_libdir}/openbabel/*/*.so
|
|
%{_datadir}/openbabel/*
|
|
#%{_mandir}/man1/babel.1*
|
|
%{_mandir}/man1/ob*.1*
|
|
%{_mandir}/man1/roundtrip.1*
|
|
%doc AUTHORS COPYING
|
|
# ChangeLog NEWS README THANKS
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/inchi
|
|
%{_includedir}/inchi/inchi_api.h
|
|
%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
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%changelog
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* 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
|