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
b7e00ea
%define	gecko_version		1.9.1.2
0479093
0479093
Name:		blam
ef77131
Version:	1.8.5
b7e00ea
Release:	14%{?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
93bd0c4
ef77131
#Patch0:		%{name}-fix-PrintJob-ambiguous-reference.patch
ef77131
#Patch1:		%{name}-fedora-people-in-default-collection.patch
ef77131
#Patch2:		%{name}-fix-THEME_DIR-path.patch
ef77131
#Patch3:		%{name}-CVE-2005-4790.patch
a8e690a
Patch4:		%{name}-xulrunner.patch
ef77131
Patch5:         %{name}-xulrunner-configure.patch
ddbf762
Patch6:		blam-1.8.5-gnome-print-sharp.patch
a8e690a
 
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
ef77131
BuildRequires:	gecko-devel-unstable = %{gecko_version}
a8e690a
BuildRequires:	gecko-sharp2-devel >= 0.12-6
5948238
BuildRequires:	gettext
0479093
BuildRequires:	gnome-sharp-devel
ddbf762
BuildRequires:  gnome-desktop-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)
ef77131
BuildRequires:  intltool
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
ef77131
#patch0 -p0 -b .fix-PrintJob-ambiguous-reference-compile-error
ef77131
#patch1 -p0 -b .add-fedora-people-feed-to-default-collection.xml
ef77131
#patch2 -p0 -b .fix-THEME_DIR-path
ef77131
#patch3 -p1 -b .CVE-2005-4790
a8e690a
%patch4 -p1 -b .xl
ddbf762
%patch6 -p1 -b .gnomeprintsharp
ef77131
%patch5 -p1 -b .xlc
0479093
0479093
%build
0479093
export CFLAGS="%{optflags} -debug"
ef77131
%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/*
ef77131
%{_datadir}/icons/hicolor/*/*/*.png
ef77131
%{_datadir}/icons/hicolor/*/*/*.svg
0479093
%{_mandir}/man?/%{name}.1*
0479093
0479093
%changelog
b7e00ea
* Tue Aug 04 2009 Jan Horak <jhorak@redhat.com> - 1.8.5-14
b7e00ea
- Rebuild against newer gecko
b7e00ea
6a28f64
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-13
6a28f64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6a28f64
8c867ff
* Sun Jul 19 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.8.5-12
8c867ff
- Rebuild against newer gecko
8c867ff
7df5e6c
* Mon Apr 27 2009 Christopher Aillon <caillon@redhat.com> - 1.8.5-10
7df5e6c
- Rebuild against newer gecko
7df5e6c
9fb9cc8
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.5-6
9fb9cc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9fb9cc8
9bbb569
* Thu Dec 25 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.8.5-5
9bbb569
- Rebuild against new gecko and mono
9bbb569
9bbb569
* Wed Nov 12 2008 Christopher Aillon <caillon@redhat.com> - 1.8.5-4
9bbb569
- Rebuild against newer gecko
9bbb569
ddbf762
* Mon Oct 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.8.5-3
ddbf762
- rebuild against new gnome-sharp
ddbf762
a9fb3f3
* Wed Sep 24 2008 Christopher Aillon <caillon@redhat.com> - 1.8.5-2
a9fb3f3
- Rebuild against newer gecko
a9fb3f3
4c3ec34
* Mon Jul 21 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 1.8.5-1
4c3ec34
- Update to upstream (1.8.5), fixes FTBS (#434382)
a9fb3f3
- Set gecko version to new xulrunner: 1.9.0.2
ef77131
- BR: gecko-devel-unstable
ef77131
- Drop a number of patches which no longer apply
ef77131
- Add new icons to file list.
ef77131
32ff216
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.8.3-14
32ff216
- Autorebuild for GCC 4.3
32ff216
a8e690a
* Tue Nov 27 2007 Martin Stransky <stransky@redhat.com> - 1.8.3-13
a8e690a
- rebuild agains XUL Runner (gecko-libs 1.9)
a8e690a
d812c45
* Tue Nov 27 2007 Christopher Aillon <caillon@redhat.com> - 1.8.3-12
d812c45
- Rebuild against newer gecko
d812c45
93bd0c4
* Thu Nov 22 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-11
93bd0c4
- Fix CVE-2005-4790 (bug 252294).
93bd0c4
3e71b6e
* Tue Nov 06 2007 Peter Gordon <peter@thecodergeek.com> - 1.8.3-10
3e71b6e
- Rebuild for new Gecko (Firefox 2.0.0.9).
3e71b6e
- Bump Release to 10 to maintain upgrade path from F-8. 
3e71b6e
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