Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fd31bfbc3 | ||
|
|
a64a92ba91 | ||
| 96a5d65eb2 | |||
| 3a795dad87 |
7 changed files with 95 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
vaspview-1.05.tar.gz
|
||||||
21
Makefile
21
Makefile
|
|
@ -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)
|
|
||||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
||||||
|
c04d25e15e187a7241bccd62ed9a7b0f vaspview-1.05.tar.gz
|
||||||
10
vaspview.desktop
Normal file
10
vaspview.desktop
Normal 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
BIN
vaspview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
83
vaspview.spec
Normal file
83
vaspview.spec
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue