]>
Commit | Line | Data |
---|---|---|
58986a90 | 1 | # TODO: (optional) MPI? |
db37bf04 JB |
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 | |
f8c1ddc2 | 5 | Version: 1.7.3 |
4739bfc9 | 6 | Release: 5 |
db37bf04 JB |
7 | License: BSD |
8 | Group: Libraries | |
58986a90 | 9 | #Source0Download: https://github.com/imageworks/Field3D/releases |
cdc4129d | 10 | Source0: https://github.com/imageworks/Field3D/archive/v%{version}/%{name}-%{version}.tar.gz |
f8c1ddc2 | 11 | # Source0-md5: 536198b1b4840a5b35400ccf05d4431c |
4739bfc9 | 12 | Patch0: openexr3.patch |
db37bf04 JB |
13 | URL: http://opensource.imageworks.com/?p=field3d |
14 | BuildRequires: cmake >= 2.8 | |
15 | BuildRequires: boost-devel >= 1.34.0 | |
16 | BuildRequires: doxygen | |
17 | BuildRequires: hdf5-devel >= 1.8 | |
18 | BuildRequires: ilmbase-devel >= 1.0.1 | |
19 | BuildRequires: libstdc++-devel | |
10965d9f | 20 | BuildRequires: rpmbuild(macros) >= 1.605 |
db37bf04 JB |
21 | Requires: hdf5 >= 1.8 |
22 | Requires: ilmbase >= 1.0.1 | |
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: boost-devel >= 1.34.0 | |
42 | Requires: hdf5-devel >= 1.8 | |
43 | Requires: ilmbase-devel >= 1.0.1 | |
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 | |
7b8e8292 | 56 | BuildArch: noarch |
db37bf04 JB |
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 | |
58986a90 | 65 | %setup -q |
4739bfc9 | 66 | %patch0 -p1 |
db37bf04 JB |
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 | |
dd2284ff | 72 | export CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} -std=c++14" |
db37bf04 JB |
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 | |
58986a90 JB |
95 | %attr(755,root,root) %{_libdir}/libField3D.so.*.*.* |
96 | %attr(755,root,root) %ghost %{_libdir}/libField3D.so.1.7 | |
db37bf04 JB |
97 | |
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
08b11139 | 100 | %attr(755,root,root) %{_libdir}/libField3D.so |
db37bf04 JB |
101 | %{_includedir}/Field3D |
102 | ||
103 | %files apidocs | |
104 | %defattr(644,root,root,755) | |
105 | %doc docs/html/*.{css,html,js,png} |