File mingw32-jasper.spec of Package mingw32-jasper

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-jasper
Version:        1.900.1
Release:        0
Summary:        JPEG-2000 reference implementation (tools)

License:        JasPer
Url:            http://www.ece.uvic.ca/~mdadams/jasper/
Source0:        http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-%{version}.zip
Patch1:         jasper-1.900.1-sleep.patch
Patch2:         jasper-1.900.1-mingw32.patch
Patch3:         jasper-1.900.1-enable-shared.patch
Patch4:         patch-libjasper-stepsizes-overflow.diff
Patch5:         jasper-1.900.1-canonical-target.patch
Group:          Development/Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch
#!BuildIgnore: post-build-checks

BuildRequires:  mingw32-filesystem >= 23
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-libjpeg-devel
BuildRequires:  autoconf automake libtool unzip

%description
The JasPer Project is an open-source initiative to provide a free software-based reference implementation of the codec
specified in the JPEG-2000 Part-1 standard (i.e., ISO/IEC 15444-1).


%package -n mingw32-libjasper
Summary:        JPEG-2000 reference implementation
Group:          Development/Libraries

%description -n mingw32-libjasper
The JasPer Project is an open-source initiative to provide a free software-based reference implementation of the codec
specified in the JPEG-2000 Part-1 standard (i.e., ISO/IEC 15444-1).


%package -n mingw32-libjasper-devel
Summary:        JPEG-2000 reference implementation (development files)
Group:          Development/Libraries

%description -n mingw32-libjasper-devel
The JasPer Project is an open-source initiative to provide a free software-based reference implementation of the codec
specified in the JPEG-2000 Part-1 standard (i.e., ISO/IEC 15444-1).


%{_mingw32_debug_package}

%prep
%setup -q -n jasper-%{version}
%patch1 -p1 -b .sleep
%patch2 -p1 -b .mingw32
%patch3 -p1 -b .enable-shared
%patch4 -p1 -b .overflow
%patch5 -p1 -b .canonical-target


%build
libtoolize --copy --force
aclocal
automake --add-missing
autoconf
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	--disable-opengl --enable-libjpeg \
	--enable-shared --disable-static
%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}


%install
%{_mingw32_makeinstall}


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%{_mingw32_bindir}/imgcmp.exe
%{_mingw32_bindir}/imginfo.exe
%{_mingw32_bindir}/jasper.exe
%{_mingw32_bindir}/tmrdemo.exe
%{_mingw32_mandir}/man1/imgcmp.1*
%{_mingw32_mandir}/man1/imginfo.1*
%{_mingw32_mandir}/man1/jasper.1*
%{_mingw32_mandir}/man1/jiv.1*


%files -n mingw32-libjasper
%defattr(-,root,root)
%{_mingw32_bindir}/libjasper-1.dll


%files -n mingw32-libjasper-devel
%defattr(-,root,root)
%{_mingw32_libdir}/libjasper.dll.a
%{_mingw32_includedir}/jasper/


%changelog
openSUSE Build Service is sponsored by