Blame blam.spec

5948238
## XXX: Hopefully Mono, Blam and multilib will play nicely soon...
5948238
%define	_libdir			%{_prefix}/lib
5948238
%define	dbus_sharp_min_version	0.60
5e05b7f
%define	gecko_version		1.8.1.6
0479093
0479093
Name:		blam
0479093
Version:	1.8.3
16a9430
Release:	8%{?dist}
0479093
Summary:	An RSS/RDF feed reader
0479093
0479093
Group:		Applications/Internet
9372162
License:	GPLv2+
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)
2810633
## Various Mono dependencies are not available for ppc64; see bug 241850.
2810633
ExcludeArch:	ppc64
0479093
5948238
## gecko-libs is not strictly required, as gecko-sharp2 should pull it in.
5948238
## We hardcode a dependency for it anyway so that we fail if not building or
5948238
## being installed against the version we are expecting to.
5948238
BuildRequires:	dbus-sharp-devel >= %{dbus_sharp_min_version}
5948238
BuildRequires:	desktop-file-utils
5948238
BuildRequires:	gecko-devel = %{gecko_version}
5948238
BuildRequires:	gecko-sharp2-devel
5948238
BuildRequires:	gettext
0479093
BuildRequires:	gnome-sharp-devel
0479093
BuildRequires:	gtk-sharp2-devel
5948238
BuildRequires:	gtk-sharp2-gapi
0479093
BuildRequires:	libgnomeui-devel
5948238
BuildRequires:	mono-devel
46928bf
BuildRequires:	perl(XML::Parser)
0479093
19dae67
Requires:	dbus-sharp >= %{dbus_sharp_min_version}	
0479093
Requires:	gecko-sharp2
5948238
Requires:	gecko-libs = %{gecko_version}
9372162
Requires:	gnome-sharp
16a9430
Requires:	mono-web
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
16a9430
* Sat Sep 08 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-8
16a9430
- Add mono-web runtime dependency; fixes bugs 282331 (Blam does not open
16a9430
  links with commas correctly) and 277561 (Blam does nothing useful).
16a9430
9372162
* Fri Aug 17 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-7
9372162
- Add gnome-sharp runtime dependency; fixes bug 253200.
9372162
- Update License tag in accordance with new guidelines.
9372162
5e05b7f
* Sat Aug 11 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-6
5e05b7f
- Rebuild for newer Gecko libraries (Firefox 2.0.0.6)
5e05b7f
5948238
* Wed Jul 18 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-5
5948238
- Rebuild for newer Gecko libraries (Firefox 2.0.0.5)
5948238
- Depend on the gecko-libs and gecko-devel virtuals, instead of querying RPM
5948238
  at build-time (Thanks to Chris Aillon for the fix.)
5948238
- Alphabetize dependencies, and other minor aesthetic-only spec changes.
5948238
e1fa466
* Wed May 30 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-4
5948238
- Rebuild for newer Gecko libraries (Firefox 2.0.0.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