[rasmol/f19] Initial import

Dmitrij S. Kryzhevich krege at fedoraproject.org
Sat Sep 14 05:45:53 UTC 2013


commit e52ce2628c428c1ff6576c3841938bb8ebe42a57
Author: Dmitrij S. Kryzhevich <krege at land.ru>
Date:   Sat Sep 14 12:45:41 2013 +0700

    Initial import

 .gitignore                     |    1 +
 grasmol.desktop                |    9 ++
 rasmol                         |    6 +
 rasmol-2.7.5-23Jul09-64b.patch |   12 ++
 rasmol-2.7.5-23Jul09-gtk.patch |   12 ++
 rasmol-2.7.5-23Jul09-man.patch |    8 ++
 rasmol.desktop                 |    9 ++
 rasmol.png                     |  Bin 0 -> 3842 bytes
 rasmol.spec                    |  219 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 10 files changed, 277 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9300a3d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/RasMol_2.7.5.tar.gz
diff --git a/grasmol.desktop b/grasmol.desktop
new file mode 100644
index 0000000..1a8127e
--- /dev/null
+++ b/grasmol.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=GTK-RasMol
+Comment=Molecular Graphics Visualization Tool
+Exec=grasmol
+Icon=rasmol
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=Science;Chemistry;Graphics;
diff --git a/rasmol b/rasmol
new file mode 100644
index 0000000..baa90fa
--- /dev/null
+++ b/rasmol
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+RASMOLPATH=/usr/share/rasmol
+export RASMOLPATH
+
+xterm -e rasmolb "$@" &
\ No newline at end of file
diff --git a/rasmol-2.7.5-23Jul09-64b.patch b/rasmol-2.7.5-23Jul09-64b.patch
new file mode 100644
index 0000000..3cff0fa
--- /dev/null
+++ b/rasmol-2.7.5-23Jul09-64b.patch
@@ -0,0 +1,12 @@
+diff -urp rasmol-2.7.5-23Jul09/src/rasmol.h rasmol-2.7.5-23Jul09-64b/src/rasmol.h
+--- rasmol-2.7.5-23Jul09/src/rasmol.h	2009-07-20 21:08:43.000000000 +0700
++++ rasmol-2.7.5-23Jul09-64b/src/rasmol.h	2013-02-22 14:40:00.378574163 +0700
+@@ -125,6 +125,8 @@
+ #define VECTOR_FAR 
+ #endif
+ 
++#define _LONGLONG
++
+ /*========================*/
+ /*  Default User Options! */
+ /*========================*/
diff --git a/rasmol-2.7.5-23Jul09-gtk.patch b/rasmol-2.7.5-23Jul09-gtk.patch
new file mode 100644
index 0000000..f5b50e3
--- /dev/null
+++ b/rasmol-2.7.5-23Jul09-gtk.patch
@@ -0,0 +1,12 @@
+diff -urp rasmol-2.7.5-23Jul09/src/egg-macros.h rasmol-2.7.5-23Jul09-gtk/src/egg-macros.h
+--- rasmol-2.7.5-23Jul09/src/egg-macros.h	2009-07-22 05:35:48.000000000 +0700
++++ rasmol-2.7.5-23Jul09-gtk/src/egg-macros.h	2013-02-20 17:43:06.357698145 +0700
+@@ -9,7 +9,7 @@
+ #ifndef _EGG_MACROS_H_
+ #define _EGG_MACROS_H_
+ 
+-#include <glib/gmacros.h>
++#include <glib.h>
+ 
+ G_BEGIN_DECLS
+ 
diff --git a/rasmol-2.7.5-23Jul09-man.patch b/rasmol-2.7.5-23Jul09-man.patch
new file mode 100644
index 0000000..d36360b
--- /dev/null
+++ b/rasmol-2.7.5-23Jul09-man.patch
@@ -0,0 +1,8 @@
+diff -urp rasmol-2.7.5-23Jul09/doc/rasmol.1 rasmol-2.7.5-23Jul09-man/doc/rasmol.1
+--- rasmol-2.7.5-23Jul09/doc/rasmol.1	2009-07-22 02:25:29.000000000 +0700
++++ rasmol-2.7.5-23Jul09-man/doc/rasmol.1	2013-07-22 15:08:21.832057228 +0700
+@@ -1,4 +1,3 @@
+-.PU
+ .TH RASMOL 1 "July 2009"
+ .SH NAME
+ rasmol \- Molecular Graphics Visualisation Tool v2.7.5
diff --git a/rasmol.desktop b/rasmol.desktop
new file mode 100644
index 0000000..4ce07d7
--- /dev/null
+++ b/rasmol.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=RasMol
+Comment=Molecular Graphics Visualization Tool
+Exec=rasmol
+Icon=rasmol
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=Science;Chemistry;Graphics;
diff --git a/rasmol.png b/rasmol.png
new file mode 100644
index 0000000..a997d7f
Binary files /dev/null and b/rasmol.png differ
diff --git a/rasmol.spec b/rasmol.spec
new file mode 100644
index 0000000..2716fc7
--- /dev/null
+++ b/rasmol.spec
@@ -0,0 +1,219 @@
+Name:           rasmol
+Summary:        Molecular Graphics Visualization Tool
+Version:        2.7.5
+Release:        10%{?dist}
+License:        GPLv2 and LGPLv2
+Group:          Applications/Engineering
+URL:            http://www.rasmol.org
+Source:         http://www.rasmol.org/software/RasMol_%{version}.tar.gz
+Source1:        rasmol.png
+Source2:        rasmol.desktop
+Source3:        grasmol.desktop
+Source4:        rasmol
+Patch1:         rasmol-2.7.5-23Jul09-gtk.patch
+Patch2:         rasmol-2.7.5-23Jul09-64b.patch
+Patch3:         rasmol-2.7.5-23Jul09-man.patch
+
+BuildRequires:  desktop-file-utils
+BuildRequires:  imake
+BuildRequires:  libX11-devel
+BuildRequires:  libXext-devel
+BuildRequires:  libXi-devel
+BuildRequires:  libXpm-devel
+
+BuildRequires:  CVector-devel
+BuildRequires:  NearTree-devel
+BuildRequires:  CQRlib-devel
+BuildRequires:  CBFlib-devel
+BuildRequires:  xforms-devel
+
+# GTK version:
+BuildRequires:  gtk2-devel
+BuildRequires:  vte-devel
+
+# Script better support
+Requires:       xterm
+
+# Icons dir
+Requires:       hicolor-icon-theme
+
+%description
+RasMol is a molecular graphics program intended for the visualization of
+proteins, nucleic acids and small molecules. The program is aimed at
+display, teaching and generation of publication quality images.
+
+%package gtk
+Summary:  GTK version of %{name}
+Group:    Applications/Engineering
+Requires: %{name}%{?_isa} = %{version}-%{release}
+%description gtk
+%{summary}.
+
+%package doc
+Summary:   Documentation and examples for %{name}
+Group:     Applications/Engineering
+BuildArch: noarch
+%description doc
+%{summary}.
+
+%prep
+%setup -qn rasmol-2.7.5-23Jul09
+# Fix GTK2 headers dependency
+%patch1 -p1
+# 64b version require one more definition
+%if "%{?__isa_bits}"  == "64"
+%patch2 -p1
+%endif
+# Fix man file
+%patch3 -p1
+
+pushd src
+# Fix harcoded vars
+# 1) All substitutions beside RASMOLDIR. It is what could brake compilation and compilation only so it is instalation safety.
+# 2) RASMOLDIR. It is handle where place PDB and help files. If they (files) whould be in some
+#    other place, /usr/lib/rpm/check-files will provide an error.
+sed -i -e 's|PKGDIR = $(HOME)|PKGDIR = /usr|' -e 's|/usr/local|/usr|g' \
+-e 's|RASMOLDIR = $(USRLIBDIR)/rasmol/|RASMOLDIR = %{_datadir}/rasmol/|' \
+-e 's|CBFLIB_DIR)/include/cbflib|CBFLIB_DIR)/include/cbf|' Imakefile_base
+# Fix 64b libs location
+%if "%{?_lib}" == "lib64"
+sed -i -e 's|_DIR)/lib|_DIR)/lib|' Imakefile_base
+%endif
+popd
+
+# Mac only
+rm data/RSML_fixup.csh
+# Fix perms
+chmod 0644 data/* doc/* ChangeLog/* html_graphics/*
+chmod 0644 src/*.[ch]
+chmod 0644 ChangeLog.html NOTICE README.html TODO.html history.html PROJECTS
+
+# unzip pdf-s
+ls doc/*.pdf.gz | xargs gzip -d
+
+iconv -f ISO-8859-1 -t UTF-8 doc/itrasmol2721.hlp > doc/itrasmol2721_utf.hlp
+mv doc/itrasmol2721_utf.hlp doc/itrasmol2721.hlp
+
+%build
+pushd src
+
+# GTK version
+./rasmol_build_options.sh --pixeldepth=32 --use_gtk
+xmkmf
+make %{?_smp_mflags} CCOPTIONS="%{optflags}" EXTRA_LIBRARIES="%__global_ldflags"
+mv rasmol grasmol
+
+# Clean
+make distclean
+
+# Xlib version
+./rasmol_build_options.sh --pixeldepth=32 --use_xformslib
+xmkmf
+make %{?_smp_mflags} CCOPTIONS="%{optflags}" EXTRA_LIBRARIES="%__global_ldflags"
+
+popd
+
+%install
+make -C src DESTDIR="%{buildroot}" install install.man
+
+# Make "rasmol" to be "binary rasmol" as main run will be in the script
+mv %{buildroot}%{_bindir}/rasmol %{buildroot}%{_bindir}/rasmolb
+# And it is "this" scrit that call rasmolb through xterm
+install -D -p -m 755 %{SOURCE4} %{buildroot}%{_bindir}/rasmol
+
+# Install GTK version of rasmol
+install -D -p -m 755 src/grasmol %{buildroot}%{_bindir}/grasmol
+
+install -p -d %{buildroot}%{_datadir}/rasmol/data
+cp data/* %{buildroot}%{_datadir}/rasmol/data/
+
+install -D -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
+
+desktop-file-install -m 644 --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE2}
+desktop-file-install -m 644 --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE3}
+
+# Remove dublicates with -doc subpackage
+rm -f %{buildroot}%{_datadir}/%{name}/{1crn,3cro}.pdb
+
+# not all in doc/ must be in %%doc
+# it should be here in %%install section as man page for rasmol is installed from doc/ dir
+mv doc doc_prep && mkdir doc
+mv doc_prep/*.pdf doc_prep/*.html doc_prep/Licenses.txt doc_prep/README doc_prep/*.hlp doc_prep/RASLIC doc/
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%doc ChangeLog
+%doc GPL NOTICE RASLIC README.txt
+%{_bindir}/rasmol
+%{_bindir}/rasmolb
+%{_datadir}/%{name}
+%exclude %{_datadir}/%{name}/data
+%{_mandir}/man1/%{name}.1*
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
+
+%files gtk
+%{_bindir}/grasmol
+%{_datadir}/applications/grasmol.desktop
+
+%files doc
+%doc doc html_graphics
+%doc ChangeLog.html ChangeLog.txt GPL NOTICE PROJECTS RASLIC README.html README.txt TODO.html TODO.txt history.html
+%dir %{_datadir}/%{name}
+%dir %{_datadir}/%{name}/data
+%{_datadir}/%{name}/data/*
+
+%changelog
+* Thu Sep 12 2013 Dmitrij S. Kryzhevich <krege at land.ru> 2.7.5-10
+- Fixed dir ownership.
+- Move some files from main package to -doc.
+
+* Thu Jul 25 2013 Dmitrij S. Kryzhevich <krege at land.ru> 2.7.5-9
+- Some missed -p key for install command.
+- Added missed entries to the prev changelog section (man file and link flags).
+
+* Mon Jul 22 2013 Dmitrij S. Kryzhevich <krege at land.ru> 2.7.5-8
+- Fixed bogus dates.
+- Added GPL file to the -doc subpackage.
+- Added -p key to "install" command.
+- Fixed man file. Added patch for it.
+- Added Fedora link flags.
+
+* Thu Mar 14 2013 Dmitrij S. Kryzhevich <krege at land.ru> 2.7.5-7
+- Let apply 64b patch according to the __isa_bits macros.
+
+* Wed Mar 13 2013 Dmitrij S. Kryzhevich <krege at land.ru> 2.7.5-6
+- Remove update-desktop-database from post and postun scripts as .desktop files do not contain MimeType key.
+
+* Wed Mar 13 2013 Dmitrij S. Kryzhevich <krege at land.ru> 2.7.5-5
+- Dependency for -gtk subpackage uses ?_isa macros.
+- Drop main package dependency for -doc subpackage.
+- Fix files section for -doc according new deps.
+- sed substitutions were commented.
+- Fix previouse changelog (added last string).
+
+* Mon Mar 04 2013 Dmitrij S. Kryzhevich <krege at land.ru> 2.7.5-4
+- doc subpackage is noarch now.
+- Some cleanups.
+- Fix encoding for doc/itrasmol2721.hlp.
+
+* Mon Mar 04 2013 Dmitrij S. Kryzhevich <krege at land.ru> 2.7.5-3
+- Separate some docs and examples in -doc subpackage.
+
+* Sun Mar 03 2013 Dmitrij S. Kryzhevich <krege at land.ru> 2.7.5-2
+- Remove defattr in files section.
+- Fix "rasmol" startup script.
+
+* Mon Feb 25 2013 Dmitrij S. Kryzhevich <krege at land.ru> 2.7.5-1
+- First build.
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..a4c1346 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2f43c606775248398dc71ce559b35245  RasMol_2.7.5.tar.gz


More information about the scm-commits mailing list