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

Name: wuja
Version: 0.0.8
Release: 23%{?dist}
Summary: Gnome desktop applet for integration with Google Calendar

License: GPLv2+
URL: http://dangerouslyinc.com/wuja
Source0: http://dangerouslyinc.com/files/wuja/wuja-%{version}.tar.gz

BuildArch: noarch
BuildRequires: python2-devel

Requires: python2-vobject >= 0.4.4
Requires: python2-dateutil >= 1.1
Requires: gnome-python2-libegg >= 2.14.3
Requires: gnome-python2-gconf >= 2.18.1
Requires: python2-notify >= 0.1.0

Requires(pre): GConf2
Requires(post): GConf2
Requires(preun): GConf2

%description
wuja is a Gnome application for integration with Google Calendar.
%prep
%setup -q -n wuja-%{version}


%build
%py2_build


%install
rm -rf $RPM_BUILD_ROOT
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%py2_install
rm -f $RPM_BUILD_ROOT%{python_sitelib}/*egg-info/requires.txt


%pre
if [ "$1" -gt 1 ]; then
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    gconftool-2 --makefile-uninstall-rule \
        %{_sysconfdir}/gconf/schemas/wuja.schema >/dev/null || :
fi


%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule \
    %{_sysconfdir}/gconf/schemas/wuja.schema > /dev/null || :


%preun
if [ "$1" -eq 0 ]; then
    export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    gconftool-2 --makefile-uninstall-rule \
        %{_sysconfdir}/gconf/schemas/wuja.schema > /dev/null || :
fi



%files
%doc AUTHORS
%doc LICENSE
%doc README
%{_sysconfdir}/gconf/schemas/wuja.schema
%{_bindir}/wuja
%dir %{python_sitelib}/wuja
%{python2_sitelib}/wuja/*
%{python2_sitelib}/wuja*.egg-info


%changelog
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.0.8-21
- Update Python 2 dependency declarations to new packaging standards
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-17
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages

* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.0.8-8
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.8-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

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

* Sat Sep  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.0.8-4
- fix license tag

* Fri Apr 04 2008 Devan Goodwin <dgoodwin@dangerouslyinc.com> 0.0.8-3
- Minor fix for missing egg info file.

* Sat Jun 02 2007 Devan Goodwin <dgoodwin@dangerouslyinc.com> 0.0.8-1
- Releasing 0.0.8.

* Sun Apr 29 2007 Devan Goodwin <dgoodwin@dangerouslyinc.com> 0.0.7-2
- Updating spec file as per Fedora review suggestions.

* Thu Apr 26 2007 Devan Goodwin <dgoodwin@dangerouslyinc.com> 0.0.7-1
- Updated to use _elementtree module in Python 2.5 if available.

* Mon Feb 22 2007 Devan Goodwin <dgoodwin@dangerouslyinc.com> 0.0.6-1
- Renamed back to just wuja, not really a Gnome applet.

* Mon Feb 05 2007 Devan Goodwin <dgoodwin@dangerouslyinc.com> 0.0.6-1
- Disabled threading for temporary bugfix release.

* Mon Feb 05 2007 Devan Goodwin <dgoodwin@dangerouslyinc.com> 0.0.5-3
- Updates to .spec file.

* Sun Jan 21 2007 Devan Goodwin <dgoodwin@dangerouslyinc.com> 0.0.5-2
- Renamed to gnome-applet-wuja.

* Wed Jan 17 2007 Devan Goodwin <dgoodwin@dangerouslyinc.com> 0.0.5-1
- Initial packaging.