|
|
75a8480 |
%if 0%{?rhel} == 5
|
|
|
75a8480 |
%global _fmoddir %{_libdir}/gfortran/modules
|
|
|
75a8480 |
%endif
|
|
|
75a8480 |
|
|
|
5039069 |
Name: libxc
|
|
|
5039069 |
Summary: Library of exchange and correlation functionals to be used in DFT codes
|
|
|
103d009 |
Version: 1.2.0
|
|
|
103d009 |
Release: 1%{?dist}
|
|
|
5039069 |
License: LGPLv3+
|
|
|
5039069 |
Group: Applications/Engineering
|
|
|
5039069 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|
|
5039069 |
Source: http://www.tddft.org/programs/octopus/down.php?file=libxc/libxc-%{version}.tar.gz
|
|
|
5039069 |
URL: http://www.tddft.org/programs/octopus/wiki/index.php/Libxc
|
|
|
5039069 |
|
|
|
5039069 |
BuildRequires: gcc-gfortran
|
|
|
5039069 |
|
|
|
5039069 |
%description
|
|
|
5039069 |
libxc is a library of exchange and correlation functionals. Its purpose is to
|
|
|
5039069 |
be used in codes that implement density-functional theory. For the moment, the
|
|
|
5039069 |
library includes most of the local density approximations (LDAs), generalized
|
|
|
5039069 |
density approximation (GGAs), and meta-GGAs. The library provides values for
|
|
|
5039069 |
the energy density and its 1st, 2nd, and (for the LDAs) 3rd derivatives.
|
|
|
5039069 |
|
|
|
5039069 |
%package devel
|
|
|
5039069 |
Summary: Development library and headers for libxc
|
|
|
5039069 |
Group: Development/Libraries
|
|
|
5039069 |
Requires: %{name} = %{version}-%{release}
|
|
|
5039069 |
Requires: pkgconfig
|
|
|
5039069 |
%if 0%{?fedora} >11 || 0%{?rhel} > 5
|
|
|
5039069 |
# Old versions don't have the 32-bit gfortran compiler, and the Fortran part
|
|
|
5039069 |
# of the multilib'd devel package won't work in any case since Fortran modules
|
|
|
5039069 |
# are architecture and compiler version dependent.
|
|
|
5039069 |
Requires: gcc-gfortran%{_isa}
|
|
|
5039069 |
%endif
|
|
|
5039069 |
|
|
|
5039069 |
%description devel
|
|
|
5039069 |
libxc is a library of exchange and correlation functionals. Its purpose is to
|
|
|
5039069 |
be used in codes that implement density-functional theory. For the moment, the
|
|
|
5039069 |
library includes most of the local density approximations (LDAs), generalized
|
|
|
5039069 |
density approximation (GGAs), and meta-GGAs. The library provides values for
|
|
|
5039069 |
the energy density and its 1st, 2nd, and (for the LDAs) 3rd derivatives.
|
|
|
5039069 |
|
|
|
5039069 |
This package contains the development headers and library that are necessary
|
|
|
5039069 |
in order to compile programs against libxc.
|
|
|
5039069 |
|
|
|
5039069 |
%prep
|
|
|
5039069 |
%setup -q
|
|
|
5039069 |
|
|
|
5039069 |
%build
|
|
|
5039069 |
%configure --enable-shared --disable-static
|
|
|
5039069 |
# SMP make is not working.
|
|
|
5039069 |
#make %{?_smp_mflags}
|
|
|
5039069 |
make
|
|
|
5039069 |
|
|
|
5039069 |
%install
|
|
|
5039069 |
rm -rf %{buildroot}
|
|
|
5039069 |
make install DESTDIR=%{buildroot}
|
|
|
5039069 |
# Move modules in the right place
|
|
|
5039069 |
mkdir -p %{buildroot}%{_fmoddir}
|
|
|
5039069 |
mv %{buildroot}%{_includedir}/*.mod %{buildroot}%{_fmoddir}
|
|
|
5039069 |
# Get rid of .la files
|
|
|
5039069 |
find %{buildroot}%{_libdir} -name *.la -exec rm -rf {} \;
|
|
|
5039069 |
|
|
|
5039069 |
%clean
|
|
|
5039069 |
rm -rf %{buildroot}
|
|
|
5039069 |
|
|
|
5039069 |
%post -p /sbin/ldconfig
|
|
|
5039069 |
%postun -p /sbin/ldconfig
|
|
|
5039069 |
|
|
|
5039069 |
%files
|
|
|
5039069 |
%defattr(-,root,root,-)
|
|
|
5039069 |
%doc README NEWS COPYING AUTHORS ChangeLog TODO
|
|
|
5039069 |
%{_libdir}/libxc.so.*
|
|
|
5039069 |
|
|
|
5039069 |
%files devel
|
|
|
5039069 |
%defattr(-,root,root,-)
|
|
|
5039069 |
%{_libdir}/libxc.so
|
|
|
5039069 |
%{_includedir}/xc*.h
|
|
|
5039069 |
%{_fmoddir}/libxc_funcs_m.mod
|
|
|
5039069 |
%{_fmoddir}/xc_f90_*.mod
|
|
|
5039069 |
%{_libdir}/pkgconfig/libxc.pc
|
|
|
5039069 |
|
|
|
5039069 |
%changelog
|
|
|
103d009 |
* Fri Jun 15 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.2.0-1
|
|
|
103d009 |
- Update to 1.2.0.
|
|
|
103d009 |
|
|
|
61e8cc3 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
|
|
|
61e8cc3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
61e8cc3 |
|
|
|
4c87941 |
* Fri May 13 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1.0-1
|
|
|
4c87941 |
- Update to 1.1.0.
|
|
|
4c87941 |
|
|
|
3dbc86d |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
|
|
|
3dbc86d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
3dbc86d |
|
|
|
5039069 |
* Sun Jan 23 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.0-4
|
|
|
5039069 |
- Clean buildroot at the beginning of %%install.
|
|
|
5039069 |
|
|
|
5039069 |
* Sun Jan 23 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.0-3
|
|
|
5039069 |
- Update tarball.
|
|
|
5039069 |
- Make requirement on gcc-gfortran in -devel architecture explicit.
|
|
|
5039069 |
|
|
|
5039069 |
* Sat Jan 22 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.0-2
|
|
|
5039069 |
- Minor review fixes.
|
|
|
5039069 |
|
|
|
5039069 |
* Tue Jan 18 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.0-1
|
|
|
5039069 |
- Initial specfile.
|