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

Name:           urlwatch
Version:        1.8
Release:        1%{?dist}
Summary:        A tool for monitoring webpages for updates

Group:          Applications/Internet
License:        BSD
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  python-devel
BuildRequires:  python-setuptools

This script is intended to help you watch URLs and get notified (via
email or in your terminal) of any changes. The change notification
will include the URL that has changed and a unified diff of what has

The script supports the use of a filtering hook function to strip
trivially-varying elements of a webpage.

Basic features

* Simple configuration (text file, one URL per line)
* Easily hackable (clean Python implementation)
* Can run as a cronjob and mail changes to you
* Always outputs only plaintext - no HTML mails :)
* Supports removing noise (always-changing website parts)
* Example hooks to filter content in Python

%setup -q
chmod 0755 lib/%{name}/*

python build

rm -rf %{buildroot}
python install -O1 --skip-build --root=%{buildroot}
#Fix exec permisson for rpmlint
chmod 0755 %{buildroot}%{python_sitelib}/%{name}/*

rm -rf %{buildroot}


* Thu Sep 17 2009 Fabian Affolter <> - 1.8-1
- Minior spec file changes
- Updated to new upstream version 1.8

* Sun Jul 26 2009 Fedora Release Engineering <> - 1.7-4
- Rebuilt for

* Wed Feb 25 2009 Fedora Release Engineering <> - 1.7-3
- Rebuilt for

* Sun Jan 18 2008 Fabian Affolter <> - 1.7-2
- Change license from MIT to BSD

* Sun Jan 18 2008 Fabian Affolter <> - 1.7-1
- Initial package for Fedora