/[packages]/cauldron/python-yt/current/SPECS/python-yt.spec
ViewVC logotype

Contents of /cauldron/python-yt/current/SPECS/python-yt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 688443 - (show annotations) (download)
Tue Sep 16 20:21:23 2014 UTC (9 years, 7 months ago) by umeabot
File size: 1893 byte(s)
Mageia 5 Mass Rebuild
1 # Created by pyp2rpm-1.0.0
2 %define pypi_name yt
3 # we don't want to provide private python extension libs
4 %define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so
5
6 Name: python-yt
7 Version: 2.5.5
8 Release: %mkrel 5
9 Group: Sciences/Astronomy
10 Summary: An analysis and visualization toolkit for Astrophysical simulations, focusing on Adaptive Mesh Refinement data from Enzo, Orion, FLASH, and others
11
12 License: GPLV3+
13 URL: http://yt-project.org/
14 Source0: http://pypi.python.org/packages/source/y/yt/yt-%{version}.tar.gz
15 Patch0: yt.libmath.patch
16
17 BuildRequires: python-devel
18 BuildRequires: freetype2-devel
19 BuildRequires: hdf5-devel
20 BuildRequires: python-cython
21 BuildRequires: python-setuptools
22 BuildRequires: python-numpy-devel
23 BuildRequires: pkgconfig(libpng)
24 BuildRequires: libgomp-devel
25
26 Requires: python-h5py
27 Requires: python-matplotlib
28 Requires: python-numpy
29
30 %description
31 Yt is an analysis tool for astrophysical simulation datasets,
32 generated by simulation platforms like Enzo, Orion, FLASH, Nyx,
33 MAESTRO, ART and Ramses. It's written in python and heavily leverages
34 both NumPy and Matplotlib for fast arrays and visualization,
35 respectively.
36
37
38 %prep
39 %setup -q -n %{pypi_name}-%{version}
40 %patch0 -p1
41 # Remove bundled egg-info
42 rm -rf %{pypi_name}.egg-info
43
44
45
46 %build
47 echo "/usr" > hdf5.cfg
48 echo "/usr" > png.cfg
49 echo "/usr" > freetype.cfg
50 CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
51
52
53 %install
54 %{__python} setup.py install --skip-build --root %{buildroot}
55
56
57 %files
58 %doc yt/utilities/delaunay/README.txt yt/utilities/_libconfig/README.yt
59 %doc yt/utilities/lib/README.healpix.yt yt/utilities/lib/README.healpix
60 %{_bindir}/yt
61 %{_bindir}/iyt
62 %{_bindir}/pyro_queue.py
63 %{_bindir}/yt_lodgeit.py
64 %{python_sitearch}/%{pypi_name}
65 %{python_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info

  ViewVC Help
Powered by ViewVC 1.1.30