Blame blam.spec

3e1c9a4
## Hopefully Mono and multilib will play nicely soon, but until then...
3e1c9a4
%define	_libdir %{_prefix}/lib
3e1c9a4
3e1c9a4
Name:		blam
3e1c9a4
Version:	1.8.3
3e1c9a4
Release:	1%{?dist}
3e1c9a4
Summary:	An RSS/RDF feed reader
3e1c9a4
3e1c9a4
Group:		Applications/Internet
3e1c9a4
License:	GPL
3e1c9a4
URL:		http://www.cmartin.tk/blam.html
3e1c9a4
3e1c9a4
Source0:	http://www.cmartin.tk/blam/%{name}-%{version}.tar.bz2
3e1c9a4
Patch0:		%{name}-fix-PrintJob-ambiguous-reference.patch
3e1c9a4
Patch1:		%{name}-fix-default-theme-base-href.patch
3e1c9a4
3e1c9a4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3e1c9a4
3e1c9a4
BuildRequires:	mono-devel
3e1c9a4
BuildRequires:	gnome-sharp-devel
3e1c9a4
BuildRequires:	gtk-sharp2-gapi
3e1c9a4
BuildRequires:	gtk-sharp2-devel
3e1c9a4
BuildRequires:	gecko-sharp2-devel
3e1c9a4
BuildRequires:	gecko-devel
3e1c9a4
BuildRequires:	libgnomeui-devel
3e1c9a4
BuildRequires:	desktop-file-utils
3e1c9a4
BuildRequires:	gettext
3e1c9a4
3e1c9a4
Requires:	gecko-sharp2
3e1c9a4
Requires:       firefox = %(rpm -q firefox-devel --qf '%%{version}' 2>/dev/null)
3e1c9a4
3e1c9a4
Requires(pre):	GConf2
3e1c9a4
3e1c9a4
Requires(post):	GConf2
3e1c9a4
Requires(post):	desktop-file-utils
3e1c9a4
3e1c9a4
Requires(preun):	GConf2
3e1c9a4
3e1c9a4
Requires(postun):	desktop-file-utils
3e1c9a4
3e1c9a4
%description
3e1c9a4
Blam is a tool that helps you keep track of the growing 
3e1c9a4
number of news feeds distributed as RSS. Blam lets you 
3e1c9a4
subscribe to any number of feeds and provides an easy to 
3e1c9a4
use and clean interface to stay up to date
3e1c9a4
3e1c9a4
3e1c9a4
%prep
3e1c9a4
%setup -q
3e1c9a4
%patch0 -p0 -b .fix-PrintJob-ambiguous-reference-compile-error
3e1c9a4
%patch1 -p0 -b .fix-default-theme-base-href
3e1c9a4
3e1c9a4
3e1c9a4
%build
3e1c9a4
export CFLAGS="%{optflags} -debug"
3e1c9a4
%configure --disable-static 
3e1c9a4
make %{?_smp_mflags}
3e1c9a4
3e1c9a4
3e1c9a4
%install
3e1c9a4
rm -rf %{buildroot}
3e1c9a4
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
3e1c9a4
make install DESTDIR=%{buildroot}
3e1c9a4
%find_lang %{name}
3e1c9a4
desktop-file-install --vendor fedora	\
3e1c9a4
	--delete-original	\
3e1c9a4
        --dir %{buildroot}%{_datadir}/applications	\
3e1c9a4
        %{buildroot}%{_datadir}/applications/%{name}.desktop
3e1c9a4
3e1c9a4
3e1c9a4
%clean
3e1c9a4
rm -rf %{buildroot}
3e1c9a4
3e1c9a4
3e1c9a4
%pre
3e1c9a4
if [ "$1" -gt 1 ]; then
3e1c9a4
	export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
3e1c9a4
	gconftool-2 --makefile-uninstall-rule \
3e1c9a4
		%{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null ||:
3e1c9a4
fi
3e1c9a4
3e1c9a4
3e1c9a4
%post
3e1c9a4
update-desktop-database &> /dev/null ||:
3e1c9a4
export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
3e1c9a4
gconftool-2 --makefile-install-rule	\
3e1c9a4
	%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null ||:
3e1c9a4
3e1c9a4
3e1c9a4
%preun
3e1c9a4
if [ "$1" -eq 0 ]; then
3e1c9a4
	export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
3e1c9a4
	gconftool-2 --makefile-uninstall-rule	\
3e1c9a4
		%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null ||:
3e1c9a4
fi
3e1c9a4
3e1c9a4
3e1c9a4
%postun
3e1c9a4
update-desktop-database &> /dev/null ||:
3e1c9a4
3e1c9a4
3e1c9a4
%files -f %{name}.lang
3e1c9a4
%defattr(-,root,root,-)
3e1c9a4
%doc AUTHORS COPYING ChangeLog NEWS README
3e1c9a4
%{_sysconfdir}/gconf/schemas/%{name}.schemas
3e1c9a4
%{_bindir}/*
3e1c9a4
%exclude %{_libdir}/blam/*.la 
3e1c9a4
%{_libdir}/blam
3e1c9a4
%{_datadir}/blam
3e1c9a4
%{_datadir}/applications/*
3e1c9a4
%{_datadir}/pixmaps/*
3e1c9a4
%{_mandir}/man?/%{name}.1*
3e1c9a4
3e1c9a4
%changelog
3e1c9a4
* Wed Mar 07 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-1
3e1c9a4
- Unorphan, since Carlos Martín Nieto has picked upstream development.
3e1c9a4
- Update to new upstream release (1.8.3)
3e1c9a4
- Lots of spec file cleanups:
3e1c9a4
  (1) Use macros instead of $RPM_* variables
3e1c9a4
  (2) Whitespace/formatting adjustments
3e1c9a4
  (3) Don't mark installed GConf schemas as %%config 
3e1c9a4
- Drop unnecessary patches:
3e1c9a4
  - gtk-sharp2-gecko-sharp2.patch
3e1c9a4
  - aclocal.m4-ngettext.patch
3e1c9a4
- Add a backported patch (from 1.8.4) to fix compilation error:
3e1c9a4
  + fix-PrintJob-ambiguous-reference.patch
3e1c9a4
- Add a backported patch (from 1.8.4) to fix the default theme base location:
3e1c9a4
  + fix-default-theme-base-href.patch
3e1c9a4
3e1c9a4
* Fri Jul 14 2006 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 1.8.2-6
3e1c9a4
- Add missing gecko-sharp2 runtime dependency, fixes #196706
3e1c9a4
3e1c9a4
* Sun May 28 2006 John Mahowald  <jpmahowald@gmail.com> - 1.8.2-5
3e1c9a4
- fix gettext autoconf macro for x86_64
3e1c9a4
3e1c9a4
* Sun May 21 2006 John Mahowald <jpmahowald@gmail.com> - 1.8.2-4
3e1c9a4
- readd .so
3e1c9a4
- reenable find_lang
3e1c9a4
- mark gconf schemea as config
3e1c9a4
3e1c9a4
* Thu May 18 2006 John Mahowald <jpmahowald@gmail.com> - 1.8.2-2
3e1c9a4
- gtk-sharp2 gecko-sharp2
3e1c9a4
- no .a, .la, .so
3e1c9a4
3e1c9a4
* Tue Mar 23 2006 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 1.8.2-1
3e1c9a4
- Initial build