File gbdfed.spec of Package gbdfed

#
# spec file for package gbdfed (Version 1.4)
#
# 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:           gbdfed
BuildRequires:  freetype2-devel gtk2-devel update-desktop-files
AutoReqProv:    on
Provides:       xmbdfed
Obsoletes:      xmbdfed
Version:        1.4
Release:        1
License:        BSD 3-Clause
Group:          Productivity/Graphics/Bitmap Editors
Summary:        A Gtk-based BDF Font Editor, Descendant of XmBDFed
Url:            http://crl.nmsu.edu/~mleisher/gbdfed.html
Source:         %{name}-%{version}.tar.bz2
Source1:        gbdfed.desktop
Source2:        COPYING
Source3:        gbdfed16x16.png
Source4:        gbdfed32x32.png
Source5:        gbdfed48x48.png
Patch:          %{name}-1.3_array-index.patch
Patch1:         %{name}-1.3_deprec-gtkfileselection.patch
Patch2:         %{name}-1.3_64bit.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A Gtk-based bitmap font (BDF) editor, descendant of XmBDFed. It can
import PK/GF fonts, HBF fonts (Han Bitmap Font),Linux console fonts
(PSF, CP, FNT), Sun console fonts (vfont), Windows FON/FNT fonts,
TrueType fonts and collections, and X server fonts. It exports PSF and
HEX fonts and allows you to edit two- and four-bits-per-pixel grayscale
fonts.



Authors:
--------
    Mark Leisher <mleisher@crl.nmsu.edu>

%prep
%setup -q
install -m 644 %{SOURCE2} .
%patch
%patch1
%patch2

%build
CFLAGS="$RPM_OPT_FLAGS" \
./configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir}
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
# desktop menu
%suse_update_desktop_file -i %name Graphics RasterGraphics
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,32x32,48x48}/apps
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/gbdfed.png
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/gbdfed.png
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/gbdfed.png
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
ln -sf ../icons/hicolor/48x48/apps/gbdfed.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/gbdfed.png
# compat stuff with obsoleted xmbdfed
ln -sf gbdfed $RPM_BUILD_ROOT%{_bindir}/xmbdfed
echo ".so man1/gbdfed.1" >$RPM_BUILD_ROOT%{_mandir}/man1/xmbdfed.1

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%{_datadir}/applications/gbdfed.desktop
%{_bindir}/*
%{_datadir}/icons/*
%{_datadir}/pixmaps/gbdfed.png
%doc NEWS README COPYING
%doc %{_mandir}/man1/*

%changelog
* Tue Jun 24 2008 pgajdos@suse.cz
- updated to 1.4:
  * Changed last instance of FileSelection to FileChooser.
  * Updated to work with GTK 2.12 (GtkTooltip).
  * Fixed a problem when X11 is not available and bdfgrab.c won't compile as a
  result.
  * Remove the _XMBDFED_INFO font property when fonts are loaded or grabbed
  from the X server.
  * Fixed a problem with renaming glyphs using the Adobe Glyph Name List.
  * Fixed a warning about checking for a point in a NULL region.
  * Fixed a crash that happened because some file filter objects were being
  dereferenced when the import dialog was popped up multiple times.
  * Added up to 10 recent fonts to the File menu.
  * Changed the keyboard activate key for Exit from 'e' to 'x' and the
  activate key for Export from 'x' to 'p'.
  * Fixed a problem with fonts grabbed from the X server always being loaded
  into the FontGrid that popped up the dialog.
  * Fixed a couple problems with integer sign promotion affecting import of
  OTF fonts.
* Fri Jul 20 2007 pgajdos@suse.cz
- fixed some 64bit problems by upstream
  * 64bit.patch
- compiling with new gtk2
    * deprec-gtkfileselection.patch
* Mon Jun 25 2007 pgajdos@suse.cz
- fixed new gcc error: array index out of range
  * array-index.patch
* Thu Apr 26 2007 pgajdos@suse.cz
- adding Encoding entry to desktop file to avoid
  lint error
* Mon Apr 16 2007 pgajdos@suse.cz
- updated to version 1.3:
  * 64-bit fixes
  * fixed installation in DESTDIR
* Tue Apr 10 2007 pgajdos@suse.cz
- package created, version 1.2
openSUSE Build Service is sponsored by