586fb41
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
586fb41
586fb41
Name: apbs
586fb41
Summary: Adaptive Poisson Boltzmann Solver
Tim Fenn 178230c
Version: 1.5
f7c75d0
Release: 2%{?dist}
586fb41
# License of pmgZ, aqua and contrib/blas/mblasd.f is LGPLv2+, the rest is BSD.
586fb41
License: LGPLv2+ and BSD
586fb41
Group: Applications/Engineering
586fb41
URL: http://apbs.sourceforge.net/
Tim Fenn 178230c
Source0: https://github.com/Electrostatics/apbs-pdb2pqr/archive/apbs-%{version}.tar.gz
Tim Fenn a1c63fe
Patch0: apbs-cmake.patch
Igor Gnatenko b39ee13
BuildRequires:  gcc-c++
Tim Fenn a1c63fe
BuildRequires: cmake
Tim Fenn a1c63fe
BuildRequires: doxygen
Tim Fenn 178230c
BuildRequires: graphviz
586fb41
BuildRequires: arpack-devel
586fb41
BuildRequires: atlas-devel
586fb41
BuildRequires: blas-devel
586fb41
BuildRequires: maloc-devel
Tim Fenn 178230c
BuildRequires: tex(latex)
Tim Fenn a1c63fe
BuildRequires: zlib-devel
586fb41
586fb41
%description
586fb41
APBS is a software package for the numerical solution of the
586fb41
Poisson-Boltzmann equation (PBE), one of the most popular continuum
586fb41
models for describing electrostatic interactions between molecular
586fb41
solutes in salty, aqueous media.  APBS was designed to efficiently
586fb41
evaluate electrostatic properties for such simulations for a wide
586fb41
range of length scales to enable the investigation of molecules with
586fb41
tens to millions of atoms. It is also widely used in molecular
586fb41
visualization (in such applications as PyMOL).
586fb41
586fb41
%package tools
586fb41
Summary: utility programs that utilize the APBS package
586fb41
Group: Applications/Engineering
586fb41
Requires: %{name} = %{version}-%{release}
586fb41
586fb41
%description tools
586fb41
586fb41
The apbs-tools package contains several utility programs for
586fb41
conversion, analysis and preparation of files that use the adaptive
586fb41
poisson boltzmann solver library.
586fb41
586fb41
%package devel
586fb41
Summary: Libraries and header files for the APBS package
586fb41
Group: Development/Libraries
586fb41
Requires: %{name} = %{version}-%{release}
586fb41
586fb41
%description devel
586fb41
586fb41
The apbs-devel package contains the header files and libraries
586fb41
necessary for developing programs using the adaptive poisson boltzmann
586fb41
(APBS) solver library.
586fb41
586fb41
%package doc
586fb41
Summary: Documentation for the APBS package
586fb41
Group: Applications/Engineering
586fb41
Requires: %{name} = %{version}-%{release}
586fb41
586fb41
%description doc
586fb41
586fb41
The apbs-doc package contains API reference inforemation for
586fb41
development using the adaptive poisson boltzmann (APBS) solver
586fb41
library.
586fb41
586fb41
%prep
Tim Fenn 178230c
%setup -q -n %{name}-pdb2pqr-apbs-%{version}
Tim Fenn 178230c
cd apbs
586fb41
%patch0 -p0
586fb41
586fb41
%build
Tim Fenn 178230c
cd apbs
Tim Fenn 178230c
# %cmake -D BUILD_DOC:BOOL=ON .
Tim Fenn 178230c
%cmake -D BUILD_DOC:BOOL=OFF .
586fb41
make %{?_smp_mflags}
Tim Fenn 178230c
cd doc/programmer
Tim Fenn 178230c
doxygen
586fb41
586fb41
%install
586fb41
rm -rf %{buildroot}
586fb41
Tim Fenn 178230c
cd apbs
Tim Fenn a1c63fe
make install DESTDIR=%{buildroot}
586fb41
586fb41
# tools
Tim Fenn a1c63fe
for bin in %{buildroot}%{_bindir}/{coulomb,born,mgmesh,dxmath,mergedx2,mergedx,value,uhbd_asc2bin,smooth,dx2mol,dx2uhbd,similarity,multivalue,benchmark,analysis,del2dx,tensor2dx} tools/manip/psize.py; do
Tim Fenn a1c63fe
    mv $bin %{buildroot}%{_bindir}/apbs-`basename $bin`
