File gpaw-setups-0.9.20000.spec of Package gpaw-setups-0.9.20000

#
# spec file for package gpaw-setups-0.9.20000
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           gpaw-setups-0.9.20000
Version:        0.9.20000
Release:        0
Summary:        Atomic PAW Setups
License:        ECL
Group:          Productivity/Scientific/Chemistry
Url:            https://wiki.fysik.dtu.dk/gpaw/setups/setups.html
Source0:        gpaw-setups-0.9.20000.tar.gz
BuildRequires:  tar gzip binutils build coreutils
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A setup is to the PAW method what a pseudo-potential is to the pseudo-potential method

%prep
%setup -q -n %{name}

%build
echo "export GPAW_SETUP_PATH=%{_datadir}/%{name}:$GPAW_SETUP_PATH" > %{name}.sh

%install
mkdir -p %{buildroot}/%{_sysconfdir}/profile.d/
mkdir -p %{buildroot}/%{_datadir}/%{name}/
install -m 644 %{name}.sh %{buildroot}/%{_sysconfdir}/profile.d/
install -m 644 -t %{buildroot}/%{_datadir}/%{name}/ *.gz phi-0.500-1.000-20.000-21-201.*

%files
%defattr(-,root,root)
%doc COPYING LICENSE
%{_sysconfdir}/profile.d/*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*

%changelog
openSUSE Build Service is sponsored by