1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
Summary: PyMOL Molecular Graphics System
Name: pymol
Version: 0.93
Release: 1.rh62.py152
Copyright: Python
Group: Development/Tools
URL: http://www.pymol.org
Source: /usr/src/redhat/SOURCES/pymol-0_93-src.tgz
BuildRoot: /var/tmp/pymol-root
Requires: python >= 1.5.2
Requires: tcl >= 8.0.0
Requires: tk >= 8.0.0
Requires: libpng >= 1.0.0
Requires: tkinter >= 1.5.2
%description
PyMOL is a molecular graphics system with an embedded Python
interpreter designed for real-time visualization and rapid generation
of high-quality molecular graphics images and animations. It is fully
extensible and available free to everyone via the "Python"
license. Although a newcomer to the field, PyMOL can already be used
to generate stunning images and animations with ease. It can also
perform many other valuable tasks (such as editing PDB files) to
assist you in your research.
%prep
%setup
cp setup/Rules.linux-rpm-rh62-py152 Rules.make
cp setup/pymol.com.linux-rpm-rh62-py152 pymol.com
%build
cp contrib/modules/ExtensionClass.c-py152 contrib/modules/ExtensionClass.c
cp contrib/modules/ExtensionClass.h-py152 contrib/modules/ExtensionClass.h
make
make pmw
make compileall
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/usr/lib/python1.5/site-packages/pymol
cp -dprv modules ${RPM_BUILD_ROOT}/usr/lib/python1.5/site-packages/pymol/
cp -dprv data ${RPM_BUILD_ROOT}/usr/lib/python1.5/site-packages/pymol/
cp -dprv scripts ${RPM_BUILD_ROOT}/usr/lib/python1.5/site-packages/pymol/
echo pymol/modules > ${RPM_BUILD_ROOT}/usr/lib/python1.5/site-packages/pymol.pth
echo pymol/modules/pymol >> ${RPM_BUILD_ROOT}/usr/lib/python1.5/site-packages/pymol.pth
mkdir -p ${RPM_BUILD_ROOT}/usr/bin
install -m 755 pymol.com ${RPM_BUILD_ROOT}/usr/bin/pymol
mkdir -p ${RPM_BUILD_ROOT}/usr/doc/%{name}-%{version}/
install -m 644 LICENSE ${RPM_BUILD_ROOT}/usr/doc/%{name}-%{version}/
install -m 644 DEVELOPERS ${RPM_BUILD_ROOT}/usr/doc/%{name}-%{version}/
install -m 644 CHANGES ${RPM_BUILD_ROOT}/usr/doc/%{name}-%{version}/
install -m 644 setup/sample.pymolrc ${RPM_BUILD_ROOT}/usr/doc/%{name}-%{version}/
cp -dprv examples ${RPM_BUILD_ROOT}/usr/doc/%{name}-%{version}/
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
/usr/lib/python1.5/site-packages/pymol/
/usr/lib/python1.5/site-packages/pymol.pth
/usr/doc/%{name}-%{version}/
/usr/bin/pymol
%changelog
|