Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 15a78133befccef0ebf7ac774451f0a7 > files > 2

rasmol-2.7.2.1.1-4mdk.src.rpm

#
# spec file for rasmol
#

# Basic macros
%define name     rasmol
%define version  2.7.2.1.1
%define release  4mdk
%define abstract Molecular Graphics Visualization Tool

Name:         %name
Summary:      %abstract
Version:      %version
Release:      %release
License:      Distributable
Group:        Sciences/Chemistry
URL:          http://www.bernstein-plus-sons.com/software/rasmol/
Autoreqprov:  off
BuildRoot:    %{_tmppath}/%{name}-buildroot
Provides:     RasMol

Source:       http://www.bernstein-plus-sons.com/software/rasmol/RasMol-%{version}.tar.bz2

%description
RasMol is an X Window System tool intended for the visualization of
proteins and nucleic acids. It reads Brookhaven Protein Database (PDB)
files and interactively renders them in a variety of formats on either
an 8-bit or 24/32-bit color display.

Authors:
--------
    Roger Sayle <ras32425@ggr.co.uk>

%prep

%setup -n RasMol-%{version}

%build
cd src
xmkmf -a
%make

%install
rm -rf %buildroot
mkdir -p %buildroot/%_bindir
make -C src "DESTDIR=$RPM_BUILD_ROOT" install
make -C src "DESTDIR=$RPM_BUILD_ROOT" install.man
cp -a data %buildroot/usr/X11R6/%{_lib}/rasmol
ln -sf %_bindir/%name  %buildroot/%_bindir/%name

# Menu icons
install -D -m 644 Icons/%{name}48.png %buildroot/%_liconsdir/%name.png
install -D -m 644 Icons/%{name}32.png %buildroot/%_iconsdir/%name.png
install -D -m 644 Icons/%{name}16.png %buildroot/%_miconsdir/%name.png

# Menu entries
mkdir -p %buildroot/%_menudir
cat > %buildroot/%_menudir/%name << EOF
?package(%name): command="/usr/X11R6/bin/rasmol" \
needs="text" icon="%name.png" section="More applications/Sciences/Chemistry" \
title="RasMol" longtitle="%abstract"
EOF

%files
%defattr(-,root,root)
%doc NOTICE PROJECTS TODO* README* ChangeLog.html history.html index.shtml html_graphics
%doc doc/*.gz doc/*.html doc/*.hlp
%doc /usr/X11R6/man/man1/*
/usr/X11R6/%{_lib}/rasmol
/usr/X11R6/bin/rasmol
%_bindir/*
%_liconsdir/*.png
%_miconsdir/*.png
%_iconsdir/*.png
%_menudir/*

%clean
rm -rf %buildroot

%post
%update_menus

%postun
%clean_menus

%changelog
* Tue Apr 27 2004 Bruno VASTA <bruno.vasta@infodia.fr> 2.7.2.1.1-4mdk
- new icons

* Thu Apr 27 2004 Bruno VASTA <bruno.vasta@infodia.fr> 2.7.2.1.1-3mdk
- an xterm runs rasmol, the rasmol console works

* Thu Apr 22 2004 Lenny Cartier <lenny@mandrakesoft.com> 2.7.2.1.1-2mdk
- in bindir link

* Thu Apr 15 2004 Bruno VASTA <bruno.vasta@infodia.fr> 2.7.2.1.1-1mdk
- initial mdk package for RasMol 2.7.2.1.1