08f8709
Name: bitmap
08f8709
Version: 1.0.2
08f8709
Release: 3%{?dist}
08f8709
Summary: Bitmap editor and converter utilities for the X Window System
08f8709
Group: User Interface/X
08f8709
Url: http://www.x.org
08f8709
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
08f8709
Source1: bitmap.desktop
08f8709
Source2: bitmap.png
08f8709
License: MIT
08f8709
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
08f8709
08f8709
# the bitmap-devel corresponds only with bitmap files. They are needed
08f8709
# by the base package, so this Provides is added
08f8709
Provides: %{name}-devel = %{version}-%{release}
08f8709
# other xorg apps are called like that
08f8709
Provides: xorg-x11-%{name} = %{version}-%{release}
08f8709
Provides: xorg-x11-%{name}-devel = %{version}-%{release}
08f8709
08f8709
# libXaw-devel requires libXmu-devel 
08f8709
# libXmu-devel requires libX11-devel, libXt-devel, xorg-x11-util-macros
08f8709
BuildRequires: xbitmaps-devel libXaw-devel libXext-devel
08f8709
BuildRequires: desktop-file-utils pkgconfig
08f8709
# also needed at runtime
08f8709
Requires: xbitmaps
08f8709
08f8709
%description
08f8709
Bitmap provides a bitmap editor and misc converter utilities for the X
08f8709
Window System.
08f8709
08f8709
The package also includes files defining bitmaps associated with the 
08f8709
Bitmap x11 editor.
08f8709
08f8709
%prep
08f8709
%setup -q
08f8709
08f8709
08f8709
%build
08f8709
%configure --disable-dependency-tracking
08f8709
make %{?_smp_mflags}
08f8709
08f8709
08f8709
%install
08f8709
rm -rf %{buildroot}
08f8709
make install DESTDIR=%{buildroot}
08f8709
08f8709
desktop-file-install --vendor fedora                            \
08f8709
        --dir %{buildroot}%{_datadir}/applications         \
08f8709
        --add-category X-Fedora                                 \
08f8709
        %{SOURCE1}
08f8709
08f8709
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
08f8709
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
08f8709
08f8709
08f8709
%clean
08f8709
rm -rf %{buildroot}
08f8709
08f8709
08f8709
%post
08f8709
touch --no-create %{_datadir}/icons/hicolor || :
08f8709
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
08f8709
08f8709
%postun
08f8709
touch --no-create %{_datadir}/icons/hicolor || :
08f8709
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
08f8709
08f8709
08f8709
%files
08f8709
%defattr(-,root,root,-)
08f8709
# COPYING is a stub!
08f8709
%doc ChangeLog
08f8709
%{_bindir}/atobm
08f8709
%{_bindir}/bmtoa
08f8709
%{_bindir}/bitmap
08f8709
%{_includedir}/X11/bitmaps/*
08f8709
%{_datadir}/X11/app-defaults/Bitmap*
08f8709
%{_datadir}/applications/*bitmap*
08f8709
%{_datadir}/icons/hicolor/32x32/apps/bitmap.png
08f8709
%{_mandir}/man1/*.1*
08f8709
08f8709
%changelog
08f8709
* Tue Oct 10 2006 Patrice Dumas <pertusus@free.fr> 1.0.2-3
08f8709
- use consistently %%{buildroot}
08f8709
- provides xorg-x11-%%{name}-devel
08f8709
08f8709
* Mon Oct  9 2006 Patrice Dumas <pertusus@free.fr> 1.0.2-2
08f8709
- buildrequires pkgconfig, libXext-devel
08f8709
08f8709
* Sun Sep  3 2006 Patrice Dumas <pertusus@free.fr> 1.0.2-1
08f8709
- Packaged for fedora extras