[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
[10956] | 2 | %define _unpackaged_files_terminate_build 1 |
---|
[521] | 3 | |
---|
| 4 | Name: jasper |
---|
[3473] | 5 | Summary: implementation of the JPEG-2000 standard, Part 1 |
---|
[10956] | 6 | Version: 2.0.12 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
[3473] | 8 | |
---|
| 9 | Group: Applications/Graphics |
---|
| 10 | License: Modified BSD (see LICENSE) |
---|
[521] | 11 | URL: http://www.ece.uvic.ca/~mdadams/jasper/ |
---|
[3473] | 12 | |
---|
[10956] | 13 | Source: %{name}-version-%{version}.tar.gz |
---|
[521] | 14 | |
---|
[10956] | 15 | Patch1: jasper-1.900.1-CVE-2008-3520.patch |
---|
[9253] | 16 | |
---|
[521] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9253] | 18 | BuildRequires: autoconf automake libtool |
---|
[521] | 19 | BuildRequires: freeglut-devel |
---|
[9253] | 20 | BuildRequires: libGLU-devel |
---|
| 21 | BuildRequires: libjpeg-devel |
---|
| 22 | BuildRequires: pkgconfig |
---|
[10956] | 23 | BuildRequires: cmake |
---|
[9253] | 24 | |
---|
[521] | 25 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 26 | |
---|
| 27 | Vendor: Project Vine |
---|
| 28 | Distribution: Vine Linux |
---|
| 29 | |
---|
| 30 | %description |
---|
| 31 | JasPer is a collection of software (i.e., a library and application |
---|
| 32 | programs) for the coding and manipulation of images. This software |
---|
| 33 | can handle image data in a variety of formats. One such format |
---|
| 34 | supported by JasPer is the JPEG-2000 format defined in ISO/IEC 15444-1. |
---|
| 35 | |
---|
| 36 | %package devel |
---|
| 37 | Summary: Include Files and Documentation for jasper |
---|
| 38 | Group: Development/Libraries |
---|
| 39 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 40 | Requires: libjpeg-devel |
---|
| 41 | |
---|
| 42 | %description devel |
---|
| 43 | This package contains libjasper, a library implementing the JPEG-2000 |
---|
| 44 | image compression standard Part 1. |
---|
| 45 | |
---|
| 46 | %package libs |
---|
| 47 | Summary: Runtime libraries for %{name} |
---|
| 48 | Group: System Environment/Libraries |
---|
| 49 | |
---|
| 50 | %description libs |
---|
| 51 | This package contains runtime libraries for JasPer. |
---|
| 52 | |
---|
| 53 | # compat32 |
---|
| 54 | %package -n compat32-%{name}-devel |
---|
| 55 | Summary: Include Files and Documentation for jasper |
---|
| 56 | Group: Development/Libraries |
---|
| 57 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 58 | Requires: compat32-libjpeg-devel |
---|
| 59 | |
---|
| 60 | %description -n compat32-%{name}-devel |
---|
| 61 | This package contains libjasper, a library implementing the JPEG-2000 |
---|
| 62 | image compression standard Part 1. |
---|
| 63 | |
---|
| 64 | %package -n compat32-%{name}-libs |
---|
| 65 | Summary: Runtime libraries for %{name} |
---|
| 66 | Group: System Environment/Libraries |
---|
| 67 | |
---|
| 68 | %description -n compat32-%{name}-libs |
---|
| 69 | This package contains runtime libraries for JasPer. |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %prep |
---|
[10956] | 73 | %setup -q -n %{name}-version-%{version} |
---|
[521] | 74 | |
---|
[10956] | 75 | %patch1 -p1 -b .CVE-2008-3520 |
---|
[521] | 76 | |
---|
| 77 | %build |
---|
[10956] | 78 | mkdir -p builder |
---|
[521] | 79 | |
---|
[10956] | 80 | %cmake -G "Unix Makefiles" \ |
---|
| 81 | -H%{_builddir}/%{name}-version-%{version} \ |
---|
| 82 | -B%{_builddir}/%{name}-version-%{version}/builder |
---|
[9253] | 83 | |
---|
[10956] | 84 | pushd builder |
---|
| 85 | make %{?_smp_mflags} clean all |
---|
| 86 | popd |
---|
| 87 | |
---|
[521] | 88 | %install |
---|
[10956] | 89 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} |
---|
| 90 | pushd builder |
---|
| 91 | make install DESTDIR=%{buildroot} |
---|
[521] | 92 | |
---|
| 93 | # remove .la |
---|
[10956] | 94 | rm -f %{buildroot}/%{_libdir}/*.la |
---|
[521] | 95 | |
---|
[10956] | 96 | popd |
---|
| 97 | |
---|
| 98 | rm -rf %{buildroot}%{_docdir}/JasPer |
---|
| 99 | |
---|
| 100 | %check |
---|
| 101 | pushd builder |
---|
| 102 | LD_PRELOAD=`pwd`/src/libjasper/libjasper.so \ |
---|
| 103 | make test |
---|
| 104 | popd |
---|
| 105 | |
---|
[521] | 106 | %clean |
---|
[10956] | 107 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} |
---|
[521] | 108 | |
---|
| 109 | %post libs -p /sbin/ldconfig |
---|
| 110 | |
---|
| 111 | %postun libs -p /sbin/ldconfig |
---|
| 112 | |
---|
| 113 | %post -n compat32-%{name}-libs -p /sbin/ldconfig |
---|
| 114 | |
---|
| 115 | %postun -n compat32-%{name}-libs -p /sbin/ldconfig |
---|
| 116 | |
---|
| 117 | %files |
---|
| 118 | %defattr(-,root,root) |
---|
[10642] | 119 | %{!?_licensedir:%global license %%doc} |
---|
| 120 | %license COPYRIGHT LICENSE |
---|
[10956] | 121 | %doc INSTALL README doc/README doc/jasper.pdf doc/jpeg2000.pdf |
---|
[521] | 122 | %{_bindir}/* |
---|
| 123 | %{_mandir}/man1/* |
---|
| 124 | |
---|
| 125 | %files libs |
---|
| 126 | %defattr(-,root,root) |
---|
| 127 | %{_libdir}/libjasper*.so.* |
---|
| 128 | |
---|
| 129 | %files devel |
---|
| 130 | %defattr(-,root,root) |
---|
| 131 | %{_includedir}/jasper |
---|
| 132 | %{_libdir}/libjasper*.so |
---|
[9253] | 133 | %{_libdir}/pkgconfig/jasper.pc |
---|
[521] | 134 | |
---|
| 135 | # compat32 |
---|
| 136 | %if %{build_compat32} |
---|
| 137 | %files -n compat32-%{name}-libs |
---|
| 138 | %defattr(-,root,root) |
---|
| 139 | %{_libdir}/libjasper*.so.* |
---|
| 140 | |
---|
| 141 | %files -n compat32-%{name}-devel |
---|
| 142 | %defattr(-,root,root) |
---|
| 143 | %{_libdir}/libjasper*.so |
---|
[9253] | 144 | %{_libdir}/pkgconfig/jasper.pc |
---|
[521] | 145 | %endif |
---|
| 146 | |
---|
| 147 | %changelog |
---|
[10956] | 148 | * Mon Mar 20 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.12-1 |
---|
| 149 | - new upstream release. |
---|
| 150 | - dropped all patches. |
---|
| 151 | - imported patch1 from rawhide. |
---|
| 152 | |
---|
[10642] | 153 | * Tue Jul 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.900.1-11 |
---|
| 154 | - added Patch1000-1002 to fix CVE-2016-{1577,2089,2116}. |
---|
| 155 | |
---|
[9253] | 156 | * Wed Dec 24 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.900.1-10 |
---|
| 157 | - imported all patches from RawHide. |
---|
| 158 | |
---|
[8835] | 159 | * Tue Jul 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.900.1-9 |
---|
| 160 | - rebuild with libpng-1.6.12 |
---|
| 161 | |
---|
[3473] | 162 | * Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.1-8 |
---|
| 163 | - rebuilt with current VineSeed |
---|
| 164 | |
---|
[521] | 165 | * Sat May 02 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.900.1-7 |
---|
| 166 | - added compat32 subpackage for x86_64 arch support. |
---|
| 167 | |
---|
| 168 | * Sat Sep 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.900.1-6 |
---|
| 169 | - splited out runtime library to sub package |
---|
| 170 | - enable opengl again, add BuildRequires: freeglut-devel |
---|
| 171 | |
---|
| 172 | * Wed Jun 25 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.900.1-5 |
---|
| 173 | - remove .la |
---|
| 174 | - add --disable-static to configure option |
---|
| 175 | |
---|
| 176 | * Sun Jun 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.1-0vl4 |
---|
| 177 | - added Patch0 from VinePlus/4.0 |
---|
| 178 | * Thu Jun 21 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.900.1-0vl2.1 |
---|
| 179 | - add patch100 for fix CVE-2007-2721 |
---|
| 180 | - add Vendor/Distributin Tag |
---|
| 181 | |
---|
| 182 | * Fri May 25 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.900.1-0vl3 |
---|
| 183 | - remove BuildPrereq: freeglut-devel and Requires freeglut |
---|
| 184 | - add --disable-opengl to configure option |
---|
| 185 | |
---|
| 186 | * Fri Mar 16 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.900.1-0vl2 |
---|
| 187 | - add BuildPreReq: unzip (used in the %%pre section) |
---|
| 188 | |
---|
| 189 | * Thu Mar 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.1-0vl1 |
---|
| 190 | - new upstream release |
---|
| 191 | |
---|
| 192 | * Tue Jan 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.0-0vl1 |
---|
| 193 | - new upstream release |
---|
| 194 | - changed Group to System Environment/Libraries |
---|
| 195 | - added --mandir=%{_mandir} |
---|
| 196 | - added %post and %postun section |
---|
| 197 | |
---|
| 198 | * Thu Sep 07 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.701.0-0vl3 |
---|
| 199 | - added --libdir=%{_libdir} configure option |
---|
| 200 | |
---|
| 201 | * Tue Sep 5 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.701.0-0vl2 |
---|
| 202 | - build with freeglut |
---|
| 203 | - change BuildPrereq and Requires |
---|
| 204 | |
---|
| 205 | * Tue Dec 14 2004 Satoshi MACHINO <machino@vinelinux.org> 1.701.0-0vl1 |
---|
| 206 | - new upstream version (jasper-1.701.0) |
---|
| 207 | |
---|
| 208 | * Sat Nov 15 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.700.5-0vl2 |
---|
| 209 | - rebuild for VineSeedPlus |
---|
| 210 | |
---|
| 211 | * Sat Nov 15 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.700.5-0vl1 |
---|
| 212 | - source upgrade |
---|
| 213 | - change spec to build for VineLinux |
---|
| 214 | |
---|
| 215 | * Fri Oct 25 2002 Alexander D. Karaivanov <adk@medical-insight.com> |
---|
| 216 | - spec file created |
---|