586fb41
done
586fb41
586fb41
%post -p /sbin/ldconfig
586fb41
586fb41
%postun -p /sbin/ldconfig
586fb41
586fb41
%files
Tim Fenn 178230c
%doc apbs/doc/license/LICENSE.txt apbs/doc/README apbs/doc/ChangeLog.md
586fb41
%{_bindir}/apbs
Tim Fenn a1c63fe
%{_libdir}/libapbs*.so.*
586fb41
586fb41
%files tools
586fb41
%{_bindir}/apbs-psize.py
586fb41
%{_bindir}/apbs-coulomb
586fb41
%{_bindir}/apbs-born
586fb41
%{_bindir}/apbs-mgmesh
586fb41
%{_bindir}/apbs-dxmath
586fb41
%{_bindir}/apbs-mergedx2
586fb41
%{_bindir}/apbs-mergedx
586fb41
%{_bindir}/apbs-value
586fb41
%{_bindir}/apbs-uhbd_asc2bin
586fb41
%{_bindir}/apbs-smooth
586fb41
%{_bindir}/apbs-dx2mol
586fb41
%{_bindir}/apbs-dx2uhbd
586fb41
%{_bindir}/apbs-similarity
586fb41
%{_bindir}/apbs-multivalue
586fb41
%{_bindir}/apbs-benchmark
586fb41
%{_bindir}/apbs-analysis
Tim Fenn a1c63fe
%{_bindir}/apbs-del2dx
Tim Fenn a1c63fe
%{_bindir}/apbs-tensor2dx
586fb41
586fb41
%files devel
Tim Fenn a1c63fe
%{_libdir}/libapbs*.so
586fb41
%{_includedir}/apbs
586fb41
586fb41
%files doc
Tim Fenn 178230c
%doc apbs/doc/programmer/html
586fb41
586fb41
%changelog
f7c75d0
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
f7c75d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f7c75d0
Tim Fenn 178230c
* Sat May 19 2018 Tim Fenn <tim.fenn@gmail.com> - 1.5-1
Tim Fenn 178230c
- update to 1.5
Tim Fenn 178230c
78f5725
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-8
78f5725
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
78f5725
1c58882
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-7
1c58882
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1c58882
83699ef
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-6
83699ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
83699ef
55e6a65
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-5
55e6a65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
55e6a65
955998c
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-4
955998c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
955998c
1b4c686
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
1b4c686
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1b4c686
4599b40
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
4599b40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4599b40
Tim Fenn a1c63fe
* Thu Jun 19 2014 Tim Fenn <tim.fenn@gmail.com> - 1.4-1
Tim Fenn a1c63fe
- update to 1.4
Tim Fenn a1c63fe
Tim Fenn a1c63fe
* Wed Jun 18 2014 Tim Fenn <tim.fenn@gmail.com> - 1.3-8
Tim Fenn 18398c7
- fix for bug 1105956 (apbslib.c patch for format-security error)
Tim Fenn 18398c7
57a01f7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-8
57a01f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
57a01f7
Tim Fenn fdbeff6
* Wed Oct 30 2013 Tim Fenn <tim.fenn@gmail.com> - 1.3-7
Tim Fenn fdbeff6
- rebuild for atlas 3.10.1 (consolidates lapack and blas)
Tim Fenn fdbeff6
4e01c39
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-6
4e01c39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4e01c39
14a2c91
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-5
14a2c91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
14a2c91
c080187
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-4
c080187
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c080187
1e7a7a7
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
1e7a7a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1e7a7a7
22f7484
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
22f7484
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
22f7484
Tim Fenn ea47b7a
* Mon Nov 15 2010 Tim Fenn <fenn@stanford.edu> - 1.3-1
Tim Fenn ea47b7a
- update to 1.3
Tim Fenn ea47b7a
be3da3a
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.1-3
be3da3a
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
be3da3a
89e76a0
* Tue Dec 01 2009 Tim Fenn <fenn@stanford.edu> - 1.2.1-2
89e76a0
- add RPM_OPT_FLAGS
89e76a0
1ab947b
* Wed Nov 25 2009 Tim Fenn <fenn@stanford.edu> - 1.2.1-1
1ab947b
- update to 1.2.1
1ab947b
e13a9f4
* Tue Nov 24 2009 Tim Fenn <fenn@stanford.edu> - 1.2.0-2
e13a9f4
- fix broken source
e13a9f4
206eaae
* Thu Nov 04 2009 Tim Fenn <fenn@stanford.edu> - 1.2.0-1
206eaae
- update to 1.2.0
206eaae
586fb41
* Mon Jul 27 2009 Tim Fenn <fenn@stanford.edu> - 1.1.0-7
586fb41
- remove python byte compiled files in bindir
586fb41
- loop to add tools
586fb41
586fb41
* Sun Jul 26 2009 Tim Fenn <fenn@stanford.edu> - 1.1.0-6
586fb41
- remove check macro
586fb41
586fb41
* Fri Jul 24 2009 Tim Fenn <fenn@stanford.edu> - 1.1.0-5
586fb41
- enable and add arpack, python to buildrequires, fix files section accordingly
586fb41
- add check macro
586fb41
- move tools to a subpackage
586fb41
- move doc into subpackage
586fb41
- spec cleanup
586fb41
586fb41
* Thu Jul 23 2009 Tim Fenn <fenn@stanford.edu> - 1.1.0-4
586fb41
- merge aqua and pmgZ into libapbs
586fb41
586fb41
* Fri Jul 10 2009 Tim Fenn <fenn@stanford.edu> - 1.1.0-3
586fb41
- separate aqua and pmgZ into separate libraries/packages
586fb41
- add maloc BuildRequires
586fb41
586fb41
* Mon May 04 2009 Tim Fenn <fenn@stanford.edu> - 1.1.0-2
586fb41
- fix RPM_BUILD_ROOT
586fb41
- rename patches
586fb41
- add "-q" to setup
586fb41
- add README to doc
586fb41
- edit description
586fb41
- edit license
586fb41
586fb41
* Fri Apr 24 2009 Tim Fenn <fenn@stanford.edu> - 1.1.0-1
586fb41
- initial build