%define oname OpenJPEG %define oversion %(echo %{version} | sed -e 's/\\./_/g') %define lib_major 2 %define lib_name %mklibname %{name} %{lib_major} %define lib_dev %mklibname %{name} -d %define common_description The OpenJPEG library is an open-source JPEG 2000 codec written in C\ language. It has been developed in order to promote the use of JPEG\ 2000, the new still-image compression standard from the Joint\ Photographic Experts Group (JPEG). Name: openjpeg Version: 1.3 %define subrel 2 Release: %mkrel 8 Summary: An open-source JPEG 2000 codec Source0: %{name}_v%{oversion}.tar.gz Patch0: openjpeg-1.3-Makefile.patch Patch1: OpenJPEG_v1_3-CVE-2009-5030.diff Patch2: OpenJPEG_v1_3-CVE-2012-3358.diff Patch3: OpenJPEG_v1_3-CVE-2012-3535.diff License: BSD Group: System/Libraries Url: http://www.openjpeg.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description %{common_description} %package -n %{lib_name} Summary: %{oname} library Group: System/Libraries %description -n %{lib_name} This package contains the library needed to run programs dynamically linked with the %{oname} library. %{common_description} %files -n %{lib_name} %defattr(-,root,root) %{_libdir}/*.so.* #--------------------------------------------- %package -n %{lib_dev} Summary: Development tools for programs using the %{oname} library Group: Development/C Requires: %{lib_name} = %{version} Provides: %{name}-devel = %{version}-%{release} %description -n %{lib_dev} This package contains the header files and libraries needed for developing programs using the %{oname} library. %{common_description} %files -n %{lib_dev} %defattr(-,root,root) %{_includedir}/%{name}.h %{_libdir}/*.a %{_libdir}/*.so #--------------------------------------------- %prep %setup -q -n %{oname}_v%{oversion} %patch0 -p1 -b .inst %patch1 -p1 -b .CVE-2009-5030 %patch2 -p1 -b .CVE-2012-3358 %patch3 -p0 -b .CVE-2012-3535 %build %make CFLAGS="%{optflags} -fPIC" LDFLAGS="%{ldflags}" %install rm -rf %buildroot %makeinstall_std INSTALL_LIBDIR=%{_libdir} %clean rm -rf %buildroot %changelog * Tue Oct 02 2012 Oden Eriksson <oeriksson@mandriva.com> 1.3-8.2 - P3: security fix for CVE-2012-3535 (rhel6) * Thu Jul 12 2012 Oden Eriksson <oeriksson@mandriva.com> 1.3-8.1 - P1: security fix for CVE-2009-5030 (rhel6) - P2: security fix for CVE-2012-3358 (rhel6) * Wed May 04 2011 Oden Eriksson <oeriksson@mandriva.com> 1.3-8mdv2011.0 + Revision: 666953 - mass rebuild * Fri Dec 03 2010 Oden Eriksson <oeriksson@mandriva.com> 1.3-7mdv2011.0 + Revision: 607018 - rebuild * Mon Dec 21 2009 Funda Wang <fwang@mandriva.org> 1.3-6mdv2010.1 + Revision: 480780 - add gentoo patch (bug#50606) * Thu Sep 03 2009 Christophe Fergeau <cfergeau@mandriva.com> 1.3-5mdv2010.0 + Revision: 426345 - rebuild * Sun Aug 03 2008 Helio Chissini de Castro <helio@mandriva.com> 1.3-4mdv2009.0 + Revision: 262256 - Push new openjpeg build. Needed for kde4 okular * Wed Jul 30 2008 Thierry Vignaud <tv@mandriva.org> 1.3-3mdv2009.0 + Revision: 254780 - rebuild * Sun Mar 02 2008 Olivier Blin <oblin@mandriva.com> 1.3-1mdv2008.1 + Revision: 177766 - fix lib install on x86_64 - 1.3 - rediff inst patch - use makeinstall_std * Thu Jan 03 2008 Olivier Blin <oblin@mandriva.com> 1.1.1-1mdv2008.1 + Revision: 141036 - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Sun Mar 11 2007 Olivier Blin <oblin@mandriva.com> 1.1.1-1mdv2007.1 + Revision: 141340 - 1.1.1 * Mon Jan 08 2007 Olivier Blin <oblin@mandriva.com> 1.0-2mdv2007.1 + Revision: 106206 - remove misleading description - remove empty package * Mon Jan 08 2007 Olivier Blin <oblin@mandriva.com> 1.0-1mdv2007.1 + Revision: 106121 - initial openjpeg release - Create openjpeg