File ucm.spec of Package ucm
#
# spec file for package ucm (Version 0.3)
#
# 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: ucm
BuildRequires: XFree86-devel
%if "%(xft-config --prefix)" == "/usr"
%define appdefdir /usr/share/X11
%define xmandir /usr/share/man
%define xbindir /usr/bin
%else
%define appdefdir /usr/X11R6/lib/X11
%define xmandir /usr/X11R6/man
%define xbindir /usr/X11R6/bin
%endif
Summary: Unicode Font Viewer
Version: 0.3
Release: 454
Group: System/X11/Utilities
AutoReqProv: on
Requires: gnu-unifont
License: BSD 3-Clause; X11/MIT
Url: http://www.pps.jussieu.fr/~jch
Source: http://www.pps.jussieu.fr/~jch/software/files/ucm-0.3.tar.bz2
Patch0: ucm-0.3.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Ucm is a small xfs-like widget specifically designed for Unicode fonts.
As opposed to xfs, ucm allows you to select an arbitrary character
which can then be pasted into another application or identify an
arbitrary character by pasting it into ucm.
Authors:
--------
Juliusz Chroboczek <jch@xfree86.org>
%prep
%setup -q
%patch0 -p 1
head -n 20 ucm.c > License
%build
export CFLAGS="$RPM_OPT_FLAGS"
xmkmf
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
make install.man DESTDIR=$RPM_BUILD_ROOT
%clean
%files
%defattr(-,root,root)
%doc README License
%{xbindir}/*
%{xmandir}/man1/*
%{appdefdir}/app-defaults/*
%changelog
* Wed Jan 23 2008 mfabian@suse.de
- add “Requires: gnu-unifont”.
- clean up specfile and fix rpmlint warnings.
* Fri Aug 04 2006 mfabian@suse.de
- adapt for Xorg X11R7 (paths changed).
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Sun Aug 18 2002 mfabian@suse.de
- update to 0.3
- make the Gnu Unifont the default font
- add License to file list
- remove obsolete XA_UTF8_STRING patch
* Mon Mar 12 2001 ke@suse.de
- Spec file: Add xf86 to neededforbuild.
* Tue Dec 19 2000 ke@suse.de
- XA_UTF8_STRING is already defined; thanks to Stefan Dirsch for
providing a patch [#4699].
* Mon Nov 20 2000 ke@suse.de
- Initial package: version 0.1.