File mingw64-libexif.spec of Package mingw64-libexif

#
# spec file for package mingw64-libexif
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#


Name:           mingw64-libexif
Version:        0.6.20
Release:        0
Summary:        An EXIF Tag Parsing Library for Digital Cameras
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            http://libexif.sourceforge.net
Source0:        http://downloads.sourceforge.net/project/libexif/libexif/%{version}/libexif-%{version}.tar.bz2
#!BuildIgnore: post-build-checks
BuildRequires:  gettext-tools
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-libintl-devel
Requires:       %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch:      noarch

%description
This library is used to parse EXIF information from JPEGs created by
digital cameras.

%package -n mingw64-libexif12
Summary:        An EXIF Tag Parsing Library for Digital Cameras
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw64-libexif12
This library is used to parse EXIF information from JPEGs created by
digital cameras.

%package devel
Summary:        An EXIF Tag Parsing Library for Digital Cameras (Development files)
Group:          Development/Libraries/C and C++

%description devel
This library is used to parse EXIF information from JPEGs created by digital cameras.

%_mingw64_debug_package

%lang_package

%prep
%setup -q -n libexif-%{version}

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
%{_mingw64_make} DESTDIR=%{buildroot} install

%find_lang libexif-12

%files -n mingw64-libexif12
%defattr(-,root,root)
%{_mingw64_bindir}/libexif-12.dll

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/libexif
%{_mingw64_libdir}/libexif.dll.a
%{_mingw64_libdir}/pkgconfig/libexif.pc
%{_mingw64_datadir}/doc/libexif

%files lang -f libexif-12.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by