08f870
Name: bitmap
c9d1e1
Version: 1.0.3
3663d2
Release: 10%{?dist}
08f870
Summary: Bitmap editor and converter utilities for the X Window System
08f870
Group: User Interface/X
08f870
Url: http://www.x.org
08f870
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
08f870
Source1: bitmap.desktop
08f870
Source2: bitmap.png
08f870
License: MIT
08f870
paragn c4fc4a
# the bitmap-devel virtual provide is needed as it installs header files.
paragn c4fc4a
# this is currently used by lesstif package.
paragn c4fc4a
Provides: %{name}-devel = %{version}-%{release}
paragn c4fc4a
08f870
# libXaw-devel requires libXmu-devel 
08f870
# libXmu-devel requires libX11-devel, libXt-devel, xorg-x11-util-macros
paragn 9ab471
BuildRequires: xorg-x11-xbitmaps libXaw-devel libXext-devel
08f870
BuildRequires: desktop-file-utils pkgconfig
08f870
# also needed at runtime
paragn 9ab471
Requires: xorg-x11-xbitmaps
08f870
08f870
%description
08f870
Bitmap provides a bitmap editor and misc converter utilities for the X
08f870
Window System.
08f870
08f870
The package also includes files defining bitmaps associated with the 
08f870
Bitmap x11 editor.
08f870
08f870
%prep
08f870
%setup -q
08f870
08f870
08f870
%build
08f870
%configure --disable-dependency-tracking
3663d2
make %{?_smp_mflags} AM_LDFLAGS=-lXmu
08f870
08f870
08f870
%install
99f0c1
make install DESTDIR=%{buildroot} INSTALL='install -p'
08f870
08f870
desktop-file-install --vendor fedora                            \
08f870
        --dir %{buildroot}%{_datadir}/applications         \
08f870
        %{SOURCE1}
08f870
08f870
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
99f0c1
install -p -m644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
08f870
08f870
08f870
%post
paragn 9ab471
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
08f870
08f870
%postun
paragn 9ab471
if [ $1 -eq 0 ] ; then
paragn 9ab471
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
paragn 9ab471
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
161f4b
fi
08f870
paragn 9ab471
%posttrans
paragn 9ab471
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
08f870
08f870
%files
08f870
%defattr(-,root,root,-)
08f870
# COPYING is a stub!
08f870
%doc ChangeLog
08f870
%{_bindir}/atobm
08f870
%{_bindir}/bmtoa
08f870
%{_bindir}/bitmap
08f870
%{_includedir}/X11/bitmaps/*
08f870
%{_datadir}/X11/app-defaults/Bitmap*
08f870
%{_datadir}/applications/*bitmap*
08f870
%{_datadir}/icons/hicolor/32x32/apps/bitmap.png
08f870
%{_mandir}/man1/*.1*
08f870
08f870
%changelog
3663d2
* Tue Mar 29 2011 Dan Horák <dan[at]danny.cz> - 1.0.3-10
3663d2
- fix build
3663d2
412c49
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-9
412c49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
412c49
paragn 9ab471
* Mon Sep 27 2010 Parag Nemade <paragn AT fedoraproject.org> - 1.0.3-8
paragn 9ab471
- Make sure this package follows current packaging guidelines.
paragn 9ab471
- Removed old provides.
paragn 9ab471
161f4b
* Tue Dec 15 2009 Stepan Kasal <skasal@redhat.com> - 1.0.3-7
161f4b
- silence scriptlets
161f4b
cfadfc
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-6
cfadfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
cfadfc
318303
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-5
318303
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
318303
df9f82
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.3-4
df9f82
- Autorebuild for GCC 4.3
df9f82
99f0c1
* Mon Dec 17 2007 Patrice Dumas <pertusus@free.fr> 1.0.3-3
99f0c1
- keep timestamps
99f0c1
f586af
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 1.0.3-2
c9d1e1
- update to 1.0.3
c9d1e1
08f870
* Tue Oct 10 2006 Patrice Dumas <pertusus@free.fr> 1.0.2-3
08f870
- use consistently %%{buildroot}
08f870
- provides xorg-x11-%%{name}-devel
08f870
08f870
* Mon Oct  9 2006 Patrice Dumas <pertusus@free.fr> 1.0.2-2
08f870
- buildrequires pkgconfig, libXext-devel
08f870
08f870
* Sun Sep  3 2006 Patrice Dumas <pertusus@free.fr> 1.0.2-1
08f870
- Packaged for fedora extras