Blame blam.spec

2f90a78
## XXX: Hopefully Mono, Blam and multilib will play nicely soon...
2f90a78
%define	_libdir			%{_prefix}/lib
2f90a78
%define	dbus_sharp_min_version	0.60
d3b49b7
## not sure if a base version of webkit is necessary, but leave here
d3b49b7
## in case it is used later
d3b49b7
%define webkitgtk_ver 1.1.19 
3e1c9a4
3e1c9a4
Name:		blam
d3b49b7
Version:	1.8.7
06bd61c
Release:	2%{?dist}
3e1c9a4
Summary:	An RSS/RDF feed reader
3e1c9a4
3e1c9a4
Group:		Applications/Internet
dfad959
License:	GPLv2+
3e1c9a4
URL:		http://www.cmartin.tk/blam.html
3e1c9a4
3e1c9a4
Source0:	http://www.cmartin.tk/blam/%{name}-%{version}.tar.bz2
b790517
721d226
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b35d829
## Various Mono dependencies are not available for ppc64; see bug 241850.
2f8bf08
ExcludeArch:	ppc64 sparc64
3e1c9a4
2f90a78
## gecko-libs is not strictly required, as gecko-sharp2 should pull it in.
2f90a78
## We hardcode a dependency for it anyway so that we fail if not building or
2f90a78
## being installed against the version we are expecting to.
2f90a78
BuildRequires:	dbus-sharp-devel >= %{dbus_sharp_min_version}
2f90a78
BuildRequires:	desktop-file-utils
d3b49b7
BuildRequires:  webkitgtk-devel
d3b49b7
BuildRequires:  webkit-sharp-devel
06bd61c
BuildRequires:  ndesk-dbus-glib-devel
2f90a78
BuildRequires:	gettext
3e1c9a4
BuildRequires:	gnome-sharp-devel
0f1a234
BuildRequires:  gnome-desktop-sharp-devel
3e1c9a4
BuildRequires:	gtk-sharp2-devel
2f90a78
BuildRequires:	gtk-sharp2-gapi
3e1c9a4
BuildRequires:	libgnomeui-devel
2f90a78
BuildRequires:	mono-devel
a63761c
BuildRequires:	perl(XML::Parser)
d04e218
BuildRequires:  intltool
3e1c9a4
06bd61c
Requires: dbus-sharp >= %{dbus_sharp_min_version}	
06bd61c
Requires: gnome-sharp
06bd61c
Requires: mono-web
06bd61c
Requires: webkit-sharp
3e1c9a4
06bd61c
Requires(pre):    GConf2
06bd61c
Requires(post):   GConf2
06bd61c
Requires(post):   desktop-file-utils
06bd61c
Requires(preun):  GConf2
06bd61c
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
%prep
3e1c9a4
%setup -q
3e1c9a4
3e1c9a4
%build
3e1c9a4
export CFLAGS="%{optflags} -debug"
d04e218
%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
%{_libdir}/blam
3e1c9a4
%{_datadir}/blam
3e1c9a4
%{_datadir}/applications/*
d04e218
%{_datadir}/icons/hicolor/*/*/*.png
d04e218
%{_datadir}/icons/hicolor/*/*/*.svg
3e1c9a4
%{_mandir}/man?/%{name}.1*
3e1c9a4
3e1c9a4
%changelog
06bd61c
* Thu Mar 25 2010 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.8.7-2
06bd61c
- Add missing Requires: webkit-sharp and BR: ndesk-dbus-glib-devel
06bd61c
d3b49b7
* Wed Mar 24 2010 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.8.7-1
d3b49b7
- Update from ancient 1.8.5 to upstream 1.8.7
d3b49b7
- Uses webkit rather than gecko by default
d3b49b7
- Drop unused patches (seem to be applied upstream) and cleanup spec
d3b49b7
- Hopefully fixes #575583
d3b49b7
d08e18d
* Tue Mar 23 2010 Jan Horak <jhorak@redhat.com> - 1.8.5-23
d08e18d
- Rebuild against newer gecko
d08e18d
1596a39
* Thu Nov 26 2009 Jan Horak <jhorak@redhat.com> - 1.8.5-22
1596a39
- Rebuild against newer gecko
1596a39
3c36925
* Wed Nov 25 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.8.5-21
3c36925
- Update to new gecko-libs
3c36925
bfb2f4a
* Thu Nov 05 2009 Jan Horak <jhorak@redhat.com> - 1.8.5-20
bfb2f4a
- Rebuild against newer gecko
bfb2f4a
fb1b83d
* Tue Oct 27 2009 Jan Horak <jhorak@redhat.com> - 1.8.5-19
fb1b83d
- Rebuild against newer gecko
fb1b83d
2f8bf08
* Mon Oct 26 2009 Dennis Gilmore <dennis@ausil.us> - 1.8.5-18
2f8bf08
- ExcludeArch sparc64
2f8bf08
f9cd6d4
* Fri Sep 11 2009 Jan Horak <jhorak@redhat.com> - 1.8.5-17
f9cd6d4
- Rebuild against newer gecko
f9cd6d4
0894a59
* Thu Aug  6 2009 Jan Horak <jhorak@redhat.com> - 1.8.5-16
0894a59
- Rebuild
0894a59
e4f633d
* Thu Aug 06 2009 Jan Horak <jhorak@redhat.com> - 1.8.5-15
e4f633d
- Rebuild against newer gecko
e4f633d
2094eda
* Tue Aug 04 2009 Jan Horak <jhorak@redhat.com> - 1.8.5-14
2094eda
- Rebuild against newer gecko
2094eda
9ec27ed
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-13
9ec27ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9ec27ed
6d096f8
* Sun Jul 19 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.8.5-12
6d096f8
- Rebuild against newer gecko
6d096f8
350855d
* Mon Apr 27 2009 Christopher Aillon <caillon@redhat.com> - 1.8.5-10
350855d
- Rebuild against newer gecko
350855d
d3b3472
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-6
d3b3472
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d3b3472
3773f66
* Thu Dec 25 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.8.5-5
3773f66
- Rebuild against new gecko and mono
3773f66
3773f66
* Wed Nov 12 2008 Christopher Aillon <caillon@redhat.com> - 1.8.5-4
3773f66
- Rebuild against newer gecko
3773f66
0f1a234
* Mon Oct 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.8.5-3
0f1a234
- rebuild against new gnome-sharp
0f1a234
9883c27
* Wed Sep 24 2008 Christopher Aillon <caillon@redhat.com> - 1.8.5-2
9883c27
- Rebuild against newer gecko
9883c27
6654d6b
* Mon Jul 21 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.8.5-1
6654d6b
- Update to upstream (1.8.5), fixes FTBS (#434382)
9883c27
- Set gecko version to new xulrunner: 1.9.0.2
d04e218
- BR: gecko-devel-unstable
d04e218
- Drop a number of patches which no longer apply
d04e218
- Add new icons to file list.
d04e218
4cb9b5c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.8.3-14
4cb9b5c
- Autorebuild for GCC 4.3
4cb9b5c
0ca49a7
* Tue Nov 27 2007 Martin Stransky <stransky@redhat.com> - 1.8.3-13
0ca49a7
- rebuild agains XUL Runner (gecko-libs 1.9)
0ca49a7
f91b5fd
* Tue Nov 27 2007 Christopher Aillon <caillon@redhat.com> - 1.8.3-12
f91b5fd
- Rebuild against newer gecko
f91b5fd
b790517
* Thu Nov 22 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-11
b790517
- Fix CVE-2005-4790 (bug 252294).
b790517
90e216d
* Tue Nov 06 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-10
90e216d
- Rebuild for new Gecko (Firefox 2.0.0.9).
90e216d
- Bump Release to 10 to maintain upgrade path from F-8. 
90e216d
efbc8f4
* Sat Sep 08 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-8
efbc8f4
- Add mono-web runtime dependency; fixes bugs 282331 (Blam does not open
efbc8f4
  links with commas correctly) and 277561 (Blam does nothing useful).
efbc8f4
dfad959
* Fri Aug 17 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-7
dfad959
- Add gnome-sharp runtime dependency; fixes bug 253200.
dfad959
- Update License tag in accordance with new guidelines.
dfad959
5954610
* Sat Aug 11 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-6
5954610
- Rebuild for newer Gecko libraries (Firefox 2.0.0.6)
5954610
2f90a78
* Wed Jul 18 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-5
2f90a78
- Rebuild for newer Gecko libraries (Firefox 2.0.0.5)
2f90a78
- Depend on the gecko-libs and gecko-devel virtuals, instead of querying RPM
2f90a78
  at build-time (Thanks to Chris Aillon for the fix.)
2f90a78
- Alphabetize dependencies, and other minor aesthetic-only spec changes.
2f90a78
2e426b3
* Wed May 30 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-4
2f90a78
- Rebuild for newer Gecko libraries (Firefox 2.0.0.4)
2e426b3
- Add a patch to fix the default theme directory search path to prevent crashes
2e426b3
  at startup (fixes bug 241465):
2e426b3
  + fix-THEME_DIR-path.patch
2e426b3
3c8604a
* Fri Apr 06 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-3
3c8604a
- Add hard dependency on dbus-sharp, since it's not automatically picked up
3c8604a
  by RPM at build-time from the dbus-sharp-devel BuildRequires. (Thanks to
3c8604a
  David Nielsen for the bug report via Jabber.)
3c8604a
- Add minimum version for dbus-sharp and dbus-sharp-devel dependencies.
3c8604a
db09cdc
* Wed Apr 04 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-2
db09cdc
- (Note to self: Don't fix it if it's not broken.) Drop unnecessary default
db09cdc
  theme fix:
db09cdc
  - fix-default-theme-base-href.patch
db09cdc
- Add patch to put the Fedora People feed into the default collection.xml:
db09cdc
  + fedora-people-in-default-collection.patch
db09cdc
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)
32f9e62
- Add dbus-sharp-devel to the BuildRequires to properly allow D-Bus support.
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