Blame blam.spec

0479093
## Hopefully Mono and multilib will play nicely soon, but until then...
0479093
%define	_libdir %{_prefix}/lib
e1fa466
%define	dbus_sharp_min_version 0.60
0479093
0479093
Name:		blam
0479093
Version:	1.8.3
e1fa466
Release:	4%{?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
86394ab
Patch1:		%{name}-fedora-people-in-default-collection.patch
e1fa466
Patch2:		%{name}-fix-THEME_DIR-path.patch
0479093
d34e963
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)
19dae67
BuildRequires:	dbus-sharp-devel >= %{dbus_sharp_min_version}
0479093
19dae67
Requires:	dbus-sharp >= %{dbus_sharp_min_version}	
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
86394ab
%patch1 -p0 -b .add-fedora-people-feed-to-default-collection.xml
e1fa466
%patch2 -p0 -b .fix-THEME_DIR-path
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
e1fa466
* Wed May 30 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-4
e1fa466
- Add a patch to fix the default theme directory search path to prevent crashes
e1fa466
  at startup (fixes bug 241465):
e1fa466
  + fix-THEME_DIR-path.patch
e1fa466
19dae67
* Fri Apr 06 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-3
19dae67
- Add hard dependency on dbus-sharp, since it's not automatically picked up
19dae67
  by RPM at build-time from the dbus-sharp-devel BuildRequires. (Thanks to
19dae67
  David Nielsen for the bug report via Jabber.)
19dae67
- Add minimum version for dbus-sharp and dbus-sharp-devel dependencies.
19dae67
86394ab
* Wed Apr 04 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-2
86394ab
- (Note to self: Don't fix it if it's not broken.) Drop unnecessary default
86394ab
  theme fix:
86394ab
  - fix-default-theme-base-href.patch
86394ab
- Add patch to put the Fedora People feed into the default collection.xml:
86394ab
  + fedora-people-in-default-collection.patch
86394ab
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