From 1a3b62d171e3573ddb859474e7d2db811fa31cd9 Mon Sep 17 00:00:00 2001 From: Dominik Mierzejewski Date: Jun 13 2008 09:36:39 +0000 Subject: initial import into devel --- diff --git a/.cvsignore b/.cvsignore index e69de29..45a6bb1 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +vaspview-1.05.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..cb93d42 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +vaspview-1_05-2_fc7:HEAD:vaspview-1.05-2.fc7.src.rpm:1213349742 diff --git a/sources b/sources index e69de29..228cc75 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c04d25e15e187a7241bccd62ed9a7b0f vaspview-1.05.tar.gz diff --git a/vaspview.desktop b/vaspview.desktop new file mode 100644 index 0000000..993ee3a --- /dev/null +++ b/vaspview.desktop @@ -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; + diff --git a/vaspview.png b/vaspview.png new file mode 100644 index 0000000..10884b1 Binary files /dev/null and b/vaspview.png differ diff --git a/vaspview.spec b/vaspview.spec new file mode 100644 index 0000000..2d87be3 --- /dev/null +++ b/vaspview.spec @@ -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 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 1.05-1 +- initial package