%define debug_package %{nil}
Name: platon
Version: 2007
Release: 1%{?dist}
Summary: PLATON is a versatile SHELX97 compatible multipurpose crystallographic tool
Group: Applications/Engineering
License: Proprietary
URL: http://www.cryst.chem.uu.nl/platon/
#Source0: ftp://xraysoft.chem.uu.nl/pub/unix/platon/platon.f.Z
#Source1: ftp://xraysoft.chem.uu.nl/pub/unix/platon/xdrvr.c.gz
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: libgfortran >= 4.0; libX11 >= 1.0
BuildRequires: gcc >= 3.4.0, compat-gcc-34 >= 3.4; compat-gcc-34-g77 >= 3.4, libX11-devel >= 1.0
BuildRequires: desktop-file-utils
%description
PLATON is a versatile SHELX97 compatible multipurpose crystallographic tool.
Most PLATON features complement those available in the excellent and widely
distributed SHELX97 package for crystal structure determination and refinement.
Historically (1980) PLATON started out as a program for the automated
calculation of derived geometrical data (i.e. bond distances, bond angles and
torsion angles, including su's (esd's)) for structures refined with SHELX76.
Since then, that basic function evolved into an automatic function to calculate
everything of possible interest (both intra- and intermolecular)for a given
structural parameter set (Instruction: CALC).
Over time, various other tools were introduced (Molecular Graphics i.e. PLUTON
& ORTEP, Absorption correction, Data Validation etc.), some of which requiring
a reflection datafile as well.
Several functions in PLATON (e.g. SPGR and EXOR) are there to implement
calculations needed for datareduction, structure determination and refinement
with a program system called 'SYSTEM-S'.
%prep
%setup -q
%build
g77 -o platon platon.f xdrvr.c -lX11
%install
rm -rf $RPM_BUILD_ROOT
install -m 755 -o 0 -g 0 -d $RPM_BUILD_ROOT/%{_bindir}
install -m 755 -o 0 -g 0 -d $RPM_BUILD_ROOT/%{_datadir}/%{name}
install -m 755 -o 0 -g 0 -d $RPM_BUILD_ROOT/%{_datadir}/applications/fedora
install -m 755 check.def $RPM_BUILD_ROOT/%{_datadir}/%{name}/check.def
install -m 755 platon $RPM_BUILD_ROOT/%{_datadir}/%{name}/platon
install -m 755 platon.sh $RPM_BUILD_ROOT/%{_bindir}/platon
install -m 755 -o 0 -g 0 -d $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
cp -R doc $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/
desktop-file-install --vendor livna \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--mode 644 \
--add-category X-Livna \
%{name}.desktop
#install -m 755 platon.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/fedora/platon
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README README.ADDSYM README.LEPAGE README.PLUTON
/%{_defaultdocdir}/%{name}/*
/%{_bindir}/platon
/%{_datadir}/%{name}/platon
/%{_datadir}/%{name}/check.def
/%{_datadir}/applications/livna-platon.desktop
%changelog
* Tue Jan 16 2006 Pascal < pascal22p at parois.net > - 2007-1
- First spec file