Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
0973147ad2 dist-git conversion 2010-07-29 14:54:09 +00:00
Bill Nottingham
fa2fef8cbf Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:11:55 +00:00
d83830aa78 initial import into F-9 branch 2008-06-13 09:45:38 +00:00
1a1a6179c6 Initialize branch F-9 for vaspview 2008-06-04 21:30:14 +00:00
7 changed files with 95 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
vaspview-1.05.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: vaspview
# $Id$
NAME := vaspview
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1 @@
c04d25e15e187a7241bccd62ed9a7b0f vaspview-1.05.tar.gz

10
vaspview.desktop Normal file
View file

@ -0,0 +1,10 @@
[Desktop Entry]
Name=vaspview
Comment=VASP Data Viewer
Exec=vaspview
Icon=vaspview
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Education;Chemistry;DataVisualization;

BIN
vaspview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

83
vaspview.spec Normal file
View file

@ -0,0 +1,83 @@
Name: vaspview
Summary: VASP Data Viewer
Version: 1.05
Release: 2%{?dist}
# http://vaspview.sourceforge.net/%{name}-%{version}-source.tar.gz
# Source below is the same as the original sans the two Win32 binaries in Win32/Release/
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.desktop
Source2: %{name}.png
URL: http://vaspview.sourceforge.net/
License: GPLv2+
Group: Applications/Engineering
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
BuildRequires: desktop-file-utils
BuildRequires: glut-devel
BuildRequires: libXi-devel
BuildRequires: libXmu-devel
BuildRequires: libXext-devel
%description
This is a scientific visualization package for examining output files
generated by the Vienna Ab-initio Simulation Package, a package for
performing ab-initio quantum-mechanical molecular dynamics using
pseudopotentials and a plane wave basis set. The project was initiated
when a chemical engineering professor requested assitance in visualizing
output files produced by the above package. It displays iso-surfaces and
slices of a three-dimensional data set, along with the atoms that make
up the molecule the calculations were performed for, and allows symbolic
bonds to be inserted between them.
%prep
%setup -q -n %{name}
%build
pushd src
%{__make} %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
popd
%install
rm -rf %{buildroot}
install -d %{buildroot}/%{_bindir}
install -pm755 bin/%{name} %{buildroot}/%{_bindir}
install -d %{buildroot}%{_datadir}/applications
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{SOURCE1}
install -d %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps
install -pm644 %{SOURCE2} %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%clean
rm -rf %{buildroot}
%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%files
%defattr(-,root,root)
%doc license.txt readme.txt
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%changelog
* Sat May 31 2008 Dominik Mierzejewski <rpm@greysector.net> 1.05-2
- add dist tag
- drop vendor from desktop file name
- make smp flags optional
- removed the two Win32 binaries from source tarball
* Mon Apr 28 2008 Dominik Mierzejewski <rpm@greysector.net> 1.05-1
- initial package