LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File jhead.spec of Package jhead (Project graphics)

# spec file for package jhead
# Copyright (c) 2012 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:           jhead
Version:        2.96
Release:        0
Requires:       %{_bindir}/jpegtran
Requires:       %{_bindir}/mogrify
Summary:        Tool to Manipulate the Nonimage Part of EXIF Compliant JPEG Files
License:        SUSE-Public-Domain
Group:          Productivity/Graphics/Other
Url:            http://www.sentex.net/~mwandel/jhead/
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Jhead is a command line utility for extracting digital camera settings
from the EXIF format files used by many digital cameras. It handles the
various confusing ways these can be expressed and displays them as
F-stop, shutter speed, and more. It is also able to reduce the size of
digital camera JPEG files without loss of information by deleting
thumbnails that digital cameras put into the EXIF header.

    Matthias Wandel <mwandel@sentex.net>

%setup -q
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""

make CC="gcc %optflags -D__DATE__=$DATE"

install -d -m 755 %buildroot%{_bindir}
install -d -m 755 %buildroot%{_mandir}/man1
install -m 755 jhead %buildroot%{_bindir}
install -m 644 jhead.1  %buildroot%{_mandir}/man1

%doc changes.txt readme.txt usage.html 
%doc %{_mandir}/man1/*.*