149 lines
4.8 KiB
RPMSpec
149 lines
4.8 KiB
RPMSpec
#
|
|
# spec file for package garlic (Version 1.6)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: garlic
|
|
BuildRequires: update-desktop-files xorg-x11 xorg-x11-devel
|
|
License: LGPL v2 or later
|
|
Group: Productivity/Scientific/Chemistry
|
|
URL: http://www.ccp14.ac.uk/ccp/web-mirrors/garlic/garlic/
|
|
Autoreqprov: on
|
|
Version: 1.6
|
|
Release: 83
|
|
Summary: Molecular Graphics Visualization Tool
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Source1: %{name}-%{version}-doc.tar.bz2
|
|
Source2: %{name}.1.gz
|
|
Patch: %{name}-%{version}.patch
|
|
Patch1: garlic-%{version}-libpath.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if "%(xft-config --prefix)" == "/usr"
|
|
%define _xorg7libs %_lib
|
|
%define _xorg7libs32 lib
|
|
%define _xorg7bin bin
|
|
%define _xorg7_mandir %_mandir
|
|
%define _xorg7pixmaps include
|
|
%define _xorg7libshare share
|
|
%define _xorg7_xkb /usr/share/X11/xkb
|
|
%define _xorg7_termcap /usr/lib/X11/etc
|
|
%define _xorg7_serverincl /usr/include/xorg
|
|
%define _xorg7_fonts /usr/share/fonts
|
|
#%define _xorg7_config /usr/share/X11/config #use libshare macro
|
|
%define _xorg7_prefix /usr
|
|
%else
|
|
%define _xorg7libs X11R6/%_lib
|
|
%define _xorg7libs32 X11R6/lib
|
|
%define _xorg7bin X11R6/bin
|
|
%define _xorg7_mandir /usr/X11R6/man
|
|
%define _xorg7pixmaps X11R6/include
|
|
%define _xorg7libshare X11R6/lib/
|
|
%define _xorg7_xkb /etc/X11/xkb
|
|
%define _xorg7_termcap /usr/X11R6/lib/X11/etc
|
|
%define _xorg7_serverincl /usr/X11R6/lib/Server/include
|
|
%define _xorg7_fonts /usr/X11R6/lib/X11/fonts
|
|
#%define _xorg7_config /usr/X11R6/lib/X11/config #use libshare macro
|
|
%define _xorg7_prefix /usr/X11R6
|
|
%endif
|
|
|
|
%description
|
|
Garlic is an X Window System tool intended for the molecular
|
|
visualization of protein structure, DNA structure, and biological
|
|
macromolecules. It reads Brookhaven Protein Database (PDB) files.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Damir Zucic <zucic@pref.etfos.hr>
|
|
|
|
%prep
|
|
%setup -b 0
|
|
%setup -T -D -a 1
|
|
%patch -p 1
|
|
%patch1
|
|
# fix executable permission on text files
|
|
cd garlic-1.6
|
|
chmod -x README favicon.ico tolower.script garlic.gif cookbook/garlic.gif precompiled_packages/garlic.gif
|
|
cd ..
|
|
|
|
%build
|
|
%if "%(xft-config --prefix)" == "/usr"
|
|
make %{?jobs:-j%jobs} CCOPT="$RPM_OPT_FLAGS" LIBPATH="-L/usr/%{_lib}"
|
|
%else
|
|
make %{?jobs:-j%jobs} CCOPT="$RPM_OPT_FLAGS" LIBPATH="-L/usr/X11R6/%{_lib}"
|
|
%endif
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT/{usr/%{_xorg7bin},etc,%{_xorg7_mandir}/man1/}
|
|
cp -a garlic $RPM_BUILD_ROOT/usr/%{_xorg7bin}/
|
|
cp -a .garlicrc $RPM_BUILD_ROOT/etc/garlicrc
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/garlic
|
|
cp -a residues.pdb $RPM_BUILD_ROOT/usr/share/garlic/residues.pdb
|
|
mv %{name}-%{version} html
|
|
install -m 644 %{S:2} $RPM_BUILD_ROOT/%{_xorg7_mandir}/man1/
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
|
|
cp -a garlic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/garlic.xpm
|
|
rm -rf html/source html/mouse/.xvpics
|
|
chmod 644 html/{README,bold_statement.html,docs.html,favicon.ico,garlic.gif,index.html,monster.gif,versions.html}
|
|
%suse_update_desktop_file -n -c %name "Garlic" Garlic garlic garlic Education Science Chemistry
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc html 1mal.script 2fcp.script 2omf.script 2por.script BUGS COPYING ENVIRONMENT HISTORY INSTALL README TODO
|
|
%doc %{_xorg7_mandir}/man1/*
|
|
%config /etc/garlicrc
|
|
/usr/%{_xorg7bin}/%{name}
|
|
/usr/share/garlic
|
|
/usr/share/garlic/residues.pdb
|
|
/usr/share/applications/%{name}.desktop
|
|
/usr/share/pixmaps/garlic.xpm
|
|
|
|
%clean
|
|
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot}
|
|
|
|
%changelog
|
|
* Mon Sep 03 2007 - lmichnovic@suse.cz
|
|
- fixed rpmlint errors: executable doc files
|
|
* Mon Sep 25 2006 - lmichnovic@suse.cz
|
|
- update to version 1.6
|
|
* new rendering features
|
|
- create desktop file
|
|
* Fri Aug 11 2006 - lmichnovic@suse.cz
|
|
- builds also with X.org 7.x, checks prefix in X.org
|
|
- specifying libpath in spec file, not in Makefile (libpath.patch)
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Fri Jan 13 2006 - lmichnovic@suse.cz
|
|
- fixed missing needed file residues.pdb
|
|
* Fri Jan 06 2006 - lmichnovic@suse.cz
|
|
- update to version 1.5
|
|
* Thu May 12 2005 - meissner@suse.de
|
|
- use RPM_OPT_FLAGS
|
|
* Fri Jan 21 2005 - postadal@suse.cz
|
|
- updated to version 1.4
|
|
* Thu Aug 12 2004 - postadal@suse.cz
|
|
- updated to version 1.3
|
|
* Fri Mar 19 2004 - postadal@suse.cz
|
|
- removed useless .xvpics directory
|
|
* Sat Jan 10 2004 - adrian@suse.de
|
|
- build as user
|
|
* Mon Feb 03 2003 - postadal@suse.cz
|
|
- updated to version 1.2
|
|
* now can create and edit molecular structures
|
|
* Thu Feb 28 2002 - postadal@suse.cz
|
|
- fix file permits, moved man page
|
|
* Tue Feb 12 2002 - postadal@suse.cz
|
|
- fix lib64
|
|
* Thu Jan 24 2002 - postadal@suse.cz
|
|
- fix specfile
|
|
* Fri Jan 18 2002 - postadal@suse.cz
|
|
- added package garlic-1.1
|