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

Last change on this file since 1567 was 1542, checked in by tellie, 7 years ago

spec: jasper: Release version 2.0.14-2.

File size: 3.2 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.14
9Release: 2%{?dist}
10
11License: JasPer
12URL: http://www.ece.uvic.ca/~frodo/jasper/
13%scm_source github http://github.com/TeLLie/%{name}-os2 master-os2
14
15#Patch1: jasper-2.0.14-CVE-2016-9396.patch
16# skip hard-coded prefix/lib rpath
17#Patch2: jasper-2.0.14-rpath.patch
18# architecture related patches
19Patch100: jasper-2.0.2-test-ppc64-disable.patch
20Patch101: jasper-2.0.2-test-ppc64le-disable.patch
21
22# autoreconf
23BuildRequires: cmake
24#BuildRequires: freeglut-devel
25#BuildRequires: libGLU-devel
26BuildRequires: libjpeg-devel
27#BuildRequires: libXmu-devel libXi-devel
28BuildRequires: pkgconfig doxygen
29#BuildRequires: mesa-libGL-devel
30
31Requires: %{name}-libs%{?_isa} = %{version}-%{release}
32BuildRequires: gcc
33
34%description
35This package contains an implementation of the image compression
36standard JPEG-2000, Part 1. It consists of tools for conversion to and
37from the JP2 and JPC formats.
38
39%package devel
40Summary: Header files, libraries and developer documentation
41Provides: libjasper-devel = %{version}-%{release}
42Requires: %{name}-libs%{?_isa} = %{version}-%{release}
43Requires: libjpeg-devel
44Requires: pkgconfig
45%description devel
46%{summary}.
47
48%package libs
49Summary: Runtime libraries for %{name}
50Conflicts: jasper < 1.900.1-4
51%description libs
52%{summary}.
53
54%package utils
55Summary: Nonessential utilities for %{name}
56Requires: %{name} = %{version}-%{release}
57Requires: %{name}-libs%{?_isa} = %{version}-%{release}
58%description utils
59%{summary}, including jiv and tmrdemo.
60
61
62%prep
63#%setup -q -n %{name}-%{version}
64%scm_setup
65
66#%patch1 -p1 -b .CVE-2016-9396
67#%patch2 -p1 -b .rpath
68# Need to disable one test to be able to build it on ppc64 arch
69# At ppc64 this test just stuck (nothing happend - no exception or error)
70
71%if "%{_arch}" == "ppc64"
72%patch100 -p1 -b .test-ppc64-disable
73%endif
74
75# Need to disable two tests to be able to build it on ppc64le arch
76# At ppc64le this tests just stuck (nothing happend - no exception or error)
77
78%if "%{_arch}" == "ppc64le"
79%patch101 -p1 -b .test-ppc64le-disable
80%endif
81
82
83%build
84mkdir builder
85cd builder
86export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
87export LIBS="-lcx -lpthread"
88
89%cmake .. \
90 -DJAS_ENABLE_DOC:BOOL=OFF
91#popd
92
93#%make_build -C builder
94make %{?_smp_mflags}
95
96%install
97make install/fast DESTDIR=%{buildroot} -C builder
98
99# Unpackaged files
100rm -f doc/README
101rm -f %{buildroot}%{_libdir}/lib*.la
102
103mkdir -p %{buildroot}%{_libdir}
104mv %{buildroot}%{_bindir}/jasper.dll %{buildroot}%{_libdir}/jasper.dll
105
106%check
107#make test -C builder
108
109#%ldconfig_scriptlets libs
110
111%files
112%defattr(-,root,root,-)
113%{_bindir}/imgcmp.exe
114%{_bindir}/imginfo.exe
115%{_bindir}/jasper.exe
116%{_mandir}/man1/img*
117%{_mandir}/man1/jasper.1*
118%{_docdir}/JasPer/*
119
120%files devel
121/@unixroot/usr/lib/
122%defattr(-,root,root,-)
123%doc doc/*
124%{_includedir}/jasper/
125%{_libdir}/jasper*.a
126%{_libdir}/pkgconfig/jasper.pc
127
128%files libs
129%defattr(-,root,root,-)
130%doc README
131%license COPYRIGHT LICENSE
132%{_libdir}/jasper*.dll
133
134#%files utils
135#%{_bindir}/jiv.exe
136#%{_mandir}/man1/jiv.1*
137
138%changelog
139* Fri Dec 28 2018 Elbert Pol <elbert.pol@gmail.com> - 2.0.14-2
140- Removed the dll from bindir
141
142* Thu Dec 27 2018 Elbert Pol <elbert.pol@gmail.com> - 2.0.14-1
143- First Rpm for OS/2
Note: See TracBrowser for help on using the repository browser.