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

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

spec: openjpeg2: Release version 2.3.0-2.

File size: 8.1 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: 2%{?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}"
212export CFLAGS="%{optflags} -mno-sse"
213export CXXFLAGS="%{optflags} -mno-sse"
214
215mkdir build
216cd build
217# TODO: Consider
218# -DBUILD_JPIP_SERVER=ON -DBUILD_JAVA=ON
219%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOPENJPEG_INSTALL_LIB_DIR=%{_lib} \
220 %{?optional_components:-DBUILD_MJ2=ON -DBUILD_JPWL=ON -DBUILD_JPIP=ON -DBUILD_JP3D=ON} \
221 -DBUILD_DOC=ON \
222 -DBUILD_STATIC_LIBS=OFF \
223 -DBUILD_SHARED_LIBS=ON \
224 %{?runcheck:-DBUILD_TESTING:BOOL=ON -DOPJ_DATA_ROOT=$PWD/../data} \
225 ..
226cd ..
227
228make VERBOSE=1 -C build
229
230
231%install
232%make_install -C build
233
234
235# Docs are installed through %%doc
236rm -rf %{buildroot}%{_datadir}/doc/
237
238%if 0%{?optional_components}
239# Move the jar to the correct place
240mkdir -p %{buildroot}%{_javadir}
241mv %{buildroot}%{_datadir}/opj_jpip_viewer.jar %{buildroot}%{_javadir}/opj2_jpip_viewer.jar
242cat > %{buildroot}%{_bindir}/opj2_jpip_viewer <<EOF
243java -jar %{_javadir}/opj2_jpip_viewer.jar "$@"
244EOF
245chmod +x %{buildroot}%{_bindir}/opj2_jpip_viewer
246%endif
247
248
249#%ldconfig_scriptlets
250
251
252%check
253%if 0%{?runcheck}
254make test -C build
255%endif
256
257
258%files
259%{!?_licensedir:%global license %doc}
260%license LICENSE
261%doc AUTHORS.md NEWS.md README.md THANKS.md
262%{_libdir}/openjp*.dll
263%{_mandir}/man3/libopenjp2.3*
264
265%files devel
266%dir %{_includedir}/openjpeg-2.3/
267%{_includedir}/openjpeg-2.3/openjpeg.h
268%{_includedir}/openjpeg-2.3/opj_config.h
269%{_includedir}/openjpeg-2.3/opj_stdint.h
270%{_libdir}/openjp*_dll.a
271%{_libdir}/openjpeg-2.3/
272%{_libdir}/pkgconfig/libopenjp2.pc
273
274%files devel-docs
275%doc build/doc/html
276
277%files tools
278%{_bindir}/opj_compress.exe
279%{_bindir}/opj_decompress.exe
280%{_bindir}/opj_dump.exe
281%{_mandir}/man1/opj_compress.1*
282%{_mandir}/man1/opj_decompress.1*
283%{_mandir}/man1/opj_dump.1*
284
285%if 0%{?optional_components}
286%files mj2
287%{_libdir}/libopenmj2.so.*
288
289%files mj2-devel
290%{_libdir}/libopenmj2.so
291
292%files mj2-tools
293%{_bindir}/opj2_mj2*
294
295%files jpwl
296%{_libdir}/libopenjpwl.so.*
297
298%files jpwl-devel
299%{_libdir}/libopenjpwl.so
300%{_libdir}/pkgconfig/libopenjpwl.pc
301
302%files jpwl-tools
303%{_bindir}/opj2_jpwl*
304
305%files jpip
306%{_libdir}/libopenjpip.so.*
307
308%files jpip-devel
309%{_libdir}/libopenjpip.so
310%{_libdir}/pkgconfig/libopenjpip.pc
311
312%files jpip-tools
313%{_bindir}/opj2_jpip*
314%{_bindir}/opj2_dec_server
315%{_javadir}/opj2_jpip_viewer.jar
316
317%files jp3d
318%{_libdir}/libopenjp3d.so.*
319
320%files jp3d-devel
321%{_includedir}/openjpeg-2.0/openjp3d.h
322%{_libdir}/libopenjp3d.so
323%{_libdir}/pkgconfig/libopenjp3d.pc
324
325%files jp3d-tools
326%{_bindir}/opj2_jp3d*
327%endif
328
329
330%changelog
331* Wed Mar 27 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.3.0-2
332- disable sse
333
334* Fri Nov 2 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.3.0-1
335- initial port
Note: See TracBrowser for help on using the repository browser.