8e79386
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
8e79386
8e79386
Name:           urlwatch
8e79386
Version:        1.7
5b824ca
Release:        3%{?dist}
8e79386
Summary:        A tool for monitoring webpages for updates
8e79386
8e79386
Group:          Applications/Internet
8e79386
License:        BSD
8e79386
URL:            http://thpinfo.com/2008/urlwatch/
8e79386
Source0:        http://thpinfo.com/2008/%{name}/%{name}-%{version}.tar.gz
8e79386
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8e79386
BuildArch:      noarch
8e79386
8e79386
BuildRequires:  python
8e79386
BuildRequires:  python-setuptools-devel
8e79386
8e79386
%description
8e79386
This script is intended to help you watch URLs and get notified (via
8e79386
email or in your terminal) of any changes. The change notification
8e79386
will include the URL that has changed and a unified diff of what has
8e79386
changed.
8e79386
8e79386
The script supports the use of a filtering hook function to strip
8e79386
trivially-varying elements of a webpage.
8e79386
8e79386
Basic features
8e79386
8e79386
* Simple configuration (text file, one URL per line)
8e79386
* Easily hackable (clean Python implementation)
8e79386
* Can run as a cronjob and mail changes to you
8e79386
* Always outputs only plaintext - no HTML mails :)
8e79386
* Supports removing noise (always-changing website parts)
8e79386
* Example hooks to filter content in Python
8e79386
8e79386
8e79386
%prep
8e79386
%setup -q
8e79386
chmod 0755 lib/%{name}/*txt.py
8e79386
8e79386
%build
8e79386
python ./setup.py build
8e79386
8e79386
8e79386
%install
8e79386
rm -rf %{buildroot}
8e79386
python ./setup.py install -O1 --skip-build --root=%{buildroot}
8e79386
#Fix exec permisson for rpmlint
8e79386
chmod 0755 %{buildroot}%{python_sitelib}/%{name}/*txt.py
8e79386
8e79386
8e79386
%clean
8e79386
rm -rf %{buildroot}
8e79386
8e79386
8e79386
%files
8e79386
%defattr(-,root,root,-)
8e79386
%doc ChangeLog COPYING README
8e79386
%{_mandir}/man*/*.gz
8e79386
%{_bindir}/%{name}
8e79386
%{_datadir}/%{name}/examples/
8e79386
%{python_sitelib}/%{name}/
8e79386
%{python_sitelib}/%{name}*.egg-info
8e79386
8e79386
8e79386
%changelog
5b824ca
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-3
5b824ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5b824ca
8e79386
* Sun Jan 18 2008 Fabian Affolter <fabian@bernewireless.net> - 1.7-2
8e79386
- Change license from MIT to BSD
8e79386
8e79386
* Sun Jan 18 2008 Fabian Affolter <fabian@bernewireless.net> - 1.7-1
8e79386
- Initial package for Fedora