source: spec/trunk/SPECS/openjpeg2.spec@ 1617

Last change on this file since 1617 was 1577, checked in by Silvan Scherrer, 7 years ago

use the right tag in the spec

File size: 7.9 KB
Line 
1# Conformance tests disabled by default since it requires 1 GB of test data
2#global runcheck 1
3
4#global optional_components 1
5
6Name: openjpeg2
7Version: 2.3.0
8Release: 1%{?dist}
9Summary: C-Library for JPEG 2000
10
11# windirent.h is MIT, the rest is BSD
12License: BSD and MIT
13URL: https://github.com/uclouvain/openjpeg
14Vendor: bww bitwise works GmbH
15%scm_source github http://github.com/bitwiseworks/openjpeg-os2 %{version}-os2
16%if 0%{?runcheck}
17# git clone git@github.com:uclouvain/openjpeg-data.git
18Source1: data.tar.xz
19%endif
20
21
22BuildRequires: cmake
23# The library itself is C only, but there is some optional C++ stuff, hence the project is not marked as C-only in cmake and hence cmake looks for a c++ compiler
24#BuildRequires: gcc-c++
25BuildRequires: gcc
26BuildRequires: make
27BuildRequires: zlib-devel
28BuildRequires: libpng-devel
29BuildRequires: libtiff-devel
30BuildRequires: lcms2-devel
31BuildRequires: doxygen
32
33%if 0%{?optional_components}
34BuildRequires: java-devel
35BuildRequires: xerces-j2
36%endif
37
38%description
39The OpenJPEG library is an open-source JPEG 2000 library developed in order to
40promote the use of JPEG 2000.
41
42This package contains
43* JPEG 2000 codec compliant with the Part 1 of the standard (Class-1 Profile-1
44 compliance).
45* JP2 (JPEG 2000 standard Part 2 - Handling of JP2 boxes and extended multiple
46 component transforms for multispectral and hyperspectral imagery)
47
48
49%package devel
50Summary: Development files for OpenJPEG 2
51Requires: %{name} = %{version}-%{release}
52# OpenJPEGTargets.cmake refers to the tools
53Requires: %{name}-tools = %{version}-%{release}
54
55%description devel
56The %{name}-devel package contains libraries and header files for developing
57applications that use OpenJPEG 2.
58
59
60%package devel-docs
61Summary: Developer documentation for OpenJPEG 2
62BuildArch: noarch
63
64%description devel-docs
65The %{name}-devel-docs package contains documentation files for developing
66applications that use OpenJPEG 2.
67
68
69%package tools
70Summary: OpenJPEG 2 command line tools
71Requires: %{name} = %{version}-%{release}
72
73%description tools
74Command line tools for JPEG 2000 file manipulation, using OpenJPEG2:
75 * opj2_compress
76 * opj2_decompress
77 * opj2_dump
78
79%if 0%{?optional_components}
80##### MJ2 #####
81
82%package mj2
83Summary: OpenJPEG2 MJ2 module
84Requires: %{name} = %{version}-%{release}
85
86%description mj2
87The OpenJPEG library is an open-source JPEG 2000 library developed in order to
88promote the use of JPEG 2000.
89
90This package contains the MJ2 module (JPEG 2000 standard Part 3)
91
92
93%package mj2-devel
94Summary: Development files for OpenJPEG2 MJ2 module
95Requires: %{name}-devel = %{version}-%{release}
96Requires: %{name}-mj2 = %{version}-%{release}
97
98%description mj2-devel
99Development files for OpenJPEG2 MJ2 module
100
101
102%package mj2-tools
103Summary: OpenJPEG2 MJ2 module command line tools
104Requires: %{name}-mj2 = %{version}-%{release}
105
106%description mj2-tools
107OpenJPEG2 MJ2 module command line tools
108
109##### JPWL #####
110
111%package jpwl
112Summary: OpenJPEG2 JPWL module
113Requires: %{name} = %{version}-%{release}
114
115%description jpwl
116The OpenJPEG library is an open-source JPEG 2000 library developed in order to
117promote the use of JPEG 2000.
118
119This package contains the JPWL (JPEG 2000 standard Part 11 - Jpeg 2000 Wireless)
120
121
122%package jpwl-devel
123Summary: Development files for OpenJPEG2 JPWL module
124Requires: %{name}-devel = %{version}-%{release}
125Requires: %{name}-jpwl = %{version}-%{release}
126
127%description jpwl-devel
128Development files for OpenJPEG2 JPWL module
129
130
131%package jpwl-tools
132Summary: OpenJPEG2 JPWL module command line tools
133Requires: %{name}-jpwl = %{version}-%{release}
134
135%description jpwl-tools
136OpenJPEG2 JPWL module command line tools
137
138##### JPIP #####
139
140%package jpip
141Summary: OpenJPEG2 JPIP module
142Requires: %{name} = %{version}-%{release}
143
144%description jpip
145The OpenJPEG library is an open-source JPEG 2000 library developed in order to
146promote the use of JPEG 2000.
147
148This package contains the JPWL (JPEG 2000 standard Part 9 - Jpeg 2000 Interactive Protocol)
149
150
151%package jpip-devel
152Summary: Development files for OpenJPEG2 JPIP module
153Requires: %{name}-devel = %{version}-%{release}
154Requires: %{name}-jpwl = %{version}-%{release}
155
156%description jpip-devel
157Development files for OpenJPEG2 JPIP module
158
159
160%package jpip-tools
161Summary: OpenJPEG2 JPIP module command line tools
162Requires: %{name}-jpip = %{version}-%{release}
163Requires: jpackage-utils
164Requires: java
165
166%description jpip-tools
167OpenJPEG2 JPIP module command line tools
168
169##### JP3D #####
170
171%package jp3d
172Summary: OpenJPEG2 JP3D module
173Requires: %{name} = %{version}-%{release}
174
175%description jp3d
176The OpenJPEG library is an open-source JPEG 2000 library developed in order to
177promote the use of JPEG 2000.
178
179This package contains the JP3D (JPEG 2000 standard Part 10 - Jpeg 2000 3D)
180
181
182%package jp3d-devel
183Summary: Development files for OpenJPEG2 JP3D module
184Requires: %{name}-devel = %{version}-%{release}
185Requires: %{name}-jp3d = %{version}-%{release}
186
187%description jp3d-devel
188Development files for OpenJPEG2 JP3D module
189
190
191%package jp3d-tools
192Summary: OpenJPEG2 JP3D module command line tools
193Requires: %{name}-jp3d = %{version}-%{release}
194
195%description jp3d-tools
196OpenJPEG2 JP3D module command line tools
197%endif
198
199%debug_package
200
201
202%prep
203%scm_setup
204
205# Remove all third party libraries just to be sure
206#rm -rf thirdparty
207
208
209%build
210export LDFLAGS="-Zhigh-mem -Zomf -lcx"
211export VENDOR="%{vendor}"
212
213mkdir build
214cd build
215# TODO: Consider
216# -DBUILD_JPIP_SERVER=ON -DBUILD_JAVA=ON
217%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPENJPEG_INSTALL_LIB_DIR=%{_lib} \
218 %{?optional_components:-DBUILD_MJ2=ON -DBUILD_JPWL=ON -DBUILD_JPIP=ON -DBUILD_JP3D=ON} \
219 -DBUILD_DOC=ON \
220 -DBUILD_STATIC_LIBS=OFF \
221 -DBUILD_SHARED_LIBS=ON \
222 %{?runcheck:-DBUILD_TESTING:BOOL=ON -DOPJ_DATA_ROOT=$PWD/../data} \
223 ..
224cd ..
225
226make VERBOSE=1 -C build
227
228
229%install
230%make_install -C build
231
232
233# Docs are installed through %%doc
234rm -rf %{buildroot}%{_datadir}/doc/
235
236%if 0%{?optional_components}
237# Move the jar to the correct place
238mkdir -p %{buildroot}%{_javadir}
239mv %{buildroot}%{_datadir}/opj_jpip_viewer.jar %{buildroot}%{_javadir}/opj2_jpip_viewer.jar
240cat > %{buildroot}%{_bindir}/opj2_jpip_viewer <<EOF
241java -jar %{_javadir}/opj2_jpip_viewer.jar "$@"
242EOF
243chmod +x %{buildroot}%{_bindir}/opj2_jpip_viewer
244%endif
245
246
247#%ldconfig_scriptlets
248
249
250%check
251%if 0%{?runcheck}
252make test -C build
253%endif
254
255
256%files
257%{!?_licensedir:%global license %doc}
258%license LICENSE
259%doc AUTHORS.md NEWS.md README.md THANKS.md
260%{_libdir}/openjp*.dll
261%{_mandir}/man3/libopenjp2.3*
262
263%files devel
264%dir %{_includedir}/openjpeg-2.3/
265%{_includedir}/openjpeg-2.3/openjpeg.h
266%{_includedir}/openjpeg-2.3/opj_config.h
267%{_includedir}/openjpeg-2.3/opj_stdint.h
268%{_libdir}/openjp*_dll.a
269%{_libdir}/openjpeg-2.3/
270%{_libdir}/pkgconfig/libopenjp2.pc
271
272%files devel-docs
273%doc build/doc/html
274
275%files tools
276%{_bindir}/opj_compress.exe
277%{_bindir}/opj_decompress.exe
278%{_bindir}/opj_dump.exe
279%{_mandir}/man1/opj_compress.1*
280%{_mandir}/man1/opj_decompress.1*
281%{_mandir}/man1/opj_dump.1*
282
283%if 0%{?optional_components}
284%files mj2
285%{_libdir}/libopenmj2.so.*
286
287%files mj2-devel
288%{_libdir}/libopenmj2.so
289
290%files mj2-tools
291%{_bindir}/opj2_mj2*
292
293%files jpwl
294%{_libdir}/libopenjpwl.so.*
295
296%files jpwl-devel
297%{_libdir}/libopenjpwl.so
298%{_libdir}/pkgconfig/libopenjpwl.pc
299
300%files jpwl-tools
301%{_bindir}/opj2_jpwl*
302
303%files jpip
304%{_libdir}/libopenjpip.so.*
305
306%files jpip-devel
307%{_libdir}/libopenjpip.so
308%{_libdir}/pkgconfig/libopenjpip.pc
309
310%files jpip-tools
311%{_bindir}/opj2_jpip*
312%{_bindir}/opj2_dec_server
313%{_javadir}/opj2_jpip_viewer.jar
314
315%files jp3d
316%{_libdir}/libopenjp3d.so.*
317
318%files jp3d-devel
319%{_includedir}/openjpeg-2.0/openjp3d.h
320%{_libdir}/libopenjp3d.so
321%{_libdir}/pkgconfig/libopenjp3d.pc
322
323%files jp3d-tools
324%{_bindir}/opj2_jp3d*
325%endif
326
327
328%changelog
329* Fri Nov 2 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.3.0-1
330- initial port
Note: See TracBrowser for help on using the repository browser.