File mingw64-exiv2.spec of Package mingw64-exiv2
#
# spec file for package mingw64-exiv2
#
# Copyright (c) 2018 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/
#
Name: mingw64-exiv2
Version: 0.28.0
Release: 0
Summary: Tool to access image Exif metadata
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
Url: http://exiv2.org/
# Latest source hosted on github - older archive versions only on exiv2.org
Source: https://github.com/Exiv2/exiv2/releases/download/v%version/exiv2-%version-Source.tar.gz
BuildRequires: mingw64-cross-cmake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: libxslt
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libexpat-devel
BuildRequires: mingw64-libintl-devel
BuildRequires: mingw64-win_iconv-devel
BuildRequires: mingw64-zlib-devel
BuildRequires: python
# doxygen likes to have this
BuildRequires: graphviz
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: -post-build-checks
%description
Exiv2 is a command line utility to access image metadata from tags like
Exif.
%package -n mingw64-libexiv2
Summary: Library to access image metadata
Group: System/Libraries
%description -n mingw64-libexiv2
libexiv2 is a C++ library with a C compatibility interface to access
image metadata, esp from Exif tags.
%package -n mingw64-libexiv2-devel
Summary: Development Headers for Exiv2
Group: Development/Libraries/C and C++
%description -n mingw64-libexiv2-devel
Exiv2 is a C++ library and a command line utility to access image
metadata.
%_mingw64_debug_package
%prep
%setup -qn exiv2-%{version}-Source
%build
export CXXFLAGS="%optflags $(getconf LFS_CFLAGS)"
%_mingw64_cmake \
-DEXIV2_ENABLE_DOC:BOOL=ON \
-DEXIV2_ENABLE_XMP:BOOL=OFF \
-DEXIV2_ENABLE_NLS:BOOL=OFF \
-DEXIV2_ENABLE_BMFF:BOOL=OFF \
-DEXIV2_ENABLE_BROTLI:BOOL=OFF \
-DEXIV2_ENABLE_VIDEO:BOOL=OFF \
-DEXIV2_ENABLE_INIH:BOOL=OFF \
-DEXIV2_ENABLE_BUILD_SAMPLES:BOOL=OFF
%_mingw64_cmake_build
%install
%_mingw64_cmake_install
rm -f "%buildroot/%_mingw64_libdir/pkgconfig/exiv2.lsm"
rm -rf "%buildroot/%_mingw64_libdir/cmake"
%files
%defattr(-,root,root)
%doc doc/ChangeLog doc/cmd.txt
%_mingw64_bindir/exiv2.exe
%_mingw64_mandir/man1/exiv2.1*
%files -n mingw64-libexiv2
%defattr(-,root,root)
%_mingw64_bindir/libexiv2.dll
%files -n mingw64-libexiv2-devel
%defattr(-,root,root)
%_mingw64_includedir/exiv2/
%_mingw64_libdir/libexiv2.dll.a
%_mingw64_libdir/pkgconfig/*.pc
%changelog