File webmonx.spec of Package webmonx
#
# spec file for package webmonx
#
# 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: webmonx
Version: 0.3.3
Release: 0
License: GPL-2.0+
Summary: Websites Update Monitoring Tool
Url: http://debfx.fobos.de/webmonx/
Group: Productivity/Networking/Web/Utilities
Source0: http://downloads.sourceforge.net/webmonx/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM webmonx-0.3.3-fix_dir.patch lazy.kent@opensuse.org -- fix program data directory
Patch0: webmonx-0.3.3-fix_dir.patch
# PATCH-FIX-OPENSUSE webmonx-0.3.3-optflags.patch lazy.kent@opensuse.org -- use optimization flags and don't strip binaries
Patch1: webmonx-0.3.3-optflags.patch
# PATCH-FIX-UPSTREAM webmonx-0.3.3-gcc47.patch lazy.kent@opensuse.org -- fix compilation with GCC 4.7
Patch2: webmonx-0.3.3-gcc47.patch
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtGui)
BuildRequires: pkgconfig(QtNetwork)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
WebMonX monitors websites for updates and changes - it saves you time
and always keeps you up-to-date by periodically checking these pages at
set intervals.
%prep
%setup -q
%patch0
%patch1
%patch2
%build
export OPTFLAGS="%{optflags}"
qmake \
PREFIX=%{_prefix}
QMAKE_CFLAGS+="%{optflags}" \
QMAKE_CXXFLAGS+="%{optflags}" \
QMAKE_STRIP=""
make %{?_smp_mflags}
%install
make INSTALL_ROOT=%{buildroot} install
%fdupes -s %{buildroot}%{_datadir}
%suse_update_desktop_file %{name} Monitor
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc CHANGELOG LICENSE README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%{_datadir}/pixmaps/%{name}.xpm
%changelog