]>
Commit | Line | Data |
---|---|---|
1 | # TODO: (optional) MPI? | |
2 | Summary: Field3D - open source library for storing voxel data | |
3 | Summary(pl.UTF-8): Field3D - mająca otwarte źródła biblioteka do przechowywania danych vokseli | |
4 | Name: Field3D | |
5 | Version: 1.7.3 | |
6 | Release: 12 | |
7 | License: BSD | |
8 | Group: Libraries | |
9 | #Source0Download: https://github.com/imageworks/Field3D/releases | |
10 | Source0: https://github.com/imageworks/Field3D/archive/v%{version}/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: 536198b1b4840a5b35400ccf05d4431c | |
12 | Patch0: openexr3.patch | |
13 | URL: http://opensource.imageworks.com/?p=field3d | |
14 | BuildRequires: OpenEXR-devel >= 3.0.0 | |
15 | BuildRequires: cmake >= 2.8 | |
16 | BuildRequires: boost-devel >= 1.34.0 | |
17 | BuildRequires: doxygen | |
18 | BuildRequires: hdf5-devel >= 1.8 | |
19 | BuildRequires: libstdc++-devel | |
20 | BuildRequires: rpmbuild(macros) >= 1.605 | |
21 | Requires: OpenEXR >= 3.0.0 | |
22 | Requires: hdf5 >= 1.8 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Field3D is an open source library for storing voxel data. It provides | |
27 | C++ classes that handle in-memory storage and a file format based on | |
28 | HDF5 that allows the C++ objects to be written to and read from disk. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Field3D to mająca otwarte źródła biblioteka do przechowywania danych | |
32 | vokseli. Udostępnia klasy C++ obsługujące przechowywanie ich w pamięci | |
33 | oraz format plików oparty na HDF5 pozwalający na zapis i odczyt | |
34 | obiektów C++ z dysku. | |
35 | ||
36 | %package devel | |
37 | Summary: Header files for Field3D library | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Field3D | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | Requires: OpenEXR-devel >= 3.0.0 | |
42 | Requires: boost-devel >= 1.34.0 | |
43 | Requires: hdf5-devel >= 1.8 | |
44 | Requires: libstdc++-devel | |
45 | ||
46 | %description devel | |
47 | Header files for Field3D library. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe biblioteki Field3D. | |
51 | ||
52 | %package apidocs | |
53 | Summary: Field3D API documentation | |
54 | Summary(pl.UTF-8): Dokumentacja API biblioteki Field3D | |
55 | Group: Documentation | |
56 | BuildArch: noarch | |
57 | ||
58 | %description apidocs | |
59 | API and internal documentation for Field3D library. | |
60 | ||
61 | %description apidocs -l pl.UTF-8 | |
62 | Dokumentacja API biblioteki Field3D. | |
63 | ||
64 | %prep | |
65 | %setup -q | |
66 | %patch0 -p1 | |
67 | ||
68 | %build | |
69 | # main build system is scons, but there is cmake alternative, which is slightly more usable in rpm building | |
70 | install -d build | |
71 | cd build | |
72 | export CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} -std=c++14" | |
73 | %cmake .. | |
74 | ||
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} -C build install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/docs | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
93 | %doc CHANGES COPYING README | |
94 | %attr(755,root,root) %{_bindir}/f3dinfo | |
95 | %attr(755,root,root) %{_libdir}/libField3D.so.*.*.* | |
96 | %attr(755,root,root) %ghost %{_libdir}/libField3D.so.1.7 | |
97 | ||
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
100 | %attr(755,root,root) %{_libdir}/libField3D.so | |
101 | %{_includedir}/Field3D | |
102 | ||
103 | %files apidocs | |
104 | %defattr(644,root,root,755) | |
105 | %doc docs/html/*.{css,html,js,png} |