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