Blob Blame History Raw
Name:           libghemical
Summary:        Libraries for the Ghemical chemistry package
Version:        2.99.1
Release:        30%{?dist}
License:        GPLv2+
Group:          Applications/Engineering
URL:            http://www.uku.fi/~thassine/ghemical/
Source0:        http://www.uku.fi/~thassine/projects/download/current/%{name}-%{version}.tar.gz
Patch0:         libghemical-use-atlas.patch
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildRequires:  atlas-devel
BuildRequires:  blas-devel
BuildRequires:  lapack-devel
BuildRequires:  flex
BuildRequires:  glib2-devel
BuildRequires:  gcc-gfortran
BuildRequires:  libtool
BuildRequires:  intltool
BuildRequires:  libint-devel
BuildRequires:  mesa-libGLU-devel
BuildRequires:  mpqc-devel
BuildRequires:  mopac7-devel

# Libint releases can have API breakages, leading to segfaults.
#Requires:       libint%{?_isa} = %{_libint_version}
Requires:       libint(api)%{?_isa} = %{_libint_apiversion}

%description
Data files and dynamic libraries for the Ghemical chemistry package.
These libraries implement the quantum-mechanics and molecular
mechanics models used to compute molecular properties.

%package devel
Summary:    Header files and static libraries from %{name}
Group:      Development/Libraries
Requires:   %{name}%{?_isa} = %{version}-%{release}
Requires:   pkgconfig

%description devel
Libraries and header include files for developing programs based on %{name}.

%prep
%setup -q
%patch0 -p0

%build
autoreconf -v -f -i
#libtoolize --copy --force
#aclocal -I m4
#autoconf
#automake
ATLASLIBDIR="-L%{_libdir}/atlas"
export ATLASLIBDIR
%configure --enable-mopac7 --enable-mpqc --disable-static --disable-sctest
make %{?_smp_mflags}
sed -ir -e 's/^Libs:.*/Libs: -L${libdir} -lghemical/g' libghemical.pc

%install
rm -rf %{buildroot}
make DESTDIR="%{buildroot}" INSTALL="install -p" install
find %{buildroot}%{_libdir} -name *.la -exec rm -rf {} \;
%find_lang %{name}

%clean
rm -rf %{buildroot}

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog TODO COPYING
%{_datadir}/%{name}/
%{_libdir}/libghemical.so.*

%files devel
%defattr(-,root,root,-)
%{_includedir}/ghemical/
%{_libdir}/libghemical.so
%{_libdir}/pkgconfig/libghemical.pc


%changelog
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.99.1-30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.99.1-29
- Rebuilt for GCC 5 C++11 ABI change

* Tue Nov 18 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.99.1-28
- Once revert to the version which is currently buildroot
- Add needed BRs
- Fix Requires for libint api

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.99.1-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Mon Dec 23 2013 Susi Lehtola <jussilehtola@fedoraproject.org> 2.99.1-26
- Rebuild for new libint.

* Sun Sep 22 2013 Carl Byington <carl@five-ten-sg.com> 2.99.1-25
- rebuild for new atlas and blas libraries

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.99.1-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Fri Mar 29 2013 Carl Byington <carl@five-ten-sg.com> 2.99.1-23
- add autoreconf for aarch64

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.99.1-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 25 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 2.99.1-21
- Rebuild due to changed libint.

* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.99.1-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.99.1-19
- Rebuilt for c++ ABI breakage

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.99.1-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Wed Dec 08 2010 Carl Byington <carl@five-ten-sg.com> 2.99.1-17
- rebuild for libint changes

* Sun Jun 20 2010 Carl Byington <carl@five-ten-sg.com> 2.99.1-16
- new tag need for make build

* Tue Apr 20 2010 Carl Byington <carl@five-ten-sg.com> 2.99.1-15
- patch libghemical.pc to avoid unnecessary parts

* Thu Apr 08 2010 Carl Byington <carl@five-ten-sg.com> 2.99.1-14
- patch configure.ac to pull in the required sc_ libs

* Mon Apr 05 2010 Carl Byington <carl@five-ten-sg.com> 2.99.1-13
- improved package description
- link against mopac7 since we need that
- remove unnecessary build-requires

* Sat Apr 03 2010 Carl Byington <carl@five-ten-sg.com> 2.99.1-12
- merge -data and -libs packages into main package

* Sat Jan 09 2010 Carl Byington <carl@five-ten-sg.com> 2.99.1-11
- add COPYING license file to doc

* Mon Jan 04 2010 Carl Byington <carl@five-ten-sg.com> 2.99.1-10
- use blas and lapack from atlas.

* Wed Dec 23 2009 Carl Byington <carl@five-ten-sg.com> 2.99.1-9
- devel requires pkgconfig for EPEL

* Wed Dec 23 2009 Carl Byington <carl@five-ten-sg.com> 2.99.1-8
- install -p to preserve timestamps
- trim changelog
- explicit includedir name
- add pkgconfig for EPEL

* Sun Dec 20 2009 Carl Byington <carl@five-ten-sg.com> 2.99.1-7
- explicit names in %%files section rather than wildcards

* Sat Dec 05 2009 Carl Byington <carl@five-ten-sg.com> 2.99.1-6
- remove unnecessary f2c requirement

* Wed Dec 02 2009 Carl Byington <carl@five-ten-sg.com> 2.99.1-5
- convert to fedora compatible spec file
- remove static libraries

* Fri Oct 16 2009 Guillaume Bedot <littletux@mandriva.org> 2.99.1-4mdv2010.0
- Revision: 457836
- rebuild