File jpegdump.spec of Package jpegdump

#
# spec file for package jpegdump
#
# Copyright (c) 2011 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:           jpegdump
License:        BSD 3-Clause
Group:          Productivity/Graphics/Other
Version:        1.10
Release:        0
Summary:        JPEG File Inspection Program
Url:            http://www.programmersheaven.com/download/15260/download.aspx
Source:         JPEGDUMP.ZIP
BuildRequires:  unzip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Print basic info about each file (image dimensions, quality setting,
sampling ratios) of JPEG files.

Authors:
--------
    Allan Hessenflow
    Tom Lane

%lang_package
%prep
%setup -q -c %{name}-%{version}
tr -d '\r' <JPEGDUMP.C >jpegdump.c
tr -d '\r' <README >README~
touch -r README README~
mv README~ README

%build
gcc -Wall -O2 -Dstrnicmp=strncasecmp $RPM_OPT_FLAGS jpegdump.c -o jpegdump

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install jpegdump $RPM_BUILD_ROOT%{_bindir}/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README
%{_bindir}/*

%changelog
openSUSE Build Service is sponsored by