File sfftobmp.spec of Package sfftobmp

#
# spec file for package sfftobmp (Version 3.1.1)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           sfftobmp
BuildRequires:  boost-devel gcc-c++ libjpeg-devel libtiff-devel
License:        X11/MIT
Group:          Hardware/ISDN
AutoReqProv:    on
Version:        3.1.1
Release:        100
Summary:        Tool to convert Structured Fax Files (.sff) to other image formats
Source:         %{name}-%{version}.tar.bz2 
Url:            http://sfftools.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch:          %{name}-gcc43.diff

%description
The CAPI interface for programming ISDN hardware expects and gives
faxes in the "Structured Fax File" (SFF) format.

SffToBmp is a converter tool, written in C++, to transform SFF files to
BMP, JPEG or multipage TIFF format. In addition generation of PBM files
(Portable Bitmap) is also possible which can be transformed into nearby
all other graphics formats using the PBMPLUS tools that are included in
almost every Linux distribution nowadays.



Authors:
--------
    Peter Schaefer

%prep
%setup -q -n %{name}%{version}
%patch

%build
touch INSTALL NEWS README AUTHORS ChangeLog COPYING
autoreconf --force --install
%configure
%{__make} %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
install -d $RPM_BUILD_ROOT/%{_defaultdocdir}/sfftobmp/getopt
install -m 644 doc/getopt/* $RPM_BUILD_ROOT/%{_defaultdocdir}/sfftobmp/getopt
rm -rf doc/getopt
install -m 644 doc/* $RPM_BUILD_ROOT/%{_defaultdocdir}/sfftobmp

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/sfftobmp
%doc %{_defaultdocdir}/sfftobmp

%changelog
* Thu Feb 26 2009 crrodriguez@suse.de
- extend GCC 4.3 patch to over gcc  4.4 as well
* Thu Feb 21 2008 kkeil@suse.de
- fix permissions of doc files
* Thu Oct 11 2007 kkeil@suse.de
- fixes for GCC 4.3
* Mon Oct 08 2007 kkeil@suse.de
- update to current 3.1.1
  * set the "DateTime" field within TIFF files with the UTC value
  of the input file's mtime
* Mon Mar 05 2007 kkeil@suse.de
- update to current 3.1 version
  V3.0:
  * changed commandline options, now includes multi-file processing
  * made keeping the date possible for linux, too
  * fixed decoder bug which did not decode a full line
  (Kudos to Eckhard Rueggeberg)
  * fixed extended MH codes (wrong bitorder)
  V3.1:
  * changed message output from stderr to stdout except errors
  * added -quiet switch
  * some fixes from debian package
  * some big endian fixes
  * allowed up to 2048 bytes "fuzz" at the beginning of the file
* Fri May 26 2006 schwab@suse.de
- Use RPM_OPT_FLAGS.
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 08 2005 dmueller@suse.de
- don't build as root
* Wed Mar 30 2005 kkeil@suse.de
- a dword is always 32 bit, also on 64 bit OS (#75254)
* Thu Jun 12 2003 kkeil@suse.de
- fix filelist
* Tue Feb 04 2003 ghillie@suse.de
- updated to 2.2 (includes writing TIFFs to stdout now)
- removed sfftobmp-stdout.diff as it has been included by upstream
  maintainer
* Mon Dec 16 2002 gernot@hillier.de
- first package
openSUSE Build Service is sponsored by