Blob Blame History Raw
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name: hulahop
Version: 0.6.0
Release: 3%{?dist}
Summary: A pygtk widget for embedding mozilla

Group: System Environment/Libraries
License: LGPL
URL: http://www.sugarlabs.org
Source0: http://download.sugarlabs.org/sources/sucrose/glucose/hulahop/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: xulrunner-devel-unstable
BuildRequires: xulrunner-python-devel
BuildRequires: glib2-devel
BuildRequires: gtk2-devel
BuildRequires: pygobject2-devel
BuildRequires: pygtk2-devel

Requires: pygobject2
Requires: pygtk2
Requires: xulrunner-python

%description
The hulalop library contains a widget for embedding mozilla.
It's based on pyxpcom and give access to the whole mozilla
xpcom API through python.

%prep
%setup -q

cat >> data/prefs.js << EOF
pref("general.useragent.vendor", "OLPC");
pref("general.useragent.vendorSub", "%{version}-%{release}");
pref("general.useragent.vendorComment", "XO");
EOF

%build
%configure --disable-static
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc COPYING
%{_datadir}/hulahop
%{_libdir}/hulahop
%{python_sitearch}/*

%changelog
* Sun Nov 29 2009 Bernie Innocenti <bernie@codewiz.org> - 0.6.0-3
- Rebuild against latest xulrunner

* Sun Sep 27 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.0-2
- Fix source url

* Sun Sep 27 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.0-1
- New upstream 0.6.0 release

* Sat Sep 19 2009 Tomeu Vizoso <tomeu@sugarlabs.org> - 0.5.2-1
- New upstream release

* Wed Aug 26 2009 Tomeu Vizoso <tomeu@sugarlabs.org> - 0.5.1-1
- New upstream release

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Sat Jul 18 2009 Tomeu Vizoso <tomeu@sugarlabs.org> - 0.5.0-1
- New upstream release

* Mon Apr 27 2009 Christopher Aillon <caillon@redhat.com> - 0.4.9-4
- Rebuild against newer gecko

* Mon Mar 30 2009 Simon Schampijer <simon@schampijer.de> - 0.4.9-3
- Rebuild

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Mon Feb 23 2009 Simon Schampijer <simon@schampijer.de> - 0.4.9-1
- hulahop_get_view_for_window implicitly converted to pointer (Dann Frazier) #20 

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.4.7-2
- Rebuild for Python 2.6

* Thu Nov 03 2008 Simon Schampijer <simon@laptop.org> - 0.4.7-1
- Provide the ground to make downloads and uploads work for 
multiple instances (marco)

* Thu Sep 11 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.6-4
- Use python_sitearch, hulahop have a C compiled library

* Thu Sep 11 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.6-3
- Build require xulrunner-python-devel

* Thu Sep 11 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.6-2
- Depend on xulrunner-python

* Thu Sep 11 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.6-1
- Fixes for components registration

* Sat Sep  6 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.5-2
- Switch vendor to OLPC

* Sat Sep  6 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.5-1
- Update to 0.4.5
- Setup vendor

* Thu Aug 28 2008 Simon Schampijer <simon@laptop.org> - 0.4.4-1
- Update the profile dependent on version changes 5428

* Tue Jul 29 2008 Simon Schampijer <simon@laptop.org> - 0.4.3-1
- Setup a nsXULAppInfo service and register 7530
- Fix sites that check for firefox version 7645

* Thu Jul 24 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.2-1
- Update to 0.4.2
- Fix requires

* Mon Jun 23 2008 Dennis Gilmore <dennis@ausil.us> - 0.4.1-3
- change Requires from python-xulrunner to xulrunner-pyxpcom

* Sat Jun 21 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.1-2
- Add dependency on python-xulrunner

* Fri Jun 20 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.1-1
- Update to 0.4.1

* Fri Jun 20 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.0-4
- Require python-xulrunner-devel

* Fri Jan 11 2008 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.0-2
- Rebuild

* Tue Dec 11 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.4.0-1
- Fix #5269

* Thu Nov 22 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.3-2
- Rebuild

* Mon Oct 29 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.3-1
- Update to 0.3

* Mon Sep 17 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2-0.6.20070917git61d001479c
- New snapshot

* Wed Aug 22 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2-0.5.20070822git57693bd828
- New snapshot

* Sat Jul 21 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2-0.4.20070721git5931be8dc1
- New snapshot

* Wed Jul 11 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2-0.3.20070711git40da3581a5
- New snapshot

* Tue Jun 26 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2-0.2.20070626gitgit597af0bd31
- New snapshot

* Wed Jun 20 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2-0.1.20070620gitf91a1b5b94
- Update to 0.2
- Fix rpmlint complaints

* Thu Jun 14 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.1-5.git172e5eae5e.1
- New snapshot

* Mon Jun  4 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.1-4.git79836c7a0f.1
- New snapshot

* Thu May 31 2007 Marco Pesenti Gritti <mpg@redhat.com> 0.1-3.git6ff99c9cbc.1
- Fix crash when the profile is not initialized

* Wed May 30 2007 Marco Pesenti Gritti <mpg@redhat.com> 0.1-2.git8ab08300d9.1
- Add a status property

* Mon May 28 2007 Marco Pesenti Gritti <mpg@redhat.com> 0.1-1.cvs20070519.2
- Initial build.