/[packages]/cauldron/openimageio/current/SPECS/openimageio.spec
ViewVC logotype

Contents of /cauldron/openimageio/current/SPECS/openimageio.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1102070 - (show annotations) (download)
Tue May 16 15:20:43 2017 UTC (6 years, 9 months ago) by luigiwalser
File size: 4327 byte(s)
- 1.7.14
- add patch from fedora to fix arch/optimizer specific problem with
  uninitialized variables

1 %define major 1.7
2 %define libname %mklibname openimageio %{major}
3 %define develname %mklibname openimageio -d
4
5 Name: openimageio
6 Version: 1.7.14
7 Release: %mkrel 1
8 Summary: Library for reading and writing images
9 Group: System/Libraries
10 License: BSD
11 URL: https://sites.google.com/site/openimageio/home
12 Source0: https://github.com/OpenImageIO/oiio/archive/Release-%{version}.tar.gz
13 Patch0: OpenImageIO-1.7.9-dl.patch
14 Patch1: OpenImageIO-uninit.patch
15 BuildRequires: boost-devel
16 BuildRequires: cmake
17 BuildRequires: giflib-devel
18 BuildRequires: hdf5-devel
19 BuildRequires: ilmbase-devel
20 BuildRequires: libjpeg-devel
21 BuildRequires: OpenEXR-devel
22 BuildRequires: pkgconfig(glew)
23 BuildRequires: pkgconfig(jasper)
24 BuildRequires: pkgconfig(libavcodec)
25 BuildRequires: pkgconfig(libavformat)
26 BuildRequires: pkgconfig(libavutil)
27 BuildRequires: pkgconfig(libopenjpeg1)
28 BuildRequires: pkgconfig(libpng)
29 BuildRequires: pkgconfig(libraw)
30 BuildRequires: pkgconfig(libraw_r)
31 BuildRequires: pkgconfig(libswscale)
32 BuildRequires: pkgconfig(libtiff-4)
33 BuildRequires: pkgconfig(libwebp)
34 BuildRequires: pkgconfig(OpenColorIO)
35 BuildRequires: pkgconfig(openssl)
36 BuildRequires: pkgconfig(python2)
37 BuildRequires: pkgconfig(python3)
38 BuildRequires: pkgconfig(zlib)
39 BuildRequires: pugixml-devel
40 BuildRequires: qt4-devel
41 BuildRequires: txt2man
42
43 Obsoletes: OpenImageIO < %{version}
44
45 %description
46 OpenImageIO is a library for reading and writing images, and a bunch of related
47 classes, utilities, and applications. Main features include:
48 - Extremely simple but powerful ImageInput and ImageOutput APIs for reading and
49 writing 2D images that is format agnostic.
50 - Format plugins for TIFF, JPEG/JFIF, OpenEXR, PNG, HDR/RGBE, Targa, JPEG-2000,
51 DPX, Cineon, FITS, BMP, ICO, RMan Zfile, Softimage PIC, DDS, SGI,
52 PNM/PPM/PGM/PBM, Field3d.
53 - An ImageCache class that transparently manages a cache so that it can access
54 truly vast amounts of image data.
55 - A really nice image viewer, iv, also based on OpenImageIO classes (and so
56 will work with any formats for which plugins are available).
57
58 %package -n %{libname}
59 Summary: A library for reading and writing images
60 Group: System/Libraries
61
62 %description -n %{libname}
63 OpenImageIO is a library for reading and writing images.
64
65 %package -n %{develname}
66 Summary: Development files for %{name}
67 Group: Development/C++
68 Requires: %{libname} = %{version}-%{release}
69 Provides: %{name}-devel = %{version}-%{release}
70 Obsoletes: %{_lib}OpenImageIO-devel < 1.7.9
71
72 %description -n %{develname}
73 Development files for %{name} library.
74
75 %package -n python-%{name}
76 Summary: Python 2 bindings for %{name}
77 Group: Development/Python
78 Requires: %{name} = %{version}-%{release}
79 Provides: python-OpenImageIO = %{version}-%{release}
80
81 %description -n python-%{name}
82 Python 2 bindings for %{name}.
83
84 %package -n python3-%{name}
85 Summary: Python 3 bindings for %{name}
86 Group: Development/Python
87 Requires: %{name} = %{version}-%{release}
88 Provides: python3-OpenImageIO = %{version}-%{release}
89
90 %description -n python3-%{name}
91 Python3 bindings for %{name}.
92
93 %prep
94 %setup -qn oiio-Release-%{version}
95 %autopatch -p1
96
97 # Remove bundled pugixml
98 rm -f src/include/OpenImageIO/pugixml.hpp \
99 src/include/OpenImageIO/pugiconfig.hpp \
100 src/include/OpenImageIO/pugixml.cpp
101
102 %build
103 %cmake -DUSE_OPENSSL:BOOL=ON \
104 -DUSE_PYTHON:BOOL=ON \
105 -DUSE_PYTHON3:BOOL=ON \
106 -DPYLIB_INSTALL_DIR:PATH=%{python2_sitearch} \
107 -DPYLIB3_INSTALL_DIR:PATH=%{python3_sitearch} \
108 -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/OpenImageIO \
109 -DMAN_INSTALL_DIR:PATH=%{_mandir}/man1 \
110 -DDOC_INSTALL_DIR:PATH=%{_docdir}/OpenImageIO \
111 -DSTOP_ON_WARNING=OFF \
112 -DUSE_EXTERNAL_PUGIXML:BOOL=ON
113 %make_build
114
115 %install
116 %make_install -C build
117
118 rm -fr %{buildroot}%{_docdir}
119
120 %files
121 %license LICENSE
122 %{_bindir}/*
123 %{_xfontdir}/oiio/
124 %{_mandir}/man1/*
125
126 %files -n %{libname}
127 %license LICENSE
128 %{_libdir}/libOpenImageIO.so.%{major}{,.*}
129 %{_libdir}/libOpenImageIO_Util.so.%{major}{,.*}
130
131 %files -n %{develname}
132 %doc CHANGES.md
133 %doc README.md
134 %doc src/doc/*.pdf
135 %license LICENSE
136 %{_libdir}/libOpenImageIO.so
137 %{_libdir}/libOpenImageIO_Util.so
138 %dir %{_includedir}/OpenImageIO
139 %{_includedir}/OpenImageIO/*
140
141 %files -n python-%{name}
142 %{python2_sitearch}/OpenImageIO.so
143
144 %files -n python3-%{name}
145 %{python3_sitearch}/OpenImageIO.so

  ViewVC Help
Powered by ViewVC 1.1.30