File gnome-web-photo.spec of Package gnome-web-photo

#
# spec file for package gnome-web-photo (Version 0.5)
#
# Copyright (c) 2008 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:           gnome-web-photo
BuildRequires:  gcc-c++ gnome-common gnutls-devel intltool libglade2-devel
BuildRequires:  libgnomeprintui-devel libgnomeui-devel libwnck-devel
BuildRequires:  perl-XML-Parser update-desktop-files
License:        GPL v2 or later
Group:          Productivity/Graphics/Viewers
Version:        0.5
Release:        7
Summary:        GNOME Web Photographer
Source:         %{name}-%{version}.tar.bz2
# PATCH-FEATURE-UPSTREAM gnome-web-photo-libxul.patch -- Port to xulrunner 1.9, taken from upstream svn
Patch0:         gnome-web-photo-libxul.patch
# PATCH-FIX-UPSTREAM gnome-web-photo-no-system-prefs.patch bnc444682 vuntz@novell.com
Patch1:         gnome-web-photo-no-system-prefs.patch
Url:            http://www.gnome.org
%if %suse_version > 1030 || 0%{?opensuse_bs}
BuildRequires:  mozilla-xulrunner190-devel
Requires:       mozilla-xulrunner190
%endif
# The requirements on older xulrunners here are academic; the package won't build
# on old versions of the distro for other reasons.
%if %suse_version >= 1020 && %suse_version < 1030
BuildRequires:  mozilla-xulrunner181-devel
Requires:       mozilla-xulrunner181
%endif
%if %suse_version < 1020
BuildRequires:  gecko-sdk
Requires:       mozilla-xulrunner
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
%gconf_schemas_prereq

%description
GNOME Web Photographer is a tool to generate full-size image files and
thumbnails from HTML files and web pages.



Authors:
--------
    Christian Persch <chpe@gnome.org>

%lang_package
%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
autoreconf -fi
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang %{name}
%find_gconf_schemas

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.schemas_list
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/gnome-web-photo
%{_bindir}/gnome-web-print
%{_bindir}/gnome-web-thumbnail
%{_datadir}/gnome-web-photo

%files lang -f %{name}.lang

%changelog
* Tue Dec 02 2008 vuntz@novell.com
- Add gnome-web-photo-no-system-prefs.patch to fix bnc#444682. It
  seems gnome-web-photo was able to change some important firefox
  settings.
* Wed Sep 03 2008 mboman@novell.com
- Update to version 0.5:
  + Fix UA string for ff compatibility.
  + Correctly initialize the GdkPixdata pointer so that it's always valid.
  (bnc#395920)
- Removed gnome-web-photo-bnc395920-crash.patch. Fixed upstream.
* Thu Aug 28 2008 jpr@novell.com
- Fix conditional BuildRequires so only mozilla181 is installed
* Wed Jul 23 2008 vuntz@novell.com
- Tag patches.
- Add gnome-web-photo-bnc395920-crash.patch as potential fix for
  bnc#395920.
* Wed May 21 2008 maw@suse.de
- Add gnome-web-photo-libxul.patch (better fix for bnc#381154)
- Cleanup the spec file with respect to xulrunner usage.
* Mon Apr 28 2008 maw@suse.de
- Actually build and run against mozillaxulrunner190 (bnc#381154).
* Wed Apr 02 2008 maw@suse.de
- Update to version 0.4:
  + Port to mozilla-xulrunner190.
* Thu Mar 06 2008 jpr@suse.de
- Update to 0.3
  * Renice when thumbnailing
  * Thumbnail application/xhtml+xml files
  * Initialise GThread before calling any glib function
- Remove gnome-web-photo-160795-renice-when-thumbnailing.diff, it
  was upstreamed
- Remove gnome-web-photo-focus.patch, it was upstreamed
- Split off lang package
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Mon Jan 15 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Thu Nov 30 2006 sbrabec@suse.cz
- Fixed xulrunner dependencies for older products.
* Tue Nov 07 2006 sbrabec@suse.cz
- Use exact xulrunner version 181 (#216100).
* Fri Oct 13 2006 danw@suse.de
- Remove dead patch
* Wed Sep 20 2006 jhargadon@suse.de
- update to version 0.2
- Use the document font gconf key
- Use stock endianness define
- Fix some compile warnings, and add support for xulrunner
  trunk
- Updated from Epiphany: correct gecko version check
  if mozilla-config.h includes other files
* Mon Apr 10 2006 danw@suse.de
- call gtk_window_set_focus_on_map(win, FALSE) to explicitly request
  that the offscreen gecko window not be focused. Part of 160795.
* Tue Apr 04 2006 federico@novell.com
- Added gnome-web-photo-160795-renice-when-thumbnailing.diff as a
  workaround for https://bugzilla.novell.com/show_bug.cgi?id=160795.
  We renice the gnome-web-photo process if it is being used as a thumbnailer.
* Wed Feb 01 2006 jpr@suse.de
- Alter the default config so a working thumbnail command line is used
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 28 2005 gekker@suse.de
- Update to version 0.1.1
* Mon Oct 31 2005 gekker@suse.de
- Initial import of package 0.1cvs20051031