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

Name:		pondus
Version:	0.8.0
Release:	17%{?dist}
Summary:	A personal weight management program
License:	MIT
URL:		http://www.ephys.de/software/pondus/
Source0:	http://bitbucket.org/eike/pondus/downloads/pondus-%{version}.tar.gz

BuildRequires:	desktop-file-utils
BuildRequires:	python2-devel
BuildRequires:	python-setuptools
BuildArch:	noarch

# Required for plotting, not picked up automatically
Requires:	python-matplotlib

%description
Pondus is a personal weight management program written in Python and Gtk+2
released under the GPL. It aims to be simple to use, lightweight and fast.
The data can be plotted to get a quick overview of the history of your weight.
A simple weight planner allows to define "target weights" and this plan can be
compared with the actual measurements in a plot.

%prep
%setup -q
# Remove Version entry from desktop file
sed -i "/Version/d" data/pondus.desktop

%build
%{__python} -c 'import setuptools; execfile("setup.py")' build

%install
rm -rf %{buildroot}
%{__python} -c 'import setuptools; execfile("setup.py")' install -O1 --skip-build --root %{buildroot}
# Find locales
%{find_lang} %{name}
# Remove installed doc that will go in %%doc
rm -rf %{buildroot}%{_docdir}/%{name}
# Verify desktop file install
desktop-file-install --dir=%{buildroot}%{_datadir}/applications --vendor="" --remove-category=GTK data/pondus.desktop

%files -f %{name}.lang
%doc AUTHORS CONTRIBUTING LICENSE NEWS PKG-INFO README TODO
%{_bindir}/pondus
%{_mandir}/man1/pondus.1.*
%{_datadir}/applications/pondus.desktop
%{_datadir}/pixmaps/pondus.xpm
%{_datadir}/icons/hicolor/*/apps/pondus.*
%{_datadir}/pondus/
%{python2_sitelib}/pondus/
%{python2_sitelib}/pondus-*.egg-info

%changelog
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 27 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 0.8.0-16
- Fix FTBFS on rawhide.

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.8.0-14
- 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.8.0-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

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

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

* Mon Sep 26 2016 Dominik Mierzejewski <rpm@greysector.net> - 0.8.0-10
- rebuilt for matplotlib-2.0.0

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

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

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

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

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

* Mon Jun 13 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.8.0-1
- Update to 0.8.0.

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sat Jan 22 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7.3-1
- Update to 0.7.3.

* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.7.2-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Mon Feb 15 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7.2-1
- Update to 0.7.2.

* Tue Jan 26 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7.1-1
- Update to 0.7.1.

* Sun Dec 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7.0-1
- Update to 0.7.0.
- License has changed to MIT.

* Sat Nov 07 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.6.0-1
- Update to 0.6.0.

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Sat Jul 11 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.5.3-2
- Fix EPEL build.

* Sat Jul 11 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.5.3-2
- Added Requires: python-matplotlib for plotting capability.

* Fri Jul 10 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.5.3-1
- First release.