| 1 |
|
|---|
| 2 | # NOTE: packages that can use jasper:
|
|---|
| 3 | # ImageMagick
|
|---|
| 4 | # netpbm
|
|---|
| 5 |
|
|---|
| 6 | Summary: Implementation of the JPEG-2000 standard, Part 1
|
|---|
| 7 | Name: jasper
|
|---|
| 8 | Version: 2.0.14
|
|---|
| 9 | Release: 2%{?dist}
|
|---|
| 10 |
|
|---|
| 11 | License: JasPer
|
|---|
| 12 | URL: 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
|
|---|
| 19 | Patch100: jasper-2.0.2-test-ppc64-disable.patch
|
|---|
| 20 | Patch101: jasper-2.0.2-test-ppc64le-disable.patch
|
|---|
| 21 |
|
|---|
| 22 | # autoreconf
|
|---|
| 23 | BuildRequires: cmake
|
|---|
| 24 | #BuildRequires: freeglut-devel
|
|---|
| 25 | #BuildRequires: libGLU-devel
|
|---|
| 26 | BuildRequires: libjpeg-devel
|
|---|
| 27 | #BuildRequires: libXmu-devel libXi-devel
|
|---|
| 28 | BuildRequires: pkgconfig doxygen
|
|---|
| 29 | #BuildRequires: mesa-libGL-devel
|
|---|
| 30 |
|
|---|
| 31 | Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|---|
| 32 | BuildRequires: gcc
|
|---|
| 33 |
|
|---|
| 34 | %description
|
|---|
| 35 | This package contains an implementation of the image compression
|
|---|
| 36 | standard JPEG-2000, Part 1. It consists of tools for conversion to and
|
|---|
| 37 | from the JP2 and JPC formats.
|
|---|
| 38 |
|
|---|
| 39 | %package devel
|
|---|
| 40 | Summary: Header files, libraries and developer documentation
|
|---|
| 41 | Provides: libjasper-devel = %{version}-%{release}
|
|---|
| 42 | Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|---|
| 43 | Requires: libjpeg-devel
|
|---|
| 44 | Requires: pkgconfig
|
|---|
| 45 | %description devel
|
|---|
| 46 | %{summary}.
|
|---|
| 47 |
|
|---|
| 48 | %package libs
|
|---|
| 49 | Summary: Runtime libraries for %{name}
|
|---|
| 50 | Conflicts: jasper < 1.900.1-4
|
|---|
| 51 | %description libs
|
|---|
| 52 | %{summary}.
|
|---|
| 53 |
|
|---|
| 54 | %package utils
|
|---|
| 55 | Summary: Nonessential utilities for %{name}
|
|---|
| 56 | Requires: %{name} = %{version}-%{release}
|
|---|
| 57 | Requires: %{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
|
|---|
| 84 | mkdir builder
|
|---|
| 85 | cd builder
|
|---|
| 86 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 87 | export LIBS="-lcx -lpthread"
|
|---|
| 88 |
|
|---|
| 89 | %cmake .. \
|
|---|
| 90 | -DJAS_ENABLE_DOC:BOOL=OFF
|
|---|
| 91 | #popd
|
|---|
| 92 |
|
|---|
| 93 | #%make_build -C builder
|
|---|
| 94 | make %{?_smp_mflags}
|
|---|
| 95 |
|
|---|
| 96 | %install
|
|---|
| 97 | make install/fast DESTDIR=%{buildroot} -C builder
|
|---|
| 98 |
|
|---|
| 99 | # Unpackaged files
|
|---|
| 100 | rm -f doc/README
|
|---|
| 101 | rm -f %{buildroot}%{_libdir}/lib*.la
|
|---|
| 102 |
|
|---|
| 103 | mkdir -p %{buildroot}%{_libdir}
|
|---|
| 104 | mv %{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
|
|---|