|
|
4b06153 |
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
|
69e5e8b |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
4b06153 |
%endif
|
|
|
8e79386 |
|
|
|
8e79386 |
Name: urlwatch
|
|
|
4b06153 |
Version: 1.14
|
|
|
4b06153 |
Release: 1%{?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
|
|
|
b9e3e47 |
Patch0: %{name}_add_xmpp_functionality.patch
|
|
|
8e79386 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
8e79386 |
BuildArch: noarch
|
|
|
8e79386 |
|
|
|
326473b |
BuildRequires: python3-devel
|
|
|
326473b |
BuildRequires: python3-setuptools
|
|
|
f299a34 |
BuildRequires: python3-tools
|
|
|
69e5e8b |
|
|
|
b9e3e47 |
Requires: python-xmpp
|
|
|
b9e3e47 |
|
|
|
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
|
|
|
b9e3e47 |
%patch0 -p0 -b .xmmp
|
|
|
cbcabae |
# Convert sources to Python 3 as mentioned in the README
|
|
|
b4c5b40 |
2to3-3.2 -w "urlwatch lib/urlwatch/*.py examples/hooks.py.example setup.py"
|
|
|
69e5e8b |
|
|
|
8e79386 |
%build
|
|
|
b9e3e47 |
%{__python} setup.py build
|
|
|
8e79386 |
|
|
|
8e79386 |
|
|
|
8e79386 |
%install
|
|
|
8e79386 |
rm -rf %{buildroot}
|
|
|
b9e3e47 |
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
|
|
|
cbcabae |
# Fix exec permission for rpmlint
|
|
|
8e79386 |
chmod 0755 %{buildroot}%{python_sitelib}/%{name}/*txt.py
|
|
|
b9e3e47 |
chmod a+x %{buildroot}%{python_sitelib}/%{name}/handler.py
|
|
|
8e79386 |
|
|
|
8e79386 |
|
|
|
8e79386 |
%clean
|
|
|
8e79386 |
rm -rf %{buildroot}
|
|
|
8e79386 |
|
|
|
8e79386 |
|
|
|
8e79386 |
%files
|
|
|
8e79386 |
%defattr(-,root,root,-)
|
|
|
8e79386 |
%doc ChangeLog COPYING README
|
|
Fabian Affolter |
44f0335 |
%{_mandir}/man*/*.*
|
|
|
8e79386 |
%{_bindir}/%{name}
|
|
|
8e79386 |
%{_datadir}/%{name}/examples/
|
|
|
8e79386 |
%{python_sitelib}/%{name}/
|
|
|
8e79386 |
%{python_sitelib}/%{name}*.egg-info
|
|
|
8e79386 |
|
|
|
8e79386 |
|
|
|
8e79386 |
%changelog
|
|
|
4b06153 |
* Thu Nov 17 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.14-1
|
|
|
4b06153 |
- Updated to new upstream version 1.14
|
|
|
4b06153 |
|
|
|
4b06153 |
* Fri Aug 26 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.13-1
|
|
|
4b06153 |
- Updated to new upstream version 1.13
|
|
|
4b06153 |
|
|
|
4b06153 |
* Fri Aug 12 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.12-2
|
|
Fabian Affolter |
1be4f60 |
- Rebuild (python-xmpp)
|
|
Fabian Affolter |
1be4f60 |
|
|
|
4b06153 |
* Sun Mar 27 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.12-1
|
|
Fabian Affolter |
312e5d1 |
- Updated to new upstream version 1.12
|
|
Fabian Affolter |
312e5d1 |
|
|
|
8375f01 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-3
|
|
|
8375f01 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
8375f01 |
|
|
|
4b06153 |
* Wed Nov 03 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.11-2
|
|
Fabian Affolter |
44f0335 |
- Removed compression of man page
|
|
Fabian Affolter |
44f0335 |
|
|
|
4b06153 |
* Sat Aug 07 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.11-1
|
|
Fabian Affolter |
a8a355b |
- Updated to new upstream version 1.11
|
|
Fabian Affolter |
a8a355b |
|
|
|
84115a1 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.10-2
|
|
|
84115a1 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
84115a1 |
|
|
|
4b06153 |
* Mon May 10 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.10-1
|
|
|
64beb8b |
- Fix #590638
|
|
|
64beb8b |
- Updated to new upstream version 1.10
|
|
|
64beb8b |
|
|
|
4b06153 |
* Sat Oct 10 2009 Fabian Affolter <mail@fabian-affolter.ch> - 1.9-1
|
|
|
b9e3e47 |
- Added patch for xmpp functionality
|
|
|
9ac8c78 |
- Updated to new upstream version 1.9
|
|
|
9ac8c78 |
|
|
|
4b06153 |
* Thu Sep 17 2009 Fabian Affolter <mail@fabian-affolter.ch> - 1.8-1
|
|
|
69e5e8b |
- Minior spec file changes
|
|
|
69e5e8b |
- Updated to new upstream version 1.8
|
|
|
69e5e8b |
|
|
|
59171e9 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-4
|
|
|
59171e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
59171e9 |
|
|
|
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 |
|
|
|
4b06153 |
* Sun Jan 18 2008 Fabian Affolter <mail@fabian-affolter.ch> - 1.7-2
|
|
|
8e79386 |
- Change license from MIT to BSD
|
|
|
8e79386 |
|
|
|
4b06153 |
* Sun Jan 18 2008 Fabian Affolter <mail@fabian-affolter.ch> - 1.7-1
|
|
|
8e79386 |
- Initial package for Fedora
|