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