Репозиторий Sisyphus
Последнее обновление: 20 августа 2019 | Пакетов: 17340 | Посещений: 14666310
en ru br
Репозитории ALT

Группа :: Науки/Химия
Пакет: xcrysden

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

#
# spec file for package xcrysden (Version 1.5.21
#
# Copyright (c) 2009 SUSE LINUX Products 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.
#

Name: xcrysden
Version: 1.5.21
Release: alt5

Summary: X-window CRYstalline Structure and DENsities
License: GPLv2+
Group: Sciences/Chemistry

Url: http://www.xcrysden.org
Source: %url/download/%name-%version-src.tar.bz2
Patch1: xcrysden-1.5.21-opensuse-prototype.patch
Patch2: xcrysden-1.5.21-opensuse-getline.patch
Patch3: xcrysden-1.5.21-opensuse-readlink.patch
Patch4: xcrysden-1.5.21-opensuse-bwidget.patch
Patch5: xcrysden-1.5.21-opensuse-gdb.patch
Patch6: xcrysden-1.5.21-alt-autoreq.patch
Patch7: xcrysden-1.5.21-alt-tcltk8.6.patch
Packager: Michael Shigorin <mike at altlinux.org>

Requires: bwidget gawk ImageMagick netpbm
Requires: openbabel gifsicle

# Automatically added by buildreq on Sun Dec 19 2010++

BuildRequires: gcc-fortran libGL-devel libGLU-devel libXext-devel libXmu-devel tk-devel

# shell wrapped tcl scripts

%add_findreq_skiplist %_libdir/%name/util/*

%description
XCrySDen is a crystalline and molecular structure visualisation
program, which aims at display of isosurfaces and contours,
which can be superimposed on crystalline structures and
interactively rotated and manipulated.

%package examples
Summary: XCrySDen example data files
Group: Sciences/Chemistry
BuildArch: noarch

%description examples
This package contains various %name example data files.

%prep
%setup -n XCrySDen-%version-src
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6 -p1
%patch7

%build
cp system/Make.linux Make.sys
make all CFLAGS="$CFLAGS -fPIC -DUSE_FONTS" FFLAGS="-O2 $FFLAGS" X_LIB="-L%_libdir -lXmu -lX11 -lXext"

%install
mkdir -p %buildroot%_libdir/%name/{images,bin,Awk,util,Tcl,Tcl/fs,scripts}
install -p version usage xcrysden %buildroot%_libdir/%name/
install -p bin/* %buildroot%_libdir/%name/bin/
install -p Awk/*.awk %buildroot%_libdir/%name/Awk/
install -p images/* %buildroot%_libdir/%name/images/
install -p scripts/* %buildroot%_libdir/%name/scripts/
install -p Tcl/{*.tcl,tclIndex} %buildroot%_libdir/%name/Tcl/
install -p Tcl/fs/{*.tcl,tclIndex} %buildroot%_libdir/%name/Tcl/fs/
install -p util/* %buildroot%_libdir/%name/util/
mkdir -p %buildroot%_bindir
ln -s %_libdir/%name/xcrysden %buildroot%_bindir/xcrysden
mkdir -p %buildroot%_sysconfdir/%name
install -p Tcl/{Xcrysden_defaults,custom-definitions} %buildroot%_sysconfdir/%name/
ln -s %_sysconfdir/%name/Xcrysden_defaults %buildroot%_libdir/%name/Tcl/Xcrysden_defaults
ln -s %_sysconfdir/%name/custom-definitions %buildroot%_libdir/%name/Tcl/custom-definitions

mkdir -p %buildroot%_datadir/%name/
cp -a examples %buildroot%_datadir/%name/
ln -s %_datadir/%name/examples %buildroot%_libdir/%name/examples

%files
%_bindir/%name
%_libdir/%name/
%dir %_sysconfdir/%name/
%config(noreplace) %_sysconfdir/%name/Xcrysden_defaults
%config(noreplace) %_sysconfdir/%name/custom-definitions
%doc AUTHORS COPYRIGHT ChangeLog NEWS README THANKS

%files examples
%_datadir/%name/examples

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin