]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - jpeghdr (libjpeghdr doesn't seem to be freely available; was attached to some book?) | |
4 | # - split progs package by libraries required | |
5 | # | |
6 | Summary: pfstools for High Dynamic Range Images and Video | |
7 | Summary(pl.UTF-8): Narzędzia do obrazów i wideo o dużym zakresie luminancji | |
8 | Name: pfstools | |
9 | Version: 2.0.4 | |
10 | Release: 9 | |
11 | License: LGPL v2.1+ | |
12 | Group: Libraries | |
13 | Source0: http://downloads.sourceforge.net/pfstools/%{name}-%{version}.tgz | |
14 | # Source0-md5: f17e2834798cda75d32b2fcd11826d82 | |
15 | Patch0: pfstools-2.0.4-maptype.patch | |
16 | Patch1: pfstools-2.0.4-octinstall.patch | |
17 | Patch2: imagemagick7.patch | |
18 | URL: http://pfstools.sourceforge.net/ | |
19 | BuildRequires: ImageMagick-c++-devel >= 6.0 | |
20 | BuildRequires: OpenEXR-devel >= 1.0 | |
21 | BuildRequires: OpenGL-GLU-devel | |
22 | BuildRequires: OpenGL-glut-devel | |
23 | BuildRequires: QtGui-devel >= 4 | |
24 | BuildRequires: autoconf >= 2.59-9 | |
25 | BuildRequires: automake | |
26 | BuildRequires: gdal-devel | |
27 | BuildRequires: libtiff-devel | |
28 | BuildRequires: libtool >= 2:2.0 | |
29 | BuildRequires: netpbm-devel | |
30 | BuildRequires: octave-devel | |
31 | BuildRequires: qt4-build >= 4 | |
32 | BuildRequires: texlive-format-pdflatex | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %define octave_m_dir %(octave-config --m-site-dir) | |
36 | %define octave_oct_dir %(octave-config --oct-site-dir) | |
37 | ||
38 | %description | |
39 | pfstools package is a set of command line (and one GUI) programs for | |
40 | reading, writing, manipulating and viewing high-dynamic range (HDR) | |
41 | images and video frames. All programs in the package exchange data | |
42 | using Unix pipes and a simple generic HDR image format (pfs). The | |
43 | concept of the pfstools is similar to netpbm package for low-dynamic | |
44 | range images. | |
45 | ||
46 | %description -l pl.UTF-8 | |
47 | Pakiet pfstools jest zestawiem programów służących do odczytu, | |
48 | zapisu, obróbki i wyświetlania obrazów i klatek wideo o wysokim | |
49 | zakresie dynamiki (HDR). Wszystkie programy wymieniają dane za | |
50 | pomocą uniksowych rurek i prostego ogólnego formatu obrazów HDR | |
51 | (pfs). Idea pfstools jest podobna do pakietu netpbm, używanego do | |
52 | obrazów o niskim zakresie dynamiki. | |
53 | ||
54 | %package devel | |
55 | Summary: Header files for pfstools | |
56 | Summary(pl.UTF-8): Pliki nagłówkowe pfstools | |
57 | Group: Development/Libraries | |
58 | Requires: %{name} = %{version}-%{release} | |
59 | Obsoletes: pfstools-static | |
60 | ||
61 | %description devel | |
62 | The header files are only needed for development of programs using the | |
63 | pfstools. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | W pakiecie tym znajdują się pliki nagłówkowe, przeznaczone dla | |
67 | programistów używających bibliotek pfstools. | |
68 | ||
69 | %package progs | |
70 | Summary: pfstools utility programs | |
71 | Summary(pl.UTF-8): Narzędzia pfstools | |
72 | Group: Applications/Graphics | |
73 | Requires: %{name} = %{version}-%{release} | |
74 | Obsoletes: pfscalibration | |
75 | Obsoletes: pfstmo | |
76 | ||
77 | %description progs | |
78 | This package contains pfstools utility programs. | |
79 | ||
80 | %description progs -l pl.UTF-8 | |
81 | Pakiet zawiera narzędzia pfstools. | |
82 | ||
83 | %package -n octave-pfstools | |
84 | Summary: Octave bindings for pfstools | |
85 | Summary(pl.UTF-8): Wiązania języka Octave do pfstools | |
86 | Group: Development/Languages | |
87 | Requires: %{name} = %{version}-%{release} | |
88 | ||
89 | %description -n octave-pfstools | |
90 | Octave bindings for pfstools. | |
91 | ||
92 | %description -n octave-pfstools -l pl.UTF-8 | |
93 | Wiązania języka Octave do pfstools. | |
94 | ||
95 | %prep | |
96 | %setup -q | |
97 | %patch0 -p1 | |
98 | %patch1 -p1 | |
99 | %patch2 -p1 | |
100 | ||
101 | %build | |
102 | install -d build | |
103 | cd build | |
104 | %cmake \ | |
105 | -DWITH_OpenCV=OFF \ | |
106 | ../ | |
107 | %{__make} | |
108 | ||
109 | cd ../doc | |
110 | pdflatex pfs_format_spec.tex | |
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | cd build | |
116 | %{__make} install \ | |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | ||
119 | %clean | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post -p /sbin/ldconfig | |
123 | %postun -p /sbin/ldconfig | |
124 | ||
125 | %files | |
126 | %defattr(644,root,root,755) | |
127 | %doc AUTHORS ChangeLog README TODO doc/faq.txt doc/pfs_format_spec.pdf | |
128 | %attr(755,root,root) %{_libdir}/libpfs.so.*.*.* | |
129 | %attr(755,root,root) %ghost %{_libdir}/libpfs.so.2 | |
130 | ||
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
133 | %attr(755,root,root) %{_libdir}/libpfs.so | |
134 | %{_pkgconfigdir}/pfs.pc | |
135 | %{_includedir}/pfs | |
136 | ||
137 | %files progs | |
138 | %defattr(644,root,root,755) | |
139 | %attr(755,root,root) %{_bindir}/pfs* | |
140 | %attr(755,root,root) %{_bindir}/*2hdrgen | |
141 | %{_datadir}/pfstools | |
142 | %{_mandir}/man1/pfs*.1* | |
143 | %{_mandir}/man1/*2hdrgen.1* | |
144 | ||
145 | %files -n octave-pfstools | |
146 | %defattr(644,root,root,755) | |
147 | %dir %{octave_oct_dir}/pfstools | |
148 | %attr(755,root,root) %{octave_oct_dir}/pfstools/pfs*.oct | |
149 | %{octave_m_dir}/pfstools |