File: p4vasp-0.3.30-1.spec

package info (click to toggle)
p4vasp 0.3.30+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,504 kB
  • sloc: python: 37,179; cpp: 13,894; ansic: 2,076; makefile: 377; sql: 207; xml: 102; sh: 13
file content (225 lines) | stat: -rw-r--r-- 10,475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
Summary: A visualisation program for the Vienna Ab-initio Simulation Package (VASP).
Name: p4vasp
Version: 0.3.30
Release: 1
Copyright: GPL,LGPL
Group: Applications/Productivity
Source0: p4vasp-0.3.30.tgz
BuildRoot: /tmp/buildroot_p4vasp
Requires: python >= 2.2, python-gtk, fltk, python-numeric

%description
P4vasp is a visualization suite for the Vienna Ab-initio Simulation
Package (VASP). It contains an extensible GUI framework, that can be used to view
material structure, density of states, band-structure and more.
It provides a python library, that greatly simplifies
the process of manipulation of the VASP input and output data in python scripts.
P4vasp utilizes also many handy routines and objects e.g. for creating 2D graphs,
data storage (xml,DOM) or simple matrix library.

For the convenience, two packages are embedded in this distribution:
a slightly modified piddle package (http://piddle.sourceforge.net)
and the ODPdom library (http://www.sourceforge.net/projects/odpdom).
ODPdom a simple XML-DOM parser capable of reading large (~100MB) xml files.
%prep
%setup
#%patch -p1 -b .buildroot

%build
make
%install
rm -rf          $RPM_BUILD_ROOT

P4VASP_HOME="$RPM_BUILD_ROOT/usr/lib/p4vasp"
SITE_PACKAGES="$RPM_BUILD_ROOT/usr/lib/python/site-packages"
BINDIR="$RPM_BUILD_ROOT/usr/bin"
INCLUDEDIR="$RPM_BUILD_ROOT/usr/include"
LIBDIR="$RPM_BUILD_ROOT/usr/lib"

mkdir -p                                 $SITE_PACKAGES/p4vasp
cp -R         lib/p4vasp                 $SITE_PACKAGES
chmod  -R 755                            $SITE_PACKAGES/p4vasp
chmod     644                            $SITE_PACKAGES/p4vasp/*
chmod  -R 755                            $SITE_PACKAGES/p4vasp/applet
chmod  -R 644                            $SITE_PACKAGES/p4vasp/applet/*
chmod  -R 755                            $SITE_PACKAGES/p4vasp/paint3d
chmod  -R 644                            $SITE_PACKAGES/p4vasp/paint3d/*
chmod  -R 755                            $SITE_PACKAGES/p4vasp/export
chmod  -R 644                            $SITE_PACKAGES/p4vasp/export/*
chmod  -R 755                            $SITE_PACKAGES/p4vasp/piddle
install -m644 src/cp4vasp.py             $SITE_PACKAGES
install -m755 src/_cp4vasp.so            $SITE_PACKAGES

mkdir -p                                 $P4VASP_HOME
cp -R         data                       $P4VASP_HOME
cp -R         utils                      $P4VASP_HOME
chmod  -R 755                            $P4VASP_HOME/data
chmod     644                            $P4VASP_HOME/data/*
chmod     755                            $P4VASP_HOME/data/glade 
chmod     644                            $P4VASP_HOME/data/glade/*
chmod     755                            $P4VASP_HOME/data/glade/pixmaps
chmod     644                            $P4VASP_HOME/data/glade/pixmaps/*
chmod     755                            $P4VASP_HOME/data/glade2 
chmod     644                            $P4VASP_HOME/data/glade2/*
chmod     755                            $P4VASP_HOME/data/glade2/pixmaps
chmod     644                            $P4VASP_HOME/data/glade2/pixmaps/*
chmod     755                            $P4VASP_HOME/data/graphs
chmod     644                            $P4VASP_HOME/data/graphs/*
chmod     755                            $P4VASP_HOME/data/images
chmod     644                            $P4VASP_HOME/data/images/*
chmod     755                            $P4VASP_HOME/data/database
chmod     644                            $P4VASP_HOME/data/database/*
chmod  -R 755                            $P4VASP_HOME/utils
install -m644 BUGS FAQS LICENSE          $P4VASP_HOME
install -m644 README Required.txt        $P4VASP_HOME
install -m755 uninstall.sh               $P4VASP_HOME/uninstall.sh
install -m755 diagnostic.py              $P4VASP_HOME/diagnostic.py

mkdir -p                                 $BINDIR
install -m755 p4v.py                     $BINDIR/p4v.py
install -m755 p4v.py                     $BINDIR/p4v

mkdir -p                                 $P4VASP_HOME
cp -R         doc                        $P4VASP_HOME
chmod  -R 755				 $P4VASP_HOME/doc
chmod     644				 $P4VASP_HOME/doc/*
chmod  -R 755				 $P4VASP_HOME/doc/api
chmod     644				 $P4VASP_HOME/doc/api/*
chmod  -R 755				 $P4VASP_HOME/doc/api/c
chmod  -R 755				 $P4VASP_HOME/doc/api/python
chmod  -R 755				 $P4VASP_HOME/doc/intro
chmod     644				 $P4VASP_HOME/doc/intro/*
	
mkdir -p                                 $INCLUDEDIR/ODP
mkdir -p                                 $INCLUDEDIR/p4vasp
cp -R         odpdom/include/ODP         $INCLUDEDIR
cp -R         src/include/p4vasp         $INCLUDEDIR
chmod     755                            $INCLUDEDIR/ODP
chmod     755                            $INCLUDEDIR/p4vasp
chmod     644                            $INCLUDEDIR/ODP/*
chmod     644                            $INCLUDEDIR/p4vasp/*

cp            src/libp4vasp.a            $LIBDIR
cp            odpdom/libODP.a            $LIBDIR
chmod     644                            $LIBDIR/libp4vasp.a	
chmod     644                            $LIBDIR/libODP.a	

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README LICENSE FAQS BUGS Required.txt doc

/usr/bin/p4v.py
/usr/bin/p4v
/usr/lib/p4vasp
/usr/lib/libp4vasp.a
/usr/lib/libODP.a
/usr/include/p4vasp
/usr/include/ODP
/usr/lib/python/site-packages/p4vasp
/usr/lib/python/site-packages/cp4vasp.py
/usr/lib/python/site-packages/_cp4vasp.so

%changelog


* Sun Aug 16 2015 Orest Dubay <dubay@danubiananotech.com>
- Primitive structure and force constants
* Tue Feb 18 2014 Orest Dubay <dubay@danubiananotech.com>
- Crystal system wizard
* Sun Oct 20 2013 Orest Dubay <dubay@danubiananotech.com>
- Fixing crash related to Selection
* Sat Oct  5 2013 Orest Dubay <dubay@danubiananotech.com>
- Fix after swig update - thanks to Graham Inggs
* Thu Aug 24 2013 Orest Dubay <dubay@danubiananotech.com>
- K-points viewer applet
* Thu Apr 11 2013 Orest Dubay <dubay@danubiananotech.com>
- Exporter introduced - allows to export geometries and isosurfaces to povray
* Wed Dec 12 2012 Orest Dubay <dubay@danubiananotech.com>
- minor fixes (IPR, wait in mainloop)
* Sat Sep 23 2012 Orest Dubay <dubay@danubiananotech.com>
- static package builder, pysqlite removed from the embedded packages
* Sun Aug 12 2012 Orest Dubay <dubay@danubiananotech.com>
- Install scripts updated + work in progress - not released
* Sun Mar 25 2012 Orest Dubay <dubay@danubiananotech.com>
- IPR, MD speed, VAC fixes, numpy support, dielectrict function fix, other fixes
* Sat Mar 10 2012 Orest Dubay <dubay@danubiananotech.com>
- Several minor corrections, Participation function display in Electronic applet
* Sat Feb 26 2011 Orest Dubay <dubay@danubiananotech.com>
- Bug in painting of the dielectric function fixed.
* Sat Feb 13 2010 Orest Dubay <dubay@danubiananotech.com>
- fltk updated
* Fri Oct 26 2007  Orest Dubay <p4vasp@danubiananotech.com>
- Repackaging, minor corrections (reduced updating in graph applets), preparation for v0.4
* Sun Jul 8 2007  Orest Dubay <odu@atomistix.com>
- Database support continued - restricted saving, LDOS, Info applet
* Sat Mar 10 2007  Orest Dubay <odu@atomistix.com>
- Database support is improving (total DOS, INCAR, KPOINTS-file)
* Sat Mar 10 2007  Orest Dubay <odu@atomistix.com>
- Database support is improving...
* Tue Oct 8 2006  Orest Dubay <odu@atomistix.com>
- File selection for isosurface drawing
* Tue Aug 1 2006  Orest Dubay <dubay@ap.univie.ac.at>
- Quick commit
* Sat Jul 15 2006  Orest Dubay <dubay@ap.univie.ac.at>
- Drawing of isosurfaces as points, fix (?) of the pin and external button icon handling
* Fri May 12 2006 Orest Dubay <orest.dubay@univie.ac.at>
- horizontal lines bugfix, the PySwigObject issue, corelation->correlation
* Mon Apr 24 2006 Orest Dubay <orest.dubay@univie.ac.at>
- Some bugfixes, an experimental database support (MySQL)
* Thu Mar 24 2006 Orest Dubay <orest.dubay@univie.ac.at>
- Reload option, contrast/brightness in STM, STM button
* Thu Mar 16 2006 Orest Dubay <orest.dubay@univie.ac.at>
- LORBIT=12 fix was wrong => fix removed + automatic path to python in Makefiles
* Thu Mar 9 2006 Orest Dubay <orest.dubay@univie.ac.at>
- LORBIT=12 processing in ElectronicApplet
* Wed Nov 9 2005 Orest Dubay <dubay@ap.univie.ac.at>
- Dielectric function applet
* Mon Oct 10 2005 Orest Dubay <dubay@ap.univie.ac.at>
- Velocities in p4vasp.SystemPM.XMLSystemPM
* Thu Jul 28 2005 Orest Dubay <dubay@ap.univie.ac.at>
- Structure in STM, reading DOSCAR file (no spin info, no local DOS)
* Fri Jun 10 2005 Orest Dubay <dubay@ap.univie.ac.at>
- Resize bug of structure window fixed (size_range in VisFLWindow)
* Mon May 2 2005 Orest Dubay <dubay@ap.univie.ac.at>
- Downsampling in the structure viewer
* Thu Mar 31 2005 Orest Dubay <dubay@ap.univie.ac.at>
- dielectric function in XMLSystemPM
* Tue Mar 15 2005 Orest Dubay <dubay@ap.univie.ac.at>
- 'from __future__ import generators' fix in STM and VAC
* Fri Mar 11 2005 Orest Dubay <dubay@ap.univie.ac.at>
- Minor changes/improvements/bugfixes in VAC and DOS viewer
* Mon Mar 7 2005 Orest Dubay <dubay@ap.univie.ac.at>
- VAC applet from Tomas Bucko added, CSTRUCTURE_SEQUENCE_L, vertical lines in graph
* Fri Jan 28 2005 Orest Dubay <dubay@ap.univie.ac.at>
- STM applet improved
* Fri Jan 14 2005 Orest Dubay <dubay@ap.univie.ac.at>
- STM applet added
* Mon Jan 10 2005 Orest Dubay <dubay@ap.univie.ac.at>
- Structure update by text->table view in Builder
* Fri Oct 29 2004 Orest Dubay <dubay@ap.univie.ac.at>
- Minor bugfixes and RotationApplet
* Fri Oct 22 2004 Orest Dubay <dubay@ap.univie.ac.at>
- Minor bugfixes and feature enhancements, mainly in Electronic applet
* Tue Oct 19 2004 Orest Dubay <dubay@ap.univie.ac.at>
- Minor bugfixes and feature enhancements
* Thu Oct 14 2004 Orest Dubay <dubay@ap.univie.ac.at>
- Major bugfixes and feature enhancements
* Thu Aug 10 2004 Orest Dubay <dubay@ap.univie.ac.at>
- Builder fixes
* Thu Jul 29 2004 Orest Dubay <dubay@ap.univie.ac.at>
- p4vasp strongly reorganized, atom selection improved, included the builder applet
* Fri May 7 2004 Orest Dubay <dubay@ap.univie.ac.at>
- Several bugfixes
* Wed Apr 28 2004 Orest Dubay <dubay@ap.univie.ac.at>
- Isosurfaces visualisation, progress bars
* Tue Apr  6 2004 Orest Dubay <dubay@ap.univie.ac.at>
- p4vasp.store improved
* Wed Mar 31 2004 Orest Dubay <dubay@ap.univie.ac.at>
- minor bugfix in Local Bands applet
* Wed Mar 26 2004 Orest Dubay <dubay@ap.univie.ac.at>
- p4vasp reorganized and RPM built