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