[ape/f14/master] Initial import.

Jussi Lehtola jussilehtola at fedoraproject.org
Tue Jan 25 10:12:08 UTC 2011


commit fd79440ffe21ffc97d0d281ced47cf197367bba3
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date:   Tue Jan 25 12:11:58 2011 +0200

    Initial import.

 ape.spec |   68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources  |    1 +
 2 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/ape.spec b/ape.spec
new file mode 100644
index 0000000..f0f3c35
--- /dev/null
+++ b/ape.spec
@@ -0,0 +1,68 @@
+Name:		ape
+Version:	1.1.0
+Release:	1%{?dist}
+Summary:	A tool for generating atomic pseudopotentials within a DFT framework
+Group:		Applications/Engineering
+License:	GPLv2+
+URL:		http://www.tddft.org/programs/APE
+Source0:	http://www.tddft.org/programs/APE/sites/default/files/ape-%{version}.tar.gz
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires:	gcc-gfortran
+BuildRequires:	gsl-devel
+BuildRequires:	libxc-devel
+
+Requires(post):		info
+Requires(preun):	info
+
+%description
+APE (Atomic Pseudopotential Engine) is a tool for generating atomic
+pseudopotentials within a Density-Functional Theory framework.
+
+%prep
+%setup -q
+
+%build
+# The APE configure script uses FCFLAGS instead of FFLAGS declared by the configure macro.
+export FC=gfortran
+export FCFLAGS="%{optflags} -ffree-form -ffree-line-length-none -I%{_fmoddir}"
+%configure
+# SMP make is not working.
+#make %{?_smp_mflags}
+make
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+# Get rid of spurious directory
+rm -rf %{buildroot}%{_infodir}/dir
+# Get rid of testsuite, it's already run in check phase.
+rm -rf %{buildroot}%{_datadir}/ape
+rm %{buildroot}%{_bindir}/ape-run*
+
+%clean
+rm -rf %{buildroot}
+
+%post
+/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
+
+%preun
+if [ $1 = 0 ] ; then
+  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
+fi
+
+%check
+# Add binary to PATH
+export PATH=$PATH:`pwd`/src
+cd testsuite
+./ape-run_testsuite -l
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README TODO sample
+%{_bindir}/ape
+%{_infodir}/ape.info.*
+
+%changelog
+* Tue Jan 18 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 1.1.0-1
+- Initial spec.
diff --git a/sources b/sources
index e69de29..40232fa 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+423de21a16aa806d67c2bdba20ba5c55  ape-1.1.0.tar.gz


More information about the scm-commits mailing list