File exif.spec of Package exif

#
# spec file for package exif
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           exif
BuildRequires:  libexif-devel
BuildRequires:  pkgconfig
BuildRequires:  popt-devel
URL:            http://sourceforge.net/projects/libexif
Summary:        Small Command Line Utility to Show and Change EXIF Information in JPEG Files
License:        GPL-2.0-or-later
Group:          Productivity/Graphics/Other
Version:        0.6.22
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2
Patch0:         0001-pass-in-unsinged-int-related-to-https-github.com-lib.patch
Patch1:         0001-second-fix-for-https-github.com-libexif-exif-issues-.patch

%description
Exif is a small command line utility to show and change EXIF
information hidden in JPEG files. It demonstrate the power of libexif
library.

%prep 
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure
make %{?_smp_mflags}

%check
make check

%install
make DESTDIR=${RPM_BUILD_ROOT}/ install
%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,root)
/usr/bin/exif
%doc %{_mandir}/man1/exif.1.gz

%changelog