%define oname OpenJPEG %define major 5 %define lib_name %mklibname %{name} %{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.5.1 Release: %mkrel 3 Summary: An open-source JPEG 2000 codec License: BSD Group: System/Libraries Url: http://www.openjpeg.org/ Source0: http://openjpeg.googlecode.com/files/%{name}-%{version}.tar.gz BuildRequires: png-devel BuildRequires: tiff-devel BuildRequires: lcms2-devel BuildRequires: cmake %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} %package -n %{lib_dev} Summary: Development tools for programs using the %{oname} library Group: Development/C Requires: %{lib_name} = %{version} Requires: %{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} %prep %setup -q %build %cmake \ -DOPENJPEG_INSTALL_BIN_DIR:PATH=%{_bindir} \ -DOPENJPEG_INSTALL_DATA_DIR:PATH=%{_datadir} \ -DOPENJPEG_INSTALL_INCLUDE_DIR:PATH=%{_includedir} \ -DOPENJPEG_INSTALL_LIB_DIR:PATH=%{_libdir} %make %install %makeinstall_std -C build mv %{buildroot}%{_docdir}/%{name}-* %{buildroot}%{_docdir}/%{name} %files %{_bindir}/* %{_mandir}/man1/* %{_docdir}/%{name} %files -n %{lib_name} %{_libdir}/*.so.%{major} %{_libdir}/*.so.%{version} %files -n %{lib_dev} %{_includedir}/* %{_mandir}/man3/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_libdir}/%{name}-*/*.cmake %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.5.1-3.mga3 + Revision: 362044 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Dec 29 2012 guillomovitch <guillomovitch> 1.5.1-2.mga3 + Revision: 336158 - fix doc directory location and ownership * Fri Sep 28 2012 luigiwalser <luigiwalser> 1.5.1-1.mga3 + Revision: 299031 - 1.5.1 - remove patches (fixed upstream) - library major is now 5 - fix library name in files list - fix devel package reqs (from mdv) * Mon Sep 17 2012 luigiwalser <luigiwalser> 1.5.0-5.mga3 + Revision: 295615 - add upstream patch to fix CVE-2012-3535 * Wed Jul 11 2012 luigiwalser <luigiwalser> 1.5.0-4.mga3 + Revision: 269565 - add upstream patch to fix CVE-2012-3358 * Mon Jul 02 2012 luigiwalser <luigiwalser> 1.5.0-3.mga3 + Revision: 266764 - fix CVE-2009-5030 patch * Fri Jun 29 2012 luigiwalser <luigiwalser> 1.5.0-2.mga3 + Revision: 265105 - add upstream patch to work around CVE-2009-5030 * Thu Apr 12 2012 fwang <fwang> 1.5.0-1.mga2 + Revision: 230350 - sync with fedora patches - new version 1.5.0 * Sun Dec 25 2011 fwang <fwang> 1.4-3.mga2 + Revision: 187415 - rebuild for new tiff * Fri Oct 07 2011 fwang <fwang> 1.4-2.mga2 + Revision: 152637 - fix header of openjpeg * Fri Oct 07 2011 fwang <fwang> 1.4-1.mga2 + Revision: 152599 - use plain lib - specify libdir - new version 1.4, sync with fedora * Sat Jan 15 2011 ahmad <ahmad> 1.3-7.mga1 + Revision: 19348 - imported package openjpeg