File gmanedit.spec of Package gmanedit
#
# spec file for package gmanedit
#
# Copyright (c) 2013 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: gmanedit
Version: 0.4.2
Release: 0
License: GPL-2.0+
Summary: GTK+ Manpages Editor
Url: http://gmanedit.sourceforge.net/
Group: Productivity/Text/Editors
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: gmanedit-0.4.2-link_with_zlib.patch
Patch1: gmanedit-0.4.2-typo_in_menu.patch
Patch2: gmanedit-0.4.2-fix_wizard_buffer_overflow.patch
Patch3: gmanedit-0.4.2-spanish_translation.patch
Patch4: gmanedit-0.4.2-desktop_utf8.patch
Patch5: gmanedit-0.4.2-file_save_dialog.patch
Patch6: gmanedit-0.4.2-gtk_deprecated.patch
BuildRequires: ImageMagick
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: pkgconfig(gtk+-2.0)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Linux man pages editor for X written on GTK. It's like most common HTML
editors but more easy. You still need to know the manpages format which
you can learn from 'man(7)'.
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%build
%configure
make %{?_smp_mflags}
%install
%make_install
# Install icons of various sizes.
install -Dm 644 pixmaps/%{name}_icon.png \
%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
for size in 128x128 96x96 64x64 32x32 22x22 16x16 ; do
install -dm 0755 \
%{buildroot}%{_datadir}/icons/hicolor/${size}/apps
convert -resize ${size} pixmaps/%{name}.png \
%{buildroot}%{_datadir}/icons/hicolor/${size}/apps/%{name}.png
done
%fdupes -s %{buildroot}%{_datadir}/
%find_lang %{name}
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%{_datadir}/pixmaps/*.png
%doc %{_mandir}/man?/*
%files lang -f %{name}.lang
%changelog