File gurlchecker.spec of Package gurlchecker
#
# spec file for package gurlchecker
#
# Copyright (c) 2016 SUSE LINUX 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: gurlchecker
Version: 0.13.1
Release: 0
Summary: Checking Utility for Web Pages
License: GPL-2.0+
Group: Productivity/Networking/Web/Utilities
Url: http://gurlchecker.labs.libre-entreprise.org/
Source: gurlchecker-%{version}.tar.bz2
Patch0: gurlchecker-gnutls-3.4.patch
Patch1: gurlchecker-0.13.1-fix-missing-devhelp.patch
BuildRequires: clamav
BuildRequires: fdupes
BuildRequires: gnet-devel
%if 0%{?suse_version} > 1210
BuildRequires: libgnutls-devel
%else
BuildRequires: gnutls-devel
%endif
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: json-glib-devel
BuildRequires: libcroco-devel
BuildRequires: libglade2-devel
BuildRequires: libgnomeui-devel
BuildRequires: libtidy-devel
BuildRequires: libxml2-devel
BuildRequires: sqlite3-devel
BuildRequires: update-desktop-files
Requires: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
gurlchecker is a GNOME tool that checks links on a single Web page or a
whole Web site in order to determine bad, malformed, or too slow links.
%package doc
Summary: Checking Utility for Web Pages
Group: Productivity/Networking/Web/Utilities
Requires: gurlchecker = %{version}
%description doc
gurlchecker is a GNOME tool that checks links on a single Web page or a
whole Web site in order to determine bad, malformed, or too slow links.
%lang_package
%prep
%setup -q
%patch0
%patch1 -p1
%build
%configure
make
%install
%makeinstall
%find_lang %{name}
%suse_update_desktop_file %name WebDevelopment
# We install this file with %doc
rm %{buildroot}%{_datadir}/doc/gurlchecker/COPYING
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README COPYING AUTHORS TODO ChangeLog NEWS THANKS
%doc %{_mandir}/man1/*.1*
%{_bindir}/gurlchecker
%{_datadir}/gurlchecker/
%{_datadir}/applications/gurlchecker.desktop
%{_datadir}/pixmaps/gurlchecker.png
%files doc
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/*
%files lang -f %{name}.lang
%changelog