Blame blam.spec

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