diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cadac14 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: urlwatch +# $Id$ +NAME := urlwatch +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/import.log b/import.log new file mode 100644 index 0000000..9ae9c1b --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +urlwatch-1_7-2_fc9:F-10:urlwatch-1.7-2.fc9.src.rpm:1232409249 diff --git a/sources b/sources new file mode 100644 index 0000000..37e706b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +29b3a00caad5f45c905ec621bec26687 urlwatch-1.7.tar.gz diff --git a/urlwatch.spec b/urlwatch.spec new file mode 100644 index 0000000..fc459b8 --- /dev/null +++ b/urlwatch.spec @@ -0,0 +1,71 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: urlwatch +Version: 1.7 +Release: 2%{?dist} +Summary: A tool for monitoring webpages for updates + +Group: Applications/Internet +License: BSD +URL: http://thpinfo.com/2008/urlwatch/ +Source0: http://thpinfo.com/2008/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: python +BuildRequires: python-setuptools-devel + +%description +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 +changed. + +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 + + +%prep +%setup -q +chmod 0755 lib/%{name}/*txt.py + +%build +python ./setup.py build + + +%install +rm -rf %{buildroot} +python ./setup.py install -O1 --skip-build --root=%{buildroot} +#Fix exec permisson for rpmlint +chmod 0755 %{buildroot}%{python_sitelib}/%{name}/*txt.py + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc ChangeLog COPYING README +%{_mandir}/man*/*.gz +%{_bindir}/%{name} +%{_datadir}/%{name}/examples/ +%{python_sitelib}/%{name}/ +%{python_sitelib}/%{name}*.egg-info + + +%changelog +* 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