File flphoto.spec of Package flphoto

#
# spec file for package flphoto (Version 1.3.1)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           flphoto
BuildRequires:  cups-devel fltk-devel gcc-c++ libgphoto2-devel libjpeg-devel libpng-devel openssl-devel xorg-x11-devel
License:        GPL v2 or later
Group:          Productivity/Graphics/Viewers
Summary:        An FLTK-Based Basic Image Management and Display Program
Version:        1.3.1
Release:        178
Source:         flphoto-%{version}-source.tar.bz2
Patch:          flphoto-1.1rc3-locale.patch
Patch1:         flphoto-1.3.1-maxinum.patch
Patch2:         flphoto-configure.patch
Patch3:         flphoto-1.3.1-proto.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.easysw.com/~mike/flphoto/
%define prefix /usr

%description
flPhoto organizes image files into albums that can be printed, viewed
as a slide show, and exported to Web pages.  Images can be imported
individually, by directory, or from digital cameras using the gPhoto
<http://www.gphoto.org> library.  flPhoto can read, write, and display
digital camera EXIF information and supports BMP, CRW, JPEG, PhotoCD,
PNG, and TIFF image files. Image files can be cropped, rotated, scaled,
and adjusted via a number of simple filters.



Authors:
--------
    Michael Sweet <mike@easysw.com>

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2
%patch3 -p0

%build
%{?suse_update_config:%{suse_update_config}}
autoconf
%configure --with-docdir=%{_docdir}/%{name}
make

%install
mkdir -p $RPM_BUILD_ROOT%{prefix}
make DESTDIR=$RPM_BUILD_ROOT install
# don't for now.
# make DESTDIR=$RPM_BUILD_ROOT install-desktop
rm -rf $RPM_BUILD_ROOT/%{_mandir}/cat*
rm -rf $RPM_BUILD_ROOT/usr/share/locale/en_CA
%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc COPYING README doc/*.html doc/*.png doc/*.jpg
/usr/bin/flphoto
/usr/bin/fldcraw
%{_mandir}/man*/*

%changelog
* Tue Jul 15 2008 meissner@suse.de
- fixed mkdir prototype (previously leaked in via
  libgphoto2 headers).
* Wed Dec 06 2006 meissner@suse.de
- upgraded to 1.3.1.
	- new fldcraw
	- calendar printing enhanced
	- various bugfixes
- maximum() -> maxinum() typo in older FLTKs.
* Sun Oct 22 2006 meissner@suse.de
- added buildrequires libgphoto2-devel.
* Mon Jun 19 2006 schwab@suse.de
- Work around broken use of configure substitution.
* Fri Mar 17 2006 meissner@suse.de
- fixed undefined piece of code #158758
* Wed Feb 15 2006 postadal@suse.cz
- fixed segfault caused by AVI plugin for fltk [#145907] (avi.patch)
- removed -Wno-return-type from CFLAGS (configure.patch)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 10 2006 meissner@suse.de
- fixed build (readded locale patch).
* Mon Jan 09 2006 meissner@suse.de
- upgraded to 1.3.
* Thu Jan 20 2005 meissner@suse.de
- 1 unused use was fixed wrong
* Wed Jan 19 2005 meissner@suse.de
- fixed sentinel to execlp, 1 unused use, 1 undef use.
* Mon Mar 01 2004 meissner@suse.de
- upgraded to 1.2.
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Thu Dec 18 2003 meissner@suse.de
- Upgraded to 1.2rc2.
  + Pretty good working red-eye removal.
  + The camera import dialog now supports downloading images from flash cards and other USB storage devices.
  + panning, zooming added.
  + stylesheets for html export.
* Tue Sep 09 2003 meissner@suse.de
- Upgraded to 1.1rc3.
  + lots of fixes to auto adjust, export etc. modes
- Mangle some i18n things to fit with find_lang.
* Wed May 28 2003 meissner@suse.de
- removed all unpackaged files.
* Mon Feb 17 2003 meissner@suse.de
- fixed build with new fltk.
* Thu Jan 09 2003 meissner@suse.de
- Upgraded to upstream 1.0, better albums, bugfixes.
- Patches merged upstream.
* Wed Dec 04 2002 meissner@suse.de
- Fixed gcc 3.3 compile problem.
* Wed Nov 27 2002 meissner@suse.de
- Created package for 0.8.
openSUSE Build Service is sponsored by