Sisyphus repository
Last update: 16 september 2019 | SRPMs: 17434 | Visits: 15107317
en ru br
ALT Linux repos
S:2.7.5.2-alt5
5.0: 2.7.3.1-alt5
4.1: 2.7.3.1-alt2
4.0: 2.7.3.1-alt1
3.0: 2.7.3-alt1

Group :: Sciences/Chemistry
RPM: RasMol

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define orig_ver 2.7.3

Name: RasMol
Version: %orig_ver.1
Release: alt5

Summary: Molecular Graphics Visualisation Tool
License: GPL-like
Group: Sciences/Chemistry

Url: http://www.openrasmol.org
Source: ftp://ftp.bernstein-plus-sons.com/software/%{name}_%orig_ver.tar.gz
Source1: rasmol.sh
Source2: rasmol.xpm
Source3: rasmol_16x14.png
Source4: rasmol_32x29.png
Source5: rasmol_64x58.png
Patch1: RasMol-2.7.3-mouserun2.patch
Patch2: RasMol-2.7.3-ztrl.patch
Patch3: RasMol-2.7.3-distfix.patch
Patch4: RasMol-2.7.3-version_2.7.3.1.patch
Packager: Michael Shigorin <mike at altlinux.org>

Summary(ru_RU.KOI8-R): Инструмент для визуализации молекулярных структур
Summary(uk_UA.KOI8-U): ╤нструмент для в╕зуал╕зац╕╖ молекулярних структур

# Automatically added by buildreq on Mon Dec 01 2008

BuildRequires: imake libX11-devel libXext-devel libXi-devel xorg-cf-files

BuildRequires: imake libXi-devel libXext-devel xorg-cf-files

Requires: fonts-bitmap-75dpi

%description
RasMol is a molecular graphics program intended for the visualisation of
proteins, nucleic acids and small molecules. The program is aimed at display,
teaching and generation of publication quality images.

%description -l ru_RU.KOI8-R
RasMol - программа молекулярной графики, используемая для визуализации
протеинов, нуклеиновых кислот и небольших молекул.  Пригодна для отображения,
обучения и генерации изображений для публикаций.

%description -l uk_UA.KOI8-U
RasMol - програма молекулярно╖ граф╕ки, що застосову╓ться для в╕зуал╕зац╕╖
проте╖н╕в, нукле╖нових кислот та невеликих молекул.  Придатна до в╕дображення,
навчання та генерац╕╖ зображень для публ╕кац╕й.

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

%build
CFLAGS="%optflags"
pushd src
xmkmf
subst 's/-mcpu=i686/-mtune=i686/' Makefile
make clean rasmol "DEPTHDEF=-DEIGHTBIT"
mv rasmol rasmol-8bpp
make clean rasmol "DEPTHDEF=-DSIXTEENBIT"
mv rasmol rasmol-16bpp
make clean rasmol "DEPTHDEF=-DTHIRTYTWOBIT"
mv rasmol rasmol-32bpp
popd

%install
find -type f -name .DS_Store -execdir rm {} +

install -m755 -pD %SOURCE1 %buildroot%_bindir/rasmol
install -m755 src/rasmol-8bpp %buildroot%_bindir/rasmol-8bpp
install -m755 src/rasmol-16bpp %buildroot%_bindir/rasmol-16bpp
install -m755 src/rasmol-32bpp %buildroot%_bindir/rasmol-32bpp

mkdir -p %buildroot%_datadir/%name %buildroot%_man1dir/
install -m644 doc/rasmol.1.gz %buildroot%_man1dir/rasmol.1.gz
install -m644 doc/rasmol.hlp %buildroot%_datadir/%name/rasmol.hlp
install -m644 doc/rasmol.html %buildroot%_datadir/%name/rasmol.html

pushd doc
rm rasmol.hlp rasmol.html rasmol.1.gz
mkdir doc
install -m644 *.html *.pdf.gz *.ps.gz *.rtf.gz rasmol.doc.gz doc/
mkdir examples
popd

mv data/* doc/examples/

install -pD -m644 %SOURCE2 %buildroot%_iconsdir/rasmol.xpm
install -pD -m644 %SOURCE3 %buildroot%_iconsdir/hicolor/16x16/apps/rasmol.png
install -pD -m644 %SOURCE4 %buildroot%_iconsdir/hicolor/32x32/apps/rasmol.png
install -pD -m644 %SOURCE5 %buildroot%_iconsdir/hicolor/64x64/apps/rasmol.png

%files
%doc doc/
%doc NOTICE PROJECTS RASLIC README* INSTALL* TODO* ChangeLog* history.html
%_bindir/*
%_iconsdir/rasmol.xpm
%_iconsdir/hicolor/??x??/apps/rasmol.png
%_datadir/%name/
%_man1dir/*

# TODO:

# - add desktop file
# - 2.7.4.2 (and CBFlib)

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin