| 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.33
|
|---|
| 9 | Release: 1%{?dist}
|
|---|
| 10 |
|
|---|
| 11 | License: JasPer
|
|---|
| 12 | URL: http://www.ece.uvic.ca/~frodo/jasper/
|
|---|
| 13 | %if !0%{?os2_version}
|
|---|
| 14 | Source0: 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}
|
|---|
| 21 | Patch2: jasper-2.0.14-rpath.patch
|
|---|
| 22 | Patch3: jasper-freeglut.patch
|
|---|
| 23 |
|
|---|
| 24 | # architecture related patches
|
|---|
| 25 | Patch100: jasper-2.0.2-test-ppc64-disable.patch
|
|---|
| 26 | Patch101: jasper-2.0.2-test-ppc64le-disable.patch
|
|---|
| 27 | %endif
|
|---|
| 28 |
|
|---|
| 29 | # autoreconf
|
|---|
| 30 | BuildRequires: cmake
|
|---|
| 31 | %if !0%{?os2_version}
|
|---|
| 32 | BuildRequires: freeglut-devel
|
|---|
| 33 | BuildRequires: libGLU-devel
|
|---|
| 34 | %endif
|
|---|
| 35 | BuildRequires: libjpeg-devel
|
|---|
| 36 | %if !0%{?os2_version}
|
|---|
| 37 | BuildRequires: libXmu-devel libXi-devel
|
|---|
| 38 | %endif
|
|---|
| 39 | BuildRequires: pkgconfig doxygen
|
|---|
| 40 | %if !0%{?os2_version}
|
|---|
| 41 | BuildRequires: mesa-libGL-devel
|
|---|
| 42 | %endif
|
|---|
| 43 |
|
|---|
| 44 | Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|---|
| 45 | BuildRequires: gcc
|
|---|
| 46 | BuildRequires: make
|
|---|
| 47 |
|
|---|
| 48 | %description
|
|---|
| 49 | This package contains an implementation of the image compression
|
|---|
| 50 | standard JPEG-2000, Part 1. It consists of tools for conversion to and
|
|---|
| 51 | from the JP2 and JPC formats.
|
|---|
| 52 |
|
|---|
| 53 | %package devel
|
|---|
| 54 | Summary: Header files, libraries and developer documentation
|
|---|
| 55 | Provides: libjasper-devel = %{version}-%{release}
|
|---|
| 56 | Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|---|
| 57 | Requires: libjpeg-devel
|
|---|
| 58 | Requires: pkgconfig
|
|---|
| 59 | %description devel
|
|---|
| 60 | %{summary}.
|
|---|
| 61 |
|
|---|
| 62 | %package libs
|
|---|
| 63 | Summary: Runtime libraries for %{name}
|
|---|
| 64 | Conflicts: jasper < 1.900.1-4
|
|---|
| 65 | %description libs
|
|---|
| 66 | %{summary}.
|
|---|
| 67 |
|
|---|
| 68 | %package utils
|
|---|
| 69 | Summary: Nonessential utilities for %{name}
|
|---|
| 70 | Requires: %{name} = %{version}-%{release}
|
|---|
| 71 | Requires: %{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
|
|---|
| 102 | mkdir builder
|
|---|
| 103 | cd builder
|
|---|
| 104 |
|
|---|
| 105 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 106 | export 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
|
|---|
| 113 | make %{?_smp_mflags}
|
|---|
| 114 | %endif
|
|---|
| 115 |
|
|---|
| 116 | %install
|
|---|
| 117 | make install/fast DESTDIR=%{buildroot} -C builder
|
|---|
| 118 |
|
|---|
| 119 | # Unpackaged files
|
|---|
| 120 | rm -f doc/README
|
|---|
| 121 | rm -f %{buildroot}%{_libdir}/lib*.la
|
|---|
| 122 |
|
|---|
| 123 | %check
|
|---|
| 124 | %if !0%{?os2_version}
|
|---|
| 125 | make 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
|
|---|