#debug info would be empty due to no binarys
%define debug_package %{nil}
Name: bless
Version: 0.6.0
Release: 1%{?dist}.1
Summary: High quality, full featured hex editor
Group: Applications/Editors
License: GPLv2+
URL: http://home.gna.org/bless/
Source0: http://download.gna.org/%{name}/%{name}-%{version}.tar.gz
Patch1: bless-0.6.0-buildfix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExclusiveArch: %ix86 x86_64 ppc ia64 armv4l sparc alpha
BuildRequires: mono-devel
BuildRequires: gtk-sharp2-devel
BuildRequires: desktop-file-utils
BuildRequires: scrollkeeper
Requires: mono-core
Requires: gtk-sharp2
%description
Bless is a binary (hex) editor, a program that
enables you to edit files as sequences of bytes.
%package doc
Summary: Bless user manual
Group: Documentation
Requires(post): scrollkeeper
Requires(postun): scrollkeeper
%description doc
This package contains the documentation for the
bless hex editor.
%prep
%setup -q
%patch1 -p1 -b .buildfix
%build
%configure --without-scrollkeeper
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{docdir}/%{name}/bless.spec
rm -f $RPM_BUILD_ROOT%{docdir}/%{name}/INSTALL
desktop-file-install --vendor="fedora" --delete-original \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
${RPM_BUILD_ROOT}%{_datadir}/applications/bless.desktop
%clean
rm -rf $RPM_BUILD_ROOT
%post doc
scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
%postun doc
scrollkeeper-update -q || :
%files
%defattr(-,root,root,-)
%{_bindir}/bless
%{_libdir}/bless/
%{_datadir}/bless/
%{_datadir}/pixmaps/bless*
%{_datadir}/applications/fedora-bless.desktop
%files doc
%defattr(-,root,root,-)
%{_docdir}/bless/
%{_datadir}/omf/bless/
%changelog
* Mon Nov 17 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
- Rebuild against newer gtk-sharp2 (bug 468055)
* Fri Aug 22 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.6.0-1
- Update to 0.6.0
* Sat Apr 05 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.5.2-5
- Fix build with mono-1.9+ RH #440761
* Fri Jan 04 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.5.2-5
- Add post and postun requires
* Fri Jan 04 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.5.2-4
- Add ExclusiveArch
* Thu Jan 03 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.5.2-3
- Don't make it a noarch package
* Thu Jan 03 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.5.2-2
- Fix scrollkeeper scriptlet
* Wed Jan 02 2008 Adel Gadllah <adel.gadllah@gmail.com> 0.5.2-1
- Initial build