]> git.pld-linux.org Git - SPECS.git/blob - openexr_viewers.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / openexr_viewers.spec
1 #
2 # Conditional build:
3 %bcond_with     cg      # use NVIDIA Cg compiler
4 #
5 Summary:        Simple still OpenEXR image viewer
6 Summary(pl.UTF-8):      Prosta przeglądarka nieruchomych obrazów OpenEXR
7 Name:           openexr_viewers
8 Version:        2.2.1
9 Release:        1
10 License:        BSD
11 Group:          Libraries
12 Source0:        http://download.savannah.gnu.org/releases/openexr/%{name}-%{version}.tar.gz
13 # Source0-md5:  f68d5cb2c09420f26c967a6411c463a9
14 Patch0:         %{name}-am.patch
15 URL:            http://www.openexr.com/
16 BuildRequires:  OpenEXR-devel >= 2.2.1
17 BuildRequires:  OpenGL-devel
18 %{?with_cg:BuildRequires:       OpenGL-glut-devel}
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake >= 1.6.3
21 %{?with_cg:BuildRequires:       cg-devel}
22 BuildRequires:  fltk-gl-devel >= 1.1
23 BuildRequires:  libstdc++-devel
24 BuildRequires:  libtool >= 2:1.5
25 BuildRequires:  openexr_ctl-devel >= 1.5
26 BuildRequires:  pkgconfig
27 BuildRequires:  zlib-devel
28 Requires:       OpenEXR >= 2.2.1
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 exrdisplay is a simple still image viewer that optionally applies
33 color transforms to OpenEXR images, using CTL.
34
35 %if %{with cg}
36 playexr is a program that plays back OpenEXR image sequences,
37 optionally with CTL support, applying rendering and display
38 transforms.
39 %endif
40
41 %description -l pl.UTF-8
42 exrdisplay to prosta przeglądarka nieruchomych obrazów opcjonalnie
43 stosująca na obrazach OpenEXR przekształcenia kolorów przy użyciu CTL.
44
45 %if %{with cg}
46 playexr to program odtwarzający sekwencje obrazów OpenEXR z opcjonalną
47 obsługą CTL i stosowaniem przekształceń renderingu i wyświetlania.
48 %endif
49
50 %prep
51 %setup -q
52 %patch0 -p1
53
54 %build
55 %{__libtoolize}
56 %{__aclocal} -I m4
57 %{__autoconf}
58 %{__automake}
59 %configure
60
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 # useless currently
70 %{__rm} $RPM_BUILD_ROOT%{_includedir}/OpenEXR/OpenEXR_ViewersConfig.h
71 # already packaged as doc
72 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/OpenEXR_Viewers-%{version}
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc AUTHORS COPYING ChangeLog NEWS README doc/OpenEXRViewers.pdf
80 %attr(755,root,root) %{_bindir}/exrdisplay
81 %if %{with cg}
82 %attr(755,root,root) %{_bindir}/playexr
83 %endif
This page took 0.167192 seconds and 3 git commands to generate.