source: spec/trunk/SPECS/jasper.spec@ 1796

Last change on this file since 1796 was 1785, checked in by tellie, 4 years ago

spec: jasper: Release version 2.0.33-1.

File size: 4.1 KB
Line 
1
2# NOTE: packages that can use jasper:
3# ImageMagick
4# netpbm
5
6Summary: Implementation of the JPEG-2000 standard, Part 1
7Name: jasper
8Version: 2.0.33
9Release: 1%{?dist}
10
11License: JasPer
12URL: http://www.ece.uvic.ca/~frodo/jasper/
13%if !0%{?os2_version}
14Source0: https://github.com/jasper-software/jasper/archive/version-%{version}.tar.gz
15%else
16%scm_source github http://github.com/TeLLie/%{name}-os2 %{version}-os2
17%endif
18
19# skip hard-coded prefix/lib rpath
20%if !0%{?os2_version}
21Patch2: jasper-2.0.14-rpath.patch
22Patch3: jasper-freeglut.patch
23
24# architecture related patches
25Patch100: jasper-2.0.2-test-ppc64-disable.patch
26Patch101: jasper-2.0.2-test-ppc64le-disable.patch
27%endif
28
29# autoreconf
30BuildRequires: cmake
31%if !0%{?os2_version}
32BuildRequires: freeglut-devel
33BuildRequires: libGLU-devel
34%endif
35BuildRequires: libjpeg-devel
36%if !0%{?os2_version}
37BuildRequires: libXmu-devel libXi-devel
38%endif
39BuildRequires: pkgconfig doxygen
40%if !0%{?os2_version}
41BuildRequires: mesa-libGL-devel
42%endif
43
44Requires: %{name}-libs%{?_isa} = %{version}-%{release}
45BuildRequires: gcc
46BuildRequires: make
47
48%description
49This package contains an implementation of the image compression
50standard JPEG-2000, Part 1. It consists of tools for conversion to and
51from the JP2 and JPC formats.
52
53%package devel
54Summary: Header files, libraries and developer documentation
55Provides: libjasper-devel = %{version}-%{release}
56Requires: %{name}-libs%{?_isa} = %{version}-%{release}
57Requires: libjpeg-devel
58Requires: pkgconfig
59%description devel
60%{summary}.
61
62%package libs
63Summary: Runtime libraries for %{name}
64Conflicts: jasper < 1.900.1-4
65%description libs
66%{summary}.
67
68%package utils
69Summary: Nonessential utilities for %{name}
70Requires: %{name} = %{version}-%{release}
71Requires: %{name}-libs%{?_isa} = %{version}-%{release}
72%description utils
73%{summary}, including jiv and tmrdemo.
74
75%debug_package
76
77%prep
78%if !0%{?os2_version}
79%setup -q -n %{name}-version-%{version}
80
81%patch2 -p1 -b .rpath
82# Need to disable one test to be able to build it on ppc64 arch
83# At ppc64 this test just stuck (nothing happend - no exception or error)
84%patch3 -p1 -b .freeglut
85
86%if "%{_arch}" == "ppc64"
87%patch100 -p1 -b .test-ppc64-disable
88%endif
89%else
90%scm_setup
91%endif
92
93# Need to disable two tests to be able to build it on ppc64le arch
94# At ppc64le this tests just stuck (nothing happend - no exception or error)
95
96%if "%{_arch}" == "ppc64le"
97%patch101 -p1 -b .test-ppc64le-disable
98%endif
99
100
101%build
102mkdir builder
103cd builder
104
105export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
106export LIBS="-lcx -lpthread"
107%cmake ..\
108 -DJAS_ENABLE_DOC:BOOL=OFF
109%if !0%{?os2_version}
110 -B builder
111%make_build -C builder
112%else
113make %{?_smp_mflags}
114%endif
115
116%install
117make install/fast DESTDIR=%{buildroot} -C builder
118
119# Unpackaged files
120rm -f doc/README
121rm -f %{buildroot}%{_libdir}/lib*.la
122
123%check
124%if !0%{?os2_version}
125make test -C builder
126
127%ldconfig_scriptlets libs
128%endif
129
130%files
131%if !0%{?os2_version}
132%{_bindir}/imgcmp
133%{_bindir}/imginfo
134%{_bindir}/jasper
135%else
136%{_bindir}/imgcmp.exe
137%{_bindir}/imginfo.exe
138%{_bindir}/jasper.exe
139%endif
140%{_mandir}/man1/img*
141%{_mandir}/man1/jasper.1*
142%{_docdir}/JasPer/*
143
144%files devel
145%doc doc/*
146%{_includedir}/jasper/
147%if !0%{?os2_version}
148%{_libdir}/libjasper.so
149%else
150%{_libdir}/*.a
151%endif
152%{_libdir}/pkgconfig/jasper.pc
153
154%files libs
155%doc README
156%license COPYRIGHT LICENSE
157%if !0%{?os2_version}
158%{_libdir}/libjasper.so.4*
159%else
160%{_libdir}/*.dll
161%endif
162
163%files utils
164%if !0%{?os2_version}
165%{_bindir}/jiv
166%{_mandir}/man1/jiv.1*
167%endif
168
169%changelog
170* Fri Oct 08 2021 Elbert Pol <elbert.pol@gmail.com> - 2.0.33-1
171- Updated to latest version
172
173* Fri Feb 26 2021 Elbert Pol <elbert.pol@gmail.com> - 2.0.25-1
174- Updated to latest version 2.0.25
175
176* Thu Jan 07 2021 Elbert Pol <elbert.pol@gmail.com> - 2.0.24-1
177- Updated to latest version 2.0.24
178
179* Sat Oct 17 2020 Elbert Pol <elbert.pol@gmail.com> - 2.0.22-1
180- Updated to latest version 2.0.22
181- Change more os2 specifated lines in spec file
182
183* Fri Dec 28 2018 Elbert Pol <elbert.pol@gmail.com> - 2.0.14-2
184- Removed the dll from bindir
185
186* Thu Dec 27 2018 Elbert Pol <elbert.pol@gmail.com> - 2.0.14-1
187- First Rpm for OS/2
Note: See TracBrowser for help on using the repository browser.