Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > ea3c46492eda397a0395831c9ad86dff > files > 6

gabedit-2.2.9-1mdv2010.1.src.rpm

%define tarver	%(echo %{version} | sed -e 's/\\.//g')

Name: 	 	gabedit
Summary: 	GUI for comupational chemistry
Version: 	2.2.9
Release: 	%mkrel 1

Source:		http://prdownloads.sourceforge.net/gabedit/GabeditSrc%{tarver}.tar.gz
Patch0:		90_config_for_debian.dpatch
Patch1:		fix_ftbfs_enable_gtk_deprecated.dpatch
Patch2:		fix_programming_issues.dpatch
Patch3:		gabedit-2.2.0-fix-str-fmt.patch
URL:		http://gabedit.sourceforge.net/
License:	BSD
Group:		Sciences/Chemistry
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:	jpeg-devel gtk2-devel libmesaglu-devel
BuildRequires:	gtkglarea-devel

%description
Gabedit is a Graphical User Interface to Gamess-US, Gaussian, Molcas, Molpro
and MPQC computational chemistry packages. Gabedit includes graphical
facilities for generating keywords and options, molecule specifications and
their input sections for even the most advanced calculation types. Gabedit
includes an advanced Molecule Builder. You can use it to rapidly sketch in
molecules and examine them in three dimensions. You can build molecules by
atom, ring, group, amino acid and nucleoside. You can also read geometry from
a file. Most major molecular file formats are supported.

Gabedit includes a Gamess-US, Gaussian, Molcas, Molpro and MPQC Calculation
Setup window which allows you to set up Gamess-US, Gaussian, Molcas, Molpro
and MPQC jobs in a simple and straightforward manner.

Gabedit can graphically display a variety of Gamess-US, Gaussian, Molcas,
Molpro, MPQC and (partially) ADF calculation results, including the following:
- Molecular orbitals
- Surfaces from the electron density, electrostatic potential, NMR shielding
  density, and other properties.
- Surfaces may be displayed in solid, translucent and wire mesh modes. They
  are can be colorcoded by a separate property.
- Contours (colorcoded), Planes colorcoded, Dipole. XYZ axes and the principal
  axes of the molecule.
- Animation of the normal modes corresponding to vibrational frequencies.
- Animation of the rotation of geometry, surfaces, contours, planes colorcoded,
  xyz and the principal axes of the molecule.
- Animation of contours, Animation of planes colorcoded.

Gabedit can display IR and Raman computed spectra.

Gabedit can generate a povray file for geometry (including hydrogen's bond),
surfaces (including colorcoded surfaces), contours, planes colorcoded.

Gabedit can save picture in BMP, JPEG, PNG, PPM and PS format.

Gabedit can generate automatically a series of pictures for animation
(vibration, geometry convergence, rotation, contours, planes colorcoded).

%prep
%setup -q -n GabeditSrc%{tarver}
%patch0 -p1
%patch1 -p1 -b .gtk
#patch2 -p1
%patch3 -p0

%build
%define Werror_cflags %nil
%make COMMONCFLAGS="%{optflags}" LDFLAGS="%{?ldflags}"
								
%install
rm -fr %buildroot
mkdir -p $RPM_BUILD_ROOT/%_bindir
cp %name $RPM_BUILD_ROOT/%_bindir

#menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=gabedit
Comment=Quantum chemistry interface
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Education;Chemistry;
EOF

#icons
mkdir -p $RPM_BUILD_ROOT/%_liconsdir
cp icons/Gabedit48.png $RPM_BUILD_ROOT/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_iconsdir
cp icons/Gabedit32.png $RPM_BUILD_ROOT/%_iconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_miconsdir
cp icons/Gabedit16.png $RPM_BUILD_ROOT/%_miconsdir/%name.png

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%update_menus
%endif
		
%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files
%defattr(-,root,root)
%doc License utils
%{_bindir}/%name
%{_datadir}/applications/*
%{_liconsdir}/%name.png
%{_iconsdir}/%name.png
%{_miconsdir}/%name.png


%changelog
* Sun Jan 03 2010 Frederik Himpe <fhimpe@mandriva.org> 2.2.9-1mdv2010.1
+ Revision: 485873
- update to new version 2.2.9

* Tue Sep 15 2009 Frederik Himpe <fhimpe@mandriva.org> 2.2.5-2mdv2010.0
+ Revision: 443162
- Really update to version 2.2.5

* Tue Sep 15 2009 Frederik Himpe <fhimpe@mandriva.org> 2.2.5-1mdv2010.0
+ Revision: 443150
- update to new version 2.2.5

* Wed Jul 01 2009 Funda Wang <fwang@mandriva.org> 2.2.0-1mdv2010.0
+ Revision: 391292
- New version 2.2.0
- disable format checking as there are too many errors :(

* Tue Nov 04 2008 Funda Wang <fwang@mandriva.org> 2.1.8-1mdv2009.1
+ Revision: 299709
- Add br
- add ubuntu patches
- New version 2.1.8

  + Michael Scherer <misc@mandriva.org>
    - fix url, (thanks to angelo naselli)

* Thu Jun 19 2008 Austin Acton <austin@mandriva.org> 2.1.4-1mdv2009.0
+ Revision: 226127
- new version
- fix URL

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Wed Mar 19 2008 Emmanuel Andry <eandry@mandriva.org> 2.0.10-2mdv2008.1
+ Revision: 189019
- rebuild

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Fri Dec 28 2007 Austin Acton <austin@mandriva.org> 2.0.10-1mdv2008.1
+ Revision: 138733
- new menu
- new version
- patch from debian

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request
    - import gabedit


* Tue May 23 2006 Austin Acton <austin@mandriva.org> 2.0.6-1mdk
- new release
- mkrel
- update description
- move to gtk2
- use included icons
- package utils in docdir

* Mon Jan 31 2005 Austin Acton <austin@mandrake.org> 1.2.8-1mdk
- 1.2.8

* Mon Dec 6 2004 Austin Acton <austin@mandrake.org> 1.2.6-1mdk
- 1.2.6
- source URL

* Thu Sep 30 2004 Austin Acton <austin@mandrake.org> 1.2.4-1mdk
- 1.2.4
- new menu

* Wed Jun 30 2004 Austin Acton <austin@mandrake.org> 1.1.9-1mdk
- 1.1.9
- fix buildrequires for lib64
- new menu

* Mon Sep 1 2003 Austin Acton <aacton@yorku.ca> 1.1.4-1mdk
- 1.1.4

* Sun Apr 27 2003 Austin Acton <aacton@yorku.ca> 1.1.1-3mdk
- fix URL

* Fri Apr 25 2003 Austin Acton <aacton@yorku.ca> 1.1.1-2mdk
- buildrequires glu

* Mon Mar 31 2003 Austin Acton <aacton@yorku.ca> 1.1.1-1mdk
- initial package