a84cd90
Name:		xmbdfed
a84cd90
Summary: 	Bitmap Font Editor
a84cd90
Version:	4.7
842ce9f
Release:	7%{?dist}
a84cd90
License:	MIT
a84cd90
Group:		Applications/System
a84cd90
Source0:	http://crl.nmsu.edu/~mleisher/%{name}-%{version}.tar.bz2
a84cd90
Source1:	http://crl.nmsu.edu/~mleisher/%{name}.png
a84cd90
Source2:	xmbdfed.desktop
a84cd90
Patch0:		http://crl.nmsu.edu/~mleisher/%{name}-4.7-patch1
a84cd90
Patch1:		xmbdfed-4.7-linux.patch
a84cd90
Patch2:		xmbdfed-4.7-staticfix.patch
2130a52
Patch3:		xmbdfed-4.7-getline.patch
a84cd90
URL:		http://crl.nmsu.edu/~mleisher/xmbdfed.html
a84cd90
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a84cd90
BuildRequires:	freetype-devel, lesstif-devel, libXpm-devel, libXmu-devel
a84cd90
BuildRequires:	libXext-devel, libX11-devel, libSM-devel, libICE-devel
a84cd90
BuildRequires:	desktop-file-utils
a84cd90
Requires:	xorg-x11-fonts-misc
a84cd90
a84cd90
%description
a84cd90
The XmBDFEditor lets you interactively create new bitmap font files or 
a84cd90
modify existing ones. It allows editing multiple fonts and multiple 
a84cd90
glyphs, it allows cut and paste operations between fonts and glyphs and 
a84cd90
editing font properties. The editor works natively with BDF fonts.
a84cd90
a84cd90
%prep
a84cd90
%setup -q 
a84cd90
%patch0 -p0 -b .patch1
a84cd90
%patch1 -p1 -b .linux
a84cd90
%patch2 -p1 -b .staticfix
842ce9f
%patch3 -p1 -b .getline
a84cd90
a84cd90
%build
a84cd90
make %{?_smp_mflags} CFLAGS="%{optflags}"
a84cd90
a84cd90
%install
a84cd90
rm -rf %{buildroot}
a84cd90
mkdir -p %{buildroot}%{_bindir}
a84cd90
install -p -m0755 xmbdfed %{buildroot}%{_bindir}
a84cd90
mkdir -p %{buildroot}%{_mandir}/man1
a84cd90
install -p -m0644 xmbdfed.man %{buildroot}%{_mandir}/man1
a84cd90
mkdir -p %{buildroot}%{_datadir}/applications
a84cd90
mkdir -p %{buildroot}%{_datadir}/pixmaps
a84cd90
install -p -m0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
a84cd90
desktop-file-install					\
a84cd90
	--dir %{buildroot}%{_datadir}/applications	\
a84cd90
	%{SOURCE2}
a84cd90
a84cd90
%clean
a84cd90
rm -rf %{buildroot}
a84cd90
a84cd90
%files
a84cd90
%defattr(-,root,root,-)
a84cd90
%doc README COPYRIGHTS xmbdfedrc CHANGES
a84cd90
%{_bindir}/xmbdfed
a84cd90
%{_datadir}/pixmaps/xmbdfed.png
a84cd90
%{_datadir}/applications/*.desktop
a84cd90
%{_mandir}/man1/xmbdfed*
a84cd90
a84cd90
%changelog
842ce9f
* Wed Aug  5 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 4.7-7
842ce9f
- actually apply patch3
842ce9f
2130a52
* Wed Aug  5 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 4.7-6
2130a52
- fix function naming conflict of "getline" with stdio.h
2130a52
39a7484
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7-5
39a7484
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
39a7484
3c53fdc
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7-4
3c53fdc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3c53fdc
a84cd90
* Wed Dec 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.7-3
a84cd90
- add -p to install to preserve timestamps
a84cd90
- add BR: desktop-file-utils
a84cd90
a84cd90
* Mon Dec  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.7-2
a84cd90
- correct usage of defattr
a84cd90
- add Requires: xorg-x11-fonts-misc
a84cd90
- fix desktop file
a84cd90
a84cd90
* Thu Nov 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.7-1
a84cd90
- initial Fedora package