File mingw64-jasper.spec of Package mingw64-jasper

#
# spec file for package mingw64-jasper
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%global soversion 4
Name:           mingw64-jasper
Version:        1.900.29
Release:        0
Summary:        JPEG-2000 reference implementation (tools)
License:        SUSE-Public-Domain
Group:          Development/Libraries/C and C++
Url:            http://www.ece.uvic.ca/~mdadams/jasper/
Source0:        http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-%{version}.tar.gz
Patch2:         jasper-1.900.1-mingw64.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-libjpeg-devel
BuildRequires:  unzip
%_mingw64_package_header_debug
BuildArch:      noarch

%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 mingw64-libjasper%{soversion}
Summary:        JPEG-2000 reference implementation
Group:          System/Libraries
Obsoletes:      mingw64-libjasper

%description -n mingw64-libjasper%{soversion}
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 mingw64-libjasper-devel
Summary:        JPEG-2000 reference implementation (development files)
Group:          Development/Libraries/C and C++

%description -n mingw64-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).

%_mingw64_debug_package

%prep
%setup -q -n jasper-%{version}
%patch -P 2 -p1 -b .mingw64

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

%install
%{_mingw64_makeinstall}

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

%files -n mingw64-libjasper%{soversion}
%defattr(-,root,root)
%{_mingw64_bindir}/libjasper-%{soversion}.dll

%files -n mingw64-libjasper-devel
%defattr(-,root,root)
%{_mingw64_libdir}/libjasper.dll.a
%{_mingw64_includedir}/jasper/
%{_mingw64_libdir}/pkgconfig/jasper.pc

%changelog
openSUSE Build Service is sponsored by