File exifprobe.spec of Package exifprobe

#
# spec file for package exifprobe (Version 2.0.1)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           exifprobe
Version:        2.0.1
Release:        32
# http://www.virtual-cafe.com/~dhh/tools.d/exifprobe.d/exifprobe.html does not exist any more.
URL:            http://web.archive.org/web/20110725065411/http://www.virtual-cafe.com/~dhh/tools.d/exifprobe.d/exifprobe.html
Group:          Productivity/Graphics/Other
License:        BSD-2-Clause
Summary:        JPEG and TIFF Structure Analyzer with EXIF and MakerNote Support
Source:         %{name}-%{version}.tar.bz2
Patch:          exifprobe-2.0.1-invalid-operation.patch
Patch1:         exifprobe-2.0.1-filesubformatAPPN.patch
Patch2:         exifprobe-2.0.1-makebyteorder-endianness.patch

%description
Exifprobe examines and reports the contents and structure of JPEG and
TIFF image files. It recognizes all standard JPEG markers (including
APPn markers) and reports the contents of any properly structured TIFF
IFD encountered, even when entry tags are not recognized. Recognized
TIFF and TIFF/EP tags are expanded, including EXIF2.2 sections and
camera MakerNotes in TIFF IFD format. GPS and GeoTIFF tags are
recognized and entries printed in "raw" form, but are not expanded.
Location, size, and format of image data is reported.

%prep
%setup -q
%patch -p1
%patch1 -p1
%patch2 -p1
chmod -x LICENSE.EXIFPROBE

%build
make CFLAGS="-DCOLOR $RPM_OPT_FLAGS" PREFIX=/usr MANDIR=/usr/share/man/man1

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
make CFLAGS="-DCOLOR $RPM_OPT_FLAGS" PREFIX=$RPM_BUILD_ROOT/usr MANDIR=$RPM_BUILD_ROOT/usr/share/man/man1 install

%files
%defattr (-, root, root)
%doc ABOUT_PIM CAMERA_makes_and_models CREDITS DESCRIPTION LICENSE.EXIFPROBE MAKER_NOTES
/usr/bin/*
%doc /usr/share/man/man?/*.*

%changelog -n exifprobe
openSUSE Build Service is sponsored by