Browse Source

NEW calibre: updated/added calibre's dependencies

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1741 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 years ago
parent
commit
2d9e017fa8

+ 222 - 0
D/Django/Django-vl.spec

@@ -0,0 +1,222 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
+
+Name:           Django
+Version:        1.2.1
+Release:        1%{?_dist_release}
+Summary:        A high-level Python Web framework
+
+Group:          Development/Languages
+License:        BSD
+URL:            http://www.djangoproject.com/
+Source0:        http://media.djangoproject.com/releases/%{version}/Django-%{version}.tar.gz
+# stub simplejson module that imports the system version
+Source1:        simplejson-init.py
+Patch0:         Django-hash-compat-13310.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch:      noarch
+# Note: No longer required in development version > 0.95
+# BuildRequires:  python-setuptools
+BuildRequires:  python-devel
+BuildRequires:  python-sphinx
+
+Requires:       python-simplejson
+
+Provides:       python-Django
+
+%description
+Django is a high-level Python Web framework that encourages rapid
+development and a clean, pragmatic design. It focuses on automating as
+much as possible and adhering to the DRY (Don't Repeat Yourself)
+principle.
+#'
+
+%prep
+%setup -q -n %{name}-%{version}
+%patch0 -p3
+# remove bundled simplejson
+cd django/utils/simplejson/
+%__rm -rf *
+# and put the replacement stub in place
+cp -p %{SOURCE1} __init__.py
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+# Handling locale files
+# This is adapted from the %%find_lang macro, which cannot be directly
+# used since Django locale files are not located in %%{_datadir}
+#
+# The rest of the packaging guideline still apply -- do not list
+# locale files by hand!
+(cd $RPM_BUILD_ROOT && find . -name 'django*.mo') | %{__sed} -e 's|^.||' | %{__sed} -e \
+  's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
+  >> %{name}.lang
+
+# install man pages
+%__mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
+%__cp -p docs/man/* $RPM_BUILD_ROOT%{_mandir}/man1/
+
+# Fix items in %{_bindir}
+%__mv $RPM_BUILD_ROOT%{_bindir}/django-admin.py $RPM_BUILD_ROOT%{_bindir}/django-admin
+
+# remove .po files
+find $RPM_BUILD_ROOT -name "*.po" | xargs %__rm -f
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS LICENSE README
+%{_bindir}/django-admin
+%{_mandir}/man1/*
+%attr(0755,root,root) %{python_sitelib}/django/conf/project_template/manage.py
+%attr(0755,root,root) %{python_sitelib}/django/contrib/admin/media/js/compress.py
+%attr(0755,root,root) %{python_sitelib}/django/bin/profiling/gather_profile_stats.py*
+%attr(0755,root,root) %{python_sitelib}/django/bin/*-messages.py*
+%attr(0755,root,root) %{python_sitelib}/django/bin/daily_cleanup.py*
+%attr(0755,root,root) %{python_sitelib}/django/bin/django-admin.py*
+%{python_sitelib}/django/bin/profiling/*
+%{python_sitelib}/django/bin/__init__.py*
+# Include everything but the locale data ...
+%{python_sitelib}/django/db/
+%{python_sitelib}/django/*.py*
+%{python_sitelib}/django/shortcuts/
+%{python_sitelib}/django/utils/
+%{python_sitelib}/django/dispatch/
+%{python_sitelib}/django/template/
+%{python_sitelib}/django/views/
+%{python_sitelib}/django/contrib/
+%{python_sitelib}/django/forms/
+%{python_sitelib}/django/templatetags/ 
+%{python_sitelib}/django/core/
+%{python_sitelib}/django/http/
+%{python_sitelib}/django/middleware/
+%{python_sitelib}/django/test/
+%{python_sitelib}/django/conf/*.py*
+%{python_sitelib}/django/conf/project_template/
+%{python_sitelib}/django/conf/app_template/
+%{python_sitelib}/django/conf/urls/
+%{python_sitelib}/django/conf/locale/*/*.py*
+%{python_sitelib}/django/conf/locale/*.py*
+
+%{python_sitelib}/*.egg-info
+
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 1.2.1-1
+- initial build based on Fedora development
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.1-6
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Tue Jun  8 2010 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.2.1-5
+- Added http://code.djangoproject.com/changeset/13310?format=diff&new=13310 per BZ#601212
+
+* Thu Jun  3 2010 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.2.1-4
+- Include egg in >= rhel6
+
+* Thu Jun  3 2010 Michel Salim <salimma@fedoraproject.org> - 1.2.1-3
+- Use generated %%{name}.lang instead of including each locale file by hand
+- Temporarily make main package provide -doc on Rawhide, to fix upgrade path
+  until upstream documentation builds with Sphinx 1.0
+
+* Thu May 27 2010 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.2.1-2
+- Allow for building docs in F13 as it's only F14 freaking out
+
+* Tue May 25 2010 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.2.1-1
+- Update for new release.
+- Added lang files per BZ#584866.
+- Changed perms on %%{python_sitelib}/django/contrib/admin/media/js/compress.py
+- Lots of explicit files listed in %%files in order to reduce duplicate file listings
+- Docs are not built on F-13 for now
+
+* Wed Oct 21 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1.1-2
+- Removed po files per BZ#529188.
+
+* Fri Oct  9 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1.1-1
+- Update to fix http://www.djangoproject.com/weblog/2009/oct/09/security/
+- Django-ignore-pyo-bz-495046.patch no longer needed.
+
+* Wed Aug 26 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1-4
+- EL-4 shouldn't get the sphinx docs.
+
+* Wed Aug 26 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1-3
+- ghosting admin py* is now FC9 and under.
+
+* Thu Aug  6 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1-2
+- Applied Daniel Mach's patch from bz#516016.
+
+* Sat Aug  1 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.1-1
+- Update for Django 1.1 release.
+- Moved /usr/bin/django-admin.py to /usr/bin/django-admin
+- sed macro is now being used
+- Patch for bz#495046 applied.
+
+* Wed Jul 29 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.3-6
+- Attempted combined spec for F12/11/10 and EL5
+
+* Wed Jul 29 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.3-4
+- Older builds must ghost django-admin.py[c,o]
+
+* Wed Jul 29 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.3-3
+- Bump for tag issue.
+
+* Wed Jul 29 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.3-2
+- Fix changelog.
+
+* Wed Jul 29 2009 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.3-1
+- Upgrade for http://www.djangoproject.com/weblog/2009/jul/28/security/
+
+* Thu Mar 12 2009 Michel Salim <salimma@fedoraproject.org> - 1.0.2-3
+- Build HTML documentation (bug #484070)
+- No longer excluding *.py? in bindir, F11's Python does not optimizes these
+
+* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sun Dec 14 2008 Michel Salim <salimma@fedoraproject.org> - 1.0.2-1
+- Update to 1.0.2
+
+* Sat Nov  1 2008 Steve 'Ashcrow' Milner <stevem@gnulinux.net> - 1.0.1-0.1.beta1
+- Update to 1.0.1_beta_1
+
+* Sat Sep  6 2008 Michel Salim <salimma@fedoraproject.org> - 1.0-1
+- Update to final 1.0 release
+
+* Tue Sep  2 2008 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.rc1%{?dist}
+- CSRF security update: bz#460966
+
+* Wed Aug 27 2008 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.beta2
+- Update to 1.0 beta2
+
+* Sat Aug 23 2008 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.beta1
+- Update to 1.0 beta1
+
+* Mon May 19 2008 Michel Salim <salimma@fedoraproject.org> - 0.96.2-1
+- XSS security update: CVE-2008-2302 (bz# 442757-60)
+
+* Sat Apr  5 2008 Michel Salim <salimma@fedoraproject.org> - 0.96.1-2
+- Package .egg-info file on Fedora >= 9
+
+* Thu Nov  1 2007 Michel Salim <michel.sylvan@gmail.com> 0.96.1-1
+- i18n security update: CVE-2007-5712, bz#357051
+
+* Sat Mar 24 2007 Michel Salim <michel.salim@gmail.com> - 0.96-1
+- New upstream version
+
+* Sun Jan 21 2007 Michel Salim <michel.salim@gmail.com> - 0.95.1-1
+- Upstream security updates:
+  http://www.djangoproject.com/weblog/2007/jan/21/0951/
+
+* Sun Nov 12 2006 Michel Salim <michel.salim@gmail.com> - 0.95-1
+- Initial package

+ 320 - 0
c/calibre/calibre-vl.spec

@@ -0,0 +1,320 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Name:           calibre
+Version:        0.7.15
+Release:        1%{?dist}
+Summary:        E-book converter and library management
+Group:          Applications/Multimedia
+License:        GPLv3
+URL:            http://calibre-ebook.com/
+
+# SourceURL: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+
+# Upstream packages some unfree fonts which we cannot redistribute.
+# While we're at it, also delete the liberation fonts which we already have.
+#
+# Download the upstream tarball and invoke this script while in the tarball's
+# directory:
+# ./generate-tarball.sh %{version}
+Source0:        %{name}-%{version}-nofonts.tar.xz
+Source1:        generate-tarball.sh
+Patch0:         %{name}-manpages.patch
+Patch1:         %{name}-no-update.patch
+Patch2:         %{name}-0.6.53-mounthelper.patch
+Patch3:		%{name}-0.6.47-python-fix.patch
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildRequires:	python >= 2.6
+BuildRequires:	python-devel >= 2.6
+BuildRequires:	ImageMagick-devel >= 6.5.9
+BuildRequires:	python-setuptools
+BuildRequires:	qt4-devel >= 4.6.0
+BuildRequires:  PyQt4-devel >= 4.7.0
+BuildRequires:	poppler-qt4-devel >= 0.12
+BuildRequires:	podofo-devel
+BuildRequires:	desktop-file-utils
+BuildRequires:	python-mechanize >= 0.1.1
+BuildRequires:	python-lxml >= 2.2.1
+BuildRequires:	python-cssutils >= 0.9.6
+BuildRequires:	python-dateutil >= 1.4.1
+BuildRequires:	python-imaging >= 1.1.6
+BuildRequires:	xdg-utils >= 1.0.2
+BuildRequires:	python-BeautifulSoup >= 3.0.5
+BuildRequires:	xz
+BuildRequires:	unzip
+BuildRequires:	libwmf-devel >= 0.2.8
+BuildRequires:	chmlib-devel >= 0.40
+
+Requires:	PyQt4
+Requires:	pyPdf
+Requires:	python-cherrypy
+Requires:	python-cssutils
+Requires:	ImageMagick
+Requires:	python-odf
+Requires:	python-django-tagging
+Requires:	python-lxml
+Requires:	python-imaging
+Requires:	python-mechanize
+Requires:	python-dateutil
+Requires:	python-genshi
+Requires:	python-BeautifulSoup
+
+## vine
+Requires:	TrueType-liberation
+
+%description
+Calibre is meant to be a complete e-library solution. It includes library
+management, format conversion, news feeds to ebook conversion as well as
+e-book reader sync features.
+
+Calibre is primarily a ebook cataloging program. It manages your ebook
+collection for you. It is designed around the concept of the logical book,
+i.e. a single entry in the database that may correspond to ebooks in several
+formats. It also supports conversion to and from a dozen different ebook
+formats.
+
+Supported input formats are: MOBI, LIT, PRC, EPUB, CHM, ODT, HTML, CBR, CBZ,
+RTF, TXT, PDF and LRS.
+
+%prep
+%setup -q -n %{name}
+
+# # remove redundant / non-free fonts
+# %__rm -rf resources/fonts/*
+
+# don't append calibre1 to the name of the manpages. No need to compress either
+# upstream won't fix: http://bugs.calibre-ebook.com/ticket/3770#comment:7
+%patch0 -p1 -b .manpages
+
+# don't check for new upstream version (that's what packagers do)
+%patch1 -p1 -b .no-update
+
+# Enable mount helper
+%patch2 -p1 -b .mounthelper
+#% patch3 -p1 -b .python-fix
+
+# dos2unix newline conversion
+%{__sed} -i 's/\r//' src/calibre/web/feeds/recipes/*
+
+# remove shebangs
+%{__sed} -i -e '/^#!\//, 1d' src/calibre/*/*/*/*.py
+%{__sed} -i -e '/^#!\//, 1d' src/calibre/*/*/*.py
+%{__sed} -i -e '/^#![ ]*\//, 1d' src/calibre/*/*.py
+%{__sed} -i -e '/^#!\//, 1d' src/calibre/*.py
+%{__sed} -i -e '/^#!\//, 1d' resources/recipes/*
+%{__sed} -i -e '/^#!\//, 1d' resources/default_tweaks.py
+
+%{__chmod} -x src/calibre/*/*/*/*.py
+%{__chmod} -x src/calibre/*/*/*.py
+%{__chmod} -x src/calibre/*/*.py
+%{__chmod} -x src/calibre/*.py
+%{__chmod} -x resources/recipes/*
+
+%build
+OVERRIDE_CFLAGS="%{optflags}" QMAKE=%{_libdir}/qt4/bin/qmake python setup.py build
+
+%install
+%__rm -rf %{buildroot}
+
+%__mkdir -p %{buildroot}%{_datadir}
+
+# create directories for xdg-utils
+%__mkdir_p %{buildroot}%{_datadir}/icons
+%__mkdir_p %{buildroot}%{_datadir}/icons/hicolor
+%__mkdir_p %{buildroot}%{_datadir}/packages
+%__mkdir_p %{buildroot}%{_datadir}/mime
+%__mkdir_p %{buildroot}%{_datadir}/mime/packages
+%__mkdir_p %{buildroot}%{_datadir}/applications
+%__mkdir_p %{buildroot}%{_datadir}/desktop-directories
+
+# create directory for calibre environment module
+# the install script assumes it's there.
+%__mkdir_p %{buildroot}%{python_sitelib}
+
+XDG_DATA_DIRS="%{buildroot}%{_datadir}" \
+XDG_UTILS_INSTALL_MODE="system" \
+LIBPATH="%{_libdir}" \
+python setup.py install --root=%{buildroot}%{_prefix} \
+			--prefix=%{_prefix} \
+			--libdir=%{_libdir} \
+			--staging-libdir=%{buildroot}%{_libdir}
+
+# remove shebang from init_calibre.py here because
+# it just got spawned by the install script
+%{__sed} -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/init_calibre.py
+
+# icons
+%__mkdir_p %{buildroot}%{_datadir}/pixmaps/
+%__cp -p resources/images/library.png \
+	%{buildroot}%{_datadir}/pixmaps/%{name}-gui.png
+%__cp -p resources/images/viewer.svg \
+	%{buildroot}%{_datadir}/pixmaps/calibre-viewer.svg
+
+# every file is empty here
+find %{buildroot}%{_datadir}/mime -maxdepth 1 -type f|xargs %__rm -f 
+
+# packages aren't allowed to register mimetypes like this
+%__rm -f %{buildroot}%{_datadir}/applications/{defaults.list,mimeinfo.cache}
+
+desktop-file-validate \
+    %{buildroot}%{_datadir}/applications/calibre-ebook-viewer.desktop
+desktop-file-validate \
+    %{buildroot}%{_datadir}/applications/calibre-gui.desktop
+desktop-file-validate \
+    %{buildroot}%{_datadir}/applications/calibre-lrfviewer.desktop
+
+
+%__mv %{buildroot}%{_datadir}/mime/packages/calibre-mimetypes \
+    %{buildroot}%{_datadir}/mime/packages/calibre-mimetypes.xml
+
+# mimetype icon for lrf
+%__rm -rf %{buildroot}%{_datadir}/icons/hicolor/128x128
+%__mkdir_p %{buildroot}%{_datadir}/icons/hicolor/scalable
+%__mkdir_p %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes
+%__mkdir_p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
+%__cp -p resources/images/mimetypes/lrf.svg \
+    %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-sony-bbeb.svg
+%__cp -p resources/images/viewer.svg \
+    %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/calibre-viewer.svg
+
+# don't put bash completions in /usr/etc
+%__mv %{buildroot}%{_prefix}%{_sysconfdir} %{buildroot}
+
+# these are provided as separate packages
+%__rm -rf %{buildroot}%{_libdir}/%{name}/{odf,cherrypy,pyPdf,encutils,cssutils}
+%__rm -rf %{buildroot}%{_libdir}/%{name}/cal/utils/genshi
+%__rm -rf %{buildroot}%{_libdir}/%{name}/cal/trac
+
+# link to system fonts after we have deleted (see Source0) the non-free ones
+# http://bugs.calibre-ebook.com/ticket/3832
+%__mkdir_p %{buildroot}%{_datadir}/%{name}/fonts/prs500/
+%__ln_s %{_datadir}/fonts/TrueType-liberation/LiberationSans-Regular.ttf \
+	%{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0003m_.ttf
+%__ln_s %{_datadir}/fonts/TrueType-liberation/LiberationSerif-Regular.ttf \
+	%{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0011m_.ttf
+%__ln_s %{_datadir}/fonts/TrueType-liberation/LiberationMono-Regular.ttf \
+	%{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0419m_.ttf
+
+# http://bugs.calibre-ebook.com/ticket/3770#comment:7
+# man pages
+%__mv %{buildroot}%{_datadir}/%{name}/man %{buildroot}%{_mandir}
+
+# move locales
+%__mv %{buildroot}%{_datadir}/%{name}/localization/locales \
+    %{buildroot}%{_datadir}/locale
+for file in %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/messages.mo; do
+    lang=$(echo $file|%{__sed} 's:.*locale/\(.*\)/LC_MESSAGES.*:\1:')
+    %__mv %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/messages.mo \
+	%{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/%{name}.mo
+done;
+for file in %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/iso639.mo; do
+    lang=$(echo $file|%{__sed} 's:.*locale/\(.*\)/LC_MESSAGES.*:\1:')
+    %__mv %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/iso639.mo \
+	%{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/%{name}_iso639.mo
+done;
+for file in %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/qt.qm; do
+    lang=$(echo $file|%{__sed} 's:.*locale/\(.*\)/LC_MESSAGES.*:\1:')
+    %__mv $file %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/%{name}_$lang.qm
+done;
+
+%find_lang %{name} --with-qt --all-name
+
+# locales should be looked for in the proper place
+%{__sed} -i -e "s:P('localization/locales:('/usr/share/locale:" \
+	-e "s/messages.mo/calibre.mo/" \
+	-e "s/iso639.mo/calibre_iso639.mo/" \
+	%{buildroot}%{_libdir}/%{name}/%{name}/utils/localization.py
+
+%{__rm} -f %{buildroot}%{_bindir}/%{name}-uninstall   
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%post
+update-desktop-database &> /dev/null ||:
+update-mime-database %{_datadir}/mime &> /dev/null || :
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
+    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+%postun
+update-desktop-database &> /dev/null ||:
+update-mime-database %{_datadir}/mime &> /dev/null || :
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
+    %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+%files -f %{name}.lang
+
+%defattr(-,root,root,-)
+%doc COPYRIGHT LICENSE Changelog.yaml
+%{_bindir}/*
+%config(noreplace) %{_sysconfdir}/bash_completion.d/
+%{_libdir}/%{name}
+%{_datadir}/%{name}
+%{_datadir}/pixmaps/*
+%{_datadir}/applications/*
+%{_datadir}/mime/packages/*
+%{_datadir}/icons/hicolor/scalable/mimetypes/*
+%{_datadir}/icons/hicolor/scalable/apps/*
+%{python_sitelib}/init_calibre.py*
+%{_mandir}/man1/*
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.7.15-1
+- initial build based on Fedora development
+
+* Sun Aug 08 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.13-1mdv2010.1
++ Revision: 567781
+- update to 0.7.13
+
+* Fri Aug 06 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.12-1mdv2011.0
++ Revision: 567146
+- update to 0.7.12
+
+* Thu Aug 05 2010 Funda Wang <fwang@mandriva.org> 0.7.10-3mdv2011.0
++ Revision: 566253
+- rebuild for new poppler
+
+* Fri Jul 30 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.10-2mdv2011.0
++ Revision: 563265
+- update manpage and no-update patches (from Fedora)
+- drop SOURCE1 and python-cssutils hack, it's not needed anymore as
+  python-cssutils has been updated to 0.9.7b3
+- build with optflags
+- delete mimeinfo.cache too
+
+  + Juan Luis Baptiste <juancho@mandriva.org>
+    - Updated to 0.7.10, redo diff calibre-no-update.patch.
+
+* Sat Jul 10 2010 Funda Wang <fwang@mandriva.org> 0.6.54-2mdv2011.0
++ Revision: 549995
+- rebuild for new imagemagick
+
+  + Tomas Kindl <supp@mandriva.org>
+    - various minor SPEC fixes and clean-ups
+
+  + Juan Luis Baptiste <juancho@mandriva.org>
+    - Updated to 0.6.54.
+
+* Tue Apr 20 2010 Tomas Kindl <supp@mandriva.org> 0.6.48-1mdv2010.1
++ Revision: 537127
+- update to 0.6.48
+- fix python-odf and python-django-tagging dependency'
+
+* Tue Apr 20 2010 Tomas Kindl <supp@mandriva.org> 0.6.47-3mdv2010.1
++ Revision: 536983
+- fix incorrect odf-py require & bump release
+- fix incorrect odf-py require
+
+* Mon Apr 19 2010 Tomas Kindl <supp@mandriva.org> 0.6.47-2mdv2010.1
++ Revision: 536555
+- enable PoDoFo dependency as we have PoDoFo in MDV now
+
+* Sun Apr 18 2010 Tomas Kindl <supp@mandriva.org> 0.6.47-1mdv2010.1
++ Revision: 536529
+- initial import containing all pertinent fixes to ensure it will build on Mandriva...
+- create calibre
+

+ 103 - 0
o/odfpy/odfpy-vl.spec

@@ -0,0 +1,103 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Name:		odfpy
+Version:	0.9.2
+Release:	1%{?_dist_release}
+Summary:	Python library for manipulating OpenDocument files
+
+Group:		Development/Languages
+License:	GPLv2+
+URL:		http://forge.osor.eu/projects/odfpy/
+# This changes every time, most recent downloads are at http://forge.osor.eu/frs/?group_id=33
+Source0:	http://forge.osor.eu/frs/download.php/805/odfpy-0.9.2.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch:	noarch
+BuildRequires:	python-devel python-setuptools
+
+Provides:	python-odf
+
+%description
+Odfpy aims to be a complete API for OpenDocument in Python. Unlike
+other more convenient APIs, this one is essentially an abstraction
+layer just above the XML format. The main focus has been to prevent
+the programmer from creating invalid documents. It has checks that
+raise an exception if the programmer adds an invalid element, adds an
+attribute unknown to the grammar, forgets to add a required attribute
+or adds text to an element that doesn't allow it.
+ 
+These checks and the API itself were generated from the RelaxNG
+schema, and then hand-edited. Therefore the API is complete and can
+handle all ODF constructions, but could be improved in its
+understanding of data types.
+
+#'
+
+%prep
+%setup -q
+
+
+%build
+CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build
+
+
+%install
+%__rm -rf %{buildroot}
+%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot}
+%__sed -i '/#!\/usr\/bin\/python/d' %{buildroot}%{python_sitelib}/odf/*.py
+
+ 
+%clean
+%__rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%docdir examples
+%docdir contrib
+%{_bindir}/*
+%{_mandir}/man1/*
+%{python_sitelib}/*egg-info
+%{python_sitelib}/odf
+
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.9.2-1
+- initial build based on Fedora development
+
+* Fri Jul 30 2010 Ian Weller <iweller@redhat.com> - 0.9.2-2
+- Fixed previous changelog entry
+
+* Fri Jul 30 2010 Ian Weller <iweller@redhat.com> - 0.9.2-1
+- Update to 0.9.2
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.9-3
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Mon Apr 20 2009 Ian Weller <ianweller@gmail.com> - 0.9-1
+- Update upstream
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.8-2
+- Rebuild for Python 2.6
+
+* Fri Aug 22 2008 Ian Weller <ianweller@gmail.com> 0.8-1
+- Update upstream
+
+* Tue Jul 15 2008 Ian Weller <ianweller@gmail.com> 0.7-2
+- Change macros
+- Remove license file
+
+* Sun Jul 13 2008 Ian Weller <ianweller@gmail.com> 0.7-1
+- Add COPYING file
+- Use setuptools instead
+- sed out shebangs from module files
+- Other minor fixes
+
+* Sun Jul 13 2008 Paul W. Frields <stickster@gmail.com> - 0.7-0.1
+- Initial RPM package

+ 133 - 0
p/podofo/podofo-vl.spec

@@ -0,0 +1,133 @@
+Name:           podofo
+Version:        0.8.1
+Release:        1%{?_dist_release}
+Summary:        Tools and libraries to work with the PDF file format
+
+Group:          Applications/Publishing
+License:        GPLv2+
+URL:            http://podofo.sourceforge.net
+Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Patch0:         %{name}-0.8.1-casts.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildRequires:  cmake
+BuildRequires:  zlib-devel
+BuildRequires:  libjpeg-devel
+BuildRequires:  libtiff-devel
+BuildRequires:  libpng-devel
+BuildRequires:  freetype2-devel
+BuildRequires:  fontconfig-devel
+BuildRequires:  cppunit-devel
+BuildRequires:  lua-devel
+BuildRequires:  doxygen
+
+
+%description
+PoDoFo is a library to work with the PDF file format. The name comes from
+the first letter of PDF (Portable Document Format). A few tools to work
+with PDF files are already included in the PoDoFo package.
+
+The PoDoFo library is a free, portable C++ library which includes classes
+to parse PDF files and modify their contents into memory. The changes can be
+written back to disk easily. The parser can also be used to extract
+information from a PDF file (for example the parser could be used in a PDF
+viewer). Besides parsing PoDoFo includes also very simple classes to create
+your own PDF files. All classes are documented so it is easy to start writing
+your own application using PoDoFo.
+
+
+%package libs
+Summary:        Runtime library for %{name}
+Group:          System Environment/Libraries
+License:        LGPLv2+
+
+%description libs
+Runtime library for %{name}.
+
+
+%package devel
+Summary:        Development files for %{name} library
+Group:          Development/Libraries
+License:        LGPLv2+
+Requires:       %{name}-libs = %{version}-%{release}
+
+%description devel
+Development files and documentation for the %{name} library.
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .casts
+
+
+%build
+%cmake -DPODOFO_BUILD_SHARED=1 \
+%ifarch x86_64 ppc64 s390x sparc64
+-DWANT_LIB64=1 \
+%endif
+.
+%__make %{?_smp_mflags}
+
+# build the docs
+doxygen
+
+# set timestamps on generated files to some constant
+find doc/html -exec touch -r %{SOURCE0} {} \;
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%__make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%{_bindir}/%{name}*
+
+%files libs
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING.LIB ChangeLog FAQ.html README.html TODO
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc doc/html
+%{_includedir}/%{name}
+%{_libdir}/*.so
+
+
+%changelog
+* Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.8.1-1
+- initial build based on Fedora development
+
+* Tue Jun  8 2010 Dan Horák <dan[at]danny.cz> 0.8.1-2
+- fix building tests
+
+* Mon Jun  7 2010 Dan Horák <dan[at]danny.cz> 0.8.1-1
+- updated to 0.8.1
+
+* Thu Apr 29 2010 Dan Horák <dan[at]danny.cz> 0.8.0-1
+- updated to 0.8.0
+
+* Tue Feb 16 2010 Dan Horák <dan[at]danny.cz> 0.7.0-4
+- set timestamp on generated docs (#565683)
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Apr 30 2009 Dan Horák <dan[at]danny.cz> 0.7.0-2
+- remove BR: openssl-devel, it could be required in the future (but then
+    an exception clause will be added to the licenses)
+- add missing doc files
+
+* Sun Mar 29 2009 Dan Horák <dan[at]danny.cz> 0.7.0-1
+- initial Fedora package

+ 135 - 0
p/python-BeautifulSoup/python-BeautifulSoup-vl.spec

@@ -0,0 +1,135 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
+
+%define oname   BeautifulSoup
+
+Name:           python-BeautifulSoup
+Version:        3.0.8.1
+Release:        1%{?_dist_release}
+Summary:        HTML/XML parser for quick-turnaround applications like screen-scraping
+
+Group:          Development/Languages
+License:        BSD
+URL:            http://www.crummy.com/software/BeautifulSoup/
+Source0:        http://www.crummy.com/software/BeautifulSoup/download/3.x/BeautifulSoup-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch:      noarch
+BuildRequires:  python-devel
+
+%description
+Beautiful Soup is a Python HTML/XML parser designed for quick
+turnaround projects like screen-scraping. Three features make it
+powerful:
+
+Beautiful Soup won't choke if you give it bad markup.
+
+Beautiful Soup provides a few simple methods and Pythonic idioms for
+navigating, searching, and modifying a parse tree.
+
+Beautiful Soup automatically converts incoming documents to Unicode
+and outgoing documents to UTF-8.
+
+Beautiful Soup parses anything you give it.
+
+Valuable data that was once locked up in poorly-designed websites is
+now within your reach. Projects that would have taken hours take only
+minutes with Beautiful Soup.
+#'
+
+%prep
+%setup -q -n %{oname}-%{version}
+
+
+%build
+%{__python} setup.py build
+%{__python} -c 'import %{oname} as bs; print bs.__doc__' > COPYING
+touch -r %{oname}.py COPYING
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+#Files installed by error
+%__rm -rf $RPM_BUILD_ROOT%{_bindir}
+
+ 
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%check
+%{__python} BeautifulSoupTests.py
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%{python_sitelib}/%{oname}.py*
+%exclude %{python_sitelib}/%{oname}Tests.py*
+%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
+%{python_sitelib}/%{oname}-%{version}-py%{pyver}.egg-info
+%endif
+
+%changelog
+* Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.0.8.1-1
+- initial build based on Fedora development
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1:3.0.8.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Sun Jun 20 2010 Terje Rosten <terje.rosten@ntnu.no> - 1:3.0.8.1-1
+- 3.0.8.1
+
+* Sun Dec  6 2009 Terje Rosten <terje.rosten@ntnu.no> - 1:3.0.8-1
+- 3.0.8
+- Fix source url
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.7a-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Jun 10 2009 kwizart < kwizart at gmail.com > - 1:3.0.7a-1
+- Revert to 3.0.7a and bump Epoch - Fix #505043
+  http://www.crummy.com/software/BeautifulSoup/3.1-problems.html
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Jan 12 2009 kwizart < kwizart at gmail.com > - 3.1.0.1-2
+- Fix installed files.
+
+* Mon Jan 12 2009 kwizart < kwizart at gmail.com > - 3.1.0.1-1
+- Update to 3.1.0.1
+
+* Thu Dec  4 2008 kwizart < kwizart at gmail.com > - 3.0.7a-3
+- ReTag
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.7a-2
+- Rebuild for Python 2.6
+
+* Wed Oct 15 2008 kwizart < kwizart at gmail.com > - 3.0.7a-1
+- Update to 3.0.7a
+
+* Mon Jun 30 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.7-2
+- Rebuild
+
+* Mon Jun 23 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.0.7-1
+- Update to 3.0.7
+
+* Tue Feb  5 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.5-3
+- Fix typo
+
+* Tue Feb  5 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.5-2
+- Handle egg info
+- Bump release
+
+* Tue Feb  5 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.5-1
+- Update to 3.0.5
+- Minor tweaks to spec file
+
+* Wed Apr 18 2007 kwizart < kwizart at gmail.com > - 3.0.4-1
+- Update to 3.0.4
+
+* Wed Nov 29 2006 TC Wan <tcwan@cs.usm.my>
+- Initial SPEC file for Fedora Core 5

+ 155 - 0
p/python-cherrypy/python-cherrypy-vl.spec

@@ -0,0 +1,155 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Name:           python-cherrypy
+Version:        3.1.2
+Release:        1%{?_dist_release}
+Summary:        Pythonic, object-oriented web development framework
+Group:          Development/Libraries
+License:        BSD
+URL:            http://www.cherrypy.org/
+Source0:        http://download.cherrypy.org/cherrypy/%{version}/CherryPy-%{version}.tar.gz
+Patch0:         python-cherrypy-tutorial-doc.patch
+Patch1: python-cherrypy-changederrormessage.patch
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch:      noarch
+
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
+BuildRequires:  tidy
+
+%description
+CherryPy allows developers to build web applications in much the same way 
+they would build any other object-oriented Python program. This usually 
+results in smaller source code developed in less time.
+
+%prep
+%setup -q -n CherryPy-%{version}
+%patch0 -p1
+%patch1 -p1 -b .errmsg
+
+%{__sed} -i 's/\r//' README.txt cherrypy/tutorial/README.txt cherrypy/tutorial/tutorial.conf
+
+%build
+%{__python} setup.py build
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+%check
+cd cherrypy/test
+# The tidy tool test needs tidy in the test dir
+ln -s %{_bindir}/tidy tidy
+PYTHONPATH='../../' %{__python} test.py --dumb
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc README.txt
+%doc cherrypy/tutorial
+%{_bindir}/cherryd
+%{python_sitelib}/*
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.1.2-1
+- initial build based on Fedora development
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-5
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Mon May 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-4
+- Fix a failing unittest with newer python
+
+* Sat Apr 24 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-3
+- Revert a try at 3.2.x-rc1 as the tests won't pass without some work.
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Tue Jun 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-1
+- New upstream with python-2.6 fixes.
+- BR tidy for tests.
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.1-1
+- Update to 3.1.1
+- Fix python-2.6 build errors
+- Make test code non-interactive via cmdline switch
+- Refresh the no test and tutorial patch
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.3-3
+- Rebuild for Python 2.6
+
+* Tue Jan 22 2008 Toshio Kuratomi <toshio@fedoraproject.org> 3.0.3-2
+- Forgot to upload the tarball.
+
+* Mon Jan 21 2008 Toshio Kuratomi <toshio@fedoraproject.org> 3.0.3-1
+- Upgrade to 3.0.3.
+
+* Thu Jan 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.3.0-2
+- EINTR Patch needed to be forwarded ported as well as it is only applied to
+  CP trunk (3.x).
+
+* Thu Jan 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.3.0-1
+- Update to new upstream which rolls in the backported security fix.
+- Refresh other patches to apply against new version.
+- Change to new canonical source URL.
+- Reenable tests.
+
+* Sun Jan  6 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.2.1-8
+- Fix a security bug with a backport of http://www.cherrypy.org/changeset/1775
+- Include the egginfo files as well as the python files.
+
+* Sat Nov  3 2007 Luke Macken <lmacken@redhat.com> 2.2.1-7
+- Apply backported fix from http://www.cherrypy.org/changeset/1766
+  to improve CherryPy's SIGSTOP/SIGCONT handling (Bug #364911).
+  Thanks to Nils Philippsen for the patch.
+
+* Mon Feb 19 2007 Luke Macken <lmacken@redhat.com> 2.2.1-6
+- Disable regression tests until we can figure out why they
+  are dying in mock.
+
+* Sun Dec 10 2006 Luke Macken <lmacken@redhat.com> 2.2.1-5
+- Add python-devel to BuildRequires
+
+* Sun Dec 10 2006 Luke Macken <lmacken@redhat.com> 2.2.1-4
+- Rebuild for python 2.5
+
+* Mon Sep 18 2006 Luke Macken <lmacken@redhat.com> 2.2.1-3
+- Rebuild for FC6
+- Include pyo files instead of ghosting them
+
+* Thu Jul 13 2006 Luke Macken <lmacken@redhat.com> 2.2.1-2
+- Rebuild
+
+* Thu Jul 13 2006 Luke Macken <lmacken@redhat.com> 2.2.1-1
+- Update to 2.2.1
+- Remove unnecessary python-abi requirement
+
+* Sat Apr 22 2006 Gijs Hollestelle <gijs@gewis.nl> 2.2.0-1
+- Update to 2.2.0
+
+* Wed Feb 22 2006 Gijs Hollestelle <gijs@gewis.nl> 2.1.1-1
+- Update to 2.1.1 (Security fix)
+
+* Tue Nov  1 2005 Gijs Hollestelle <gijs@gewis.nl> 2.1.0-1
+- Updated to 2.1.0
+
+* Sat May 14 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-2
+- Added dist tag
+
+* Sun May  8 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-1
+- Updated to 2.0.0 final
+- Updated python-cherrypy-tutorial-doc.patch to match new version
+
+* Wed Apr  6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 2.0.0-0.2.b
+- Removed CFLAGS
+
+* Wed Mar 23 2005 Gijs Hollestelle <gijs[AT]gewis.nl> 2.0.0-0.1.b
+- Initial Fedora Package

+ 16 - 11
p/python-cssutils/python-cssutils-vl.spec

@@ -1,17 +1,16 @@
 %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
 %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
 
 
-%define pkg_release	2%{?_dist_release}
+%define betaversion b3
 
 
 Summary: CSS Cascading Style Sheets library for Python
 Summary: CSS Cascading Style Sheets library for Python
 Summary(ja): Python 用 CSS カスケーディング・スタイル・シート ライブラリ
 Summary(ja): Python 用 CSS カスケーディング・スタイル・シート ライブラリ
 Name: python-cssutils
 Name: python-cssutils
-Version: 0.9.5.1
-Release: %{pkg_release}
+Version: 0.9.7
+Release: 1%{?betaversion:.%betaversion}%{?_dist_release}
 License: LGPLv3+
 License: LGPLv3+
 Group: Development/Libraries
 Group: Development/Libraries
 URL: http://cthedot.de/cssutils/
 URL: http://cthedot.de/cssutils/
-Source: http://cssutils.googlecode.com/files/cssutils-%{version}.zip
-Patch0: cssutils-0.9.5.1-nohashbang.patch
+Source: http://cssutils.googlecode.com/files/cssutils-%{version}%{?betaversion:%betaversion}.zip
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 # Required at runtime for the css* executables
 # Required at runtime for the css* executables
 Requires: python-setuptools
 Requires: python-setuptools
@@ -43,15 +42,14 @@ CSS カスケーディング・スタイル・シートの作成と構文解析
 
 
 
 
 %prep
 %prep
-%setup -q -n cssutils-%{version}
-%patch0 -p1
+%setup -q -n cssutils-%{version}%{?betaversion:%betaversion}
 # Convert all CRLF files, keeping original timestamps
 # Convert all CRLF files, keeping original timestamps
 for FILE in `find . -type f -exec grep -Gl '\r\n' {} \;`; do
 for FILE in `find . -type f -exec grep -Gl '\r\n' {} \;`; do
     tr -d '\r' < ${FILE} > ${FILE}.tmp
     tr -d '\r' < ${FILE} > ${FILE}.tmp
     touch -r ${FILE} ${FILE}.timestamp
     touch -r ${FILE} ${FILE}.timestamp
     cat ${FILE}.tmp > ${FILE}
     cat ${FILE}.tmp > ${FILE}
     touch -r ${FILE}.timestamp ${FILE}
     touch -r ${FILE}.timestamp ${FILE}
-    rm -f ${FILE}.timestamp ${FILE}.tmp
+    %__rm -f ${FILE}.timestamp ${FILE}.tmp
 done
 done
 
 
 
 
@@ -82,14 +80,21 @@ done
 %{python_sitelib}/cssutils-*.egg-info/
 %{python_sitelib}/cssutils-*.egg-info/
 %{python_sitelib}/cssutils/
 %{python_sitelib}/cssutils/
 %{python_sitelib}/encutils/
 %{python_sitelib}/encutils/
-# This is a way too generic name!
-%exclude %{python_sitelib}/tests/
+# # This is a way too generic name!
+# %exclude %{python_sitelib}/tests/
 
 
 %files doc
 %files doc
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
-%doc doc/*
+%doc docs/* examples/
+
 
 
 %changelog
 %changelog
+* Thu Aug 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.7-1.b3
+- new upstream release
+
+* Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.9.6-1
+- new upstream release
+
 * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.5.1-2
 * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.5.1-2
 - rebuild with python-2.6
 - rebuild with python-2.6
 
 

+ 99 - 0
p/python-dateutil/python-dateutil-vl.spec

@@ -0,0 +1,99 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+Name:           python-dateutil
+Version:        1.4.1
+Release:        1%{?_dist_release}
+Summary:        Powerful extensions to the standard datetime module
+
+Group:          Development/Languages
+License:        Python
+URL:            http://labix.org/python-dateutil
+Source0:        http://labix.org/download/python-dateutil/python-dateutil-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch:      noarch
+BuildRequires:  python-devel,python-setuptools
+
+%description
+The dateutil module provides powerful extensions to the standard datetime
+module available in Python 2.3+.
+
+%prep
+%setup -q
+
+# Reencode this as utf8
+iconv -f ISO-8859-1 -t utf8 NEWS
+
+%build
+%{__python} setup.py build
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+ 
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc example.py LICENSE NEWS README
+%{python_sitelib}/dateutil/
+%{python_sitelib}/*.egg-info
+
+%changelog
+* Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 1.4.1-1
+- initial build based on Fedora development
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.1-5
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Feb 20 2009 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 1.4.1-2
+- small specfile fix
+
+* Fri Feb 20 2009 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 1.4.1-2
+- New upstream version
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.4-3
+- Rebuild for Python 2.6
+
+* Fri Aug 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.4-2
+- fix license tag
+
+* Tue Jul 01 2008 Jef Spaleta <jspaleta AT fedoraproject DOT org> 1.4-1
+- Latest upstream release 
+
+* Fri Jan 04 2008 Jef Spaleta <jspaleta@fedoraproject.org> 1.2-2
+- Fix for egg-info file creation
+
+* Thu Jun 28 2007 Orion Poplawski <orion@cora.nwra.com> 1.2-1
+- Update to 1.2
+
+* Mon Dec 11 2006 Jef Spaleta <jspaleta@gmail.com> 1.1-5
+- Fix python-devel BR, as per discussion in maintainers-list
+
+* Mon Dec 11 2006 Jef Spaleta <jspaleta@gmail.com> 1.1-4
+- Release bump for rebuild against python 2.5 in devel tree
+
+* Wed Jul 26 2006 Orion Poplawski <orion@cora.nwra.com> 1.1-3
+- Add patch to fix building on x86_64
+
+* Wed Feb 15 2006 Orion Poplawski <orion@cora.nwra.com> 1.1-2
+- Rebuild for gcc/glibc changes
+
+* Thu Dec 22 2005 Orion Poplawski <orion@cora.nwra.com> 1.1-1
+- Update to 1.1
+
+* Thu Jul 28 2005 Orion Poplawski <orion@cora.nwra.com> 1.0-1
+- Update to 1.0
+
+* Tue Jul 05 2005 Orion Poplawski <orion@cora.nwra.com> 0.9-1
+- Initial Fedora Extras package

+ 61 - 0
p/python-django-tagging/python-django-tagging-vl.spec

@@ -0,0 +1,61 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%define alphatag r154
+%define srcname django-tagging
+
+Name:           python-%{srcname}
+Version:        0.3
+Release:        1.20080217svn%{alphatag}%{?_dist_release}
+Summary:        A generic tagging application for Django projects
+
+Group:          Development/Languages
+License:        MIT
+URL:            http://code.google.com/p/django-tagging/
+# svn export -r154 http://django-tagging.googlecode.com/svn/trunk/ django-tagging-0.3-r154
+# tar zcf django-tagging-0.3-r154.tar.gz django-tagging-0.3-r154
+Source0:        %{srcname}-%{version}-%{alphatag}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildArch:      noarch
+BuildRequires:  python-devel
+Requires:       Django
+
+%description
+A generic tagging application for Django projects, which allows association
+of a number of tags with any Model instance and makes retrieval of tags
+simple.
+
+%prep
+%setup -q -n %{srcname}-%{version}-%{alphatag}
+
+%build
+%{__python} setup.py build
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGELOG.txt LICENSE.txt README.txt docs/*
+%{python_sitelib}/*
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.3-1.20080217svnr154
+- initial build based on Fedora development
+
+* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3-3.20080217svnr154
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2.20080217svnr154
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Mon Mar 02 2009 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.3-1.20080217svnr154
+- Add Requires: Django
+
+* Wed Feb 18 2009 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.3-0.20080217svnr154
+- Initial RPM release

+ 179 - 0
p/python-docutils/python-docutils-vl.spec

@@ -0,0 +1,179 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%define srcname docutils
+
+Name:           python-%{srcname}
+Version:        0.6
+Release:        1%{?_dist_release}
+Summary:        System for processing plaintext documentation
+
+Group:          Development/Languages
+# See COPYING.txt for information
+License:        Public Domain and MIT and Python and GPLv2
+URL:            http://docutils.sourceforge.net
+Source0:        http://downloads.sourceforge.net/docutils/%{srcname}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildArch:       noarch
+
+BuildRequires:  python-devel
+BuildRequires: python-setuptools
+
+Requires: python-imaging
+Provides: docutils = %{version}-%{release}
+
+%description
+The Docutils project specifies a plaintext markup language, reStructuredText,
+which is easy to read and quick to write.  The project includes a python
+library to parse rST files and transform them into other useful formats such
+as HTML, XML, and TeX as well as commandline tools that give the enduser
+access to this functionality.
+
+Currently, the library supports parsing rST that is in standalone files and
+PEPs (Python Enhancement Proposals).  Work is underway to parse rST from
+Python inline documentation modules and packages.
+
+%prep
+%setup -q -n %{srcname}-%{version}
+
+# Remove a shebang from one of the library files
+%__sed -i -e '/#! *\/usr\/bin\/.*python.*/{1D}' docutils/readers/python/pynodes.py
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+
+
+%install
+rm -rf %{buildroot}
+
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+for file in %{buildroot}/%{_bindir}/*.py; do
+    mv $file `dirname $file`/`basename $file .py`
+done
+
+# We want the licenses but don't need this build file
+%__rm -f licenses/docutils.conf
+
+# docutils only installs this if its not already on the system.  Due to the
+# possibility that a previous version of docutils may be installed, we install
+# it manually here.
+file=roman.py
+extradest=%{python_sitelib}
+fullextradest=%{buildroot}/$extradest
+install -D -m 0644 extras/$file $fullextradest/$file
+
+%clean
+%__rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt 
+%doc THANKS.txt licenses docs tools/editors
+%{_bindir}/*
+%{python_sitelib}/docutils/
+%{python_sitelib}/roman.*
+%{python_sitelib}/*egg-info
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.6-1
+- initial build based on Fedora development
+
+* Tue Jan 19 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6-1
+- Update for 0.6 release.
+- Switch from setuptools installed egg-info to distutils egg-info.  Note that
+  this works because we're also changing docutils version.  To do this between
+  0.5-4 and 0.5-5, for instance, we'd need to have %%preun scriptlet to get rid
+  of the egg-info directory.
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-2
+- Rebuild for Python 2.6
+
+* Wed Aug 6 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.5-1
+- New upstream version.
+
+* Mon Mar 3 2008 Toshio Kuratomi <toshio@fedoraproject.org> 0.4-8
+- Use regular Requires syntax for python-imaging as missingok is just wrong.
+
+* Thu Sep 27 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4-7
+- Build egg info.
+
+* Mon Aug 13 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4-6
+- Last version had both the old and new rst.el.  Try again with only
+  the new one.
+
+* Sun Aug 12 2007 Toshio Kuratomi <a.badger@gmail.com> 0.4-5
+- Make License tag conform to the new Licensing Policy.
+- Fix the rst emacs mode (RH BZ 250100)
+
+* Sat Dec 09 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-4
+- Bump and rebuild for python 2.5 in devel.
+
+* Tue Aug 29 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-3
+- Bump for FC6 rebuild.
+- Remove python byte compilation as this is handled automatically in FC4+.
+- No longer %%ghost .pyo files.
+  
+* Thu Feb 16 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-2
+- Bump and rebuild for FC5.
+  
+* Sun Jan 15 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-1
+- Update to 0.4.
+- Scripted the listing of files in the python module.
+- Add a missingok requirement on python-imaging as docutils can make use of
+  it when converting to formats that have images.
+  
+* Tue Jun 7 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.3.9-1
+- Update to version 0.3.9.
+- Use a dist tag as there aren't any differences between supported fc
+  releases (FC3, FC4, devel.)
+
+* Thu May 12 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.3.7-7
+- Bump version and rebuild to sync across architectures.
+
+* Sun Mar 20 2005 Toshio Kuratomi <toshio-tiki-lounge.com> 0.3.7-6
+- Rebuild for FC4t1
+
+* Sat Mar 12 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0.3.7-5
+- Add GPL as a license (mschwendt)
+- Use versioned Obsoletes and Provides (mschwendt)
+
+* Fri Mar 04 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-4
+- Rename to python-docutils per the new packaging guidelines.
+
+* Wed Jan 12 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-0.fdr.3
+- Really install roman.py and build roman.py[co].  Needed to make sure I have
+  docutils installed to test that it builds roman.py fine in that case.
+
+* Tue Jan 11 2005 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-0.fdr.2
+- Special case roman.py to always install.  This is the behaviour we want
+  unless something else provides it.  Will need to watch out for this in
+  future Core and Extras packages, but the auto detection code makes it
+  possible that builds will not be reproducible if roman.py were installed
+  from another package.... Lesser of two evils here.
+- Provide python-docutils in case that package were preinstalled from
+  another repository.
+  
+* Fri Dec 31 2004 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.7-0.fdr.1
+- Update to 0.3.7
+- Rename from python-docutils to docutils.
+- Make roman.py optionally a part of the files list.  In FC2, this will be
+  included.  In FC3, this won't.
+- BuildConflict with self since the docutils build detects the presence
+  of roman.py and doesn't reinstall itself.
+  
+* Mon Aug 9 2004 Toshio Kuratomi <toshio.tiki-lounge.com> 0:0.3.5-0.fdr.1
+- Update to 0.3.5.
+- Update spec style to latest fedora-rpmdevtools.
+- Merge everything into a single package.  There isn't very much space
+  advantage to having separate packages in a package this small and in
+  this case, the documentation on using docutils as a library is also a
+  good example of how to write in ReSructuredText.
+
+* Sat Jan 10 2004 Michel Alexandre Salim <salimma[AT]users.sf.net> 0:0.3-0.fdr.1
+- Initial RPM release.

+ 222 - 0
p/python-jinja2/python-jinja2-vl.spec

@@ -0,0 +1,222 @@
+%global with_python3 0
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+# Enable building without docs to avoid a circular dependency between this
+# and python-sphinx:
+%global with_docs 0
+
+Name:		python-jinja2
+Version:	2.5.2
+Release:	1%{?_dist_release}
+Summary:	General purpose template engine
+Group:		Development/Languages
+License:	BSD
+URL:		http://jinja.pocoo.org/
+Source0:	http://pypi.python.org/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
+BuildArch:	noarch
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools
+BuildRequires:	python-markupsafe
+%if 0%{?with_docs}
+BuildRequires:	python-sphinx
+%endif # with_docs
+Requires:	python-babel >= 0.8
+Requires:	python-markupsafe
+%if 0%{?with_python3}
+BuildRequires:	python3-devel
+BuildRequires:	python3-setuptools
+BuildRequires:	python3-markupsafe
+Requires:	python3-markupsafe
+# babel isn't py3k ready yet, and is only a weak dependency
+#Requires:	 python3-babel >= 0.8
+%endif # with_python3
+
+BuildRequires:	python-setuptools
+
+
+%description
+Jinja2 is a template engine written in pure Python.  It provides a
+Django inspired non-XML syntax but supports inline expressions and an
+optional sandboxed environment.
+
+If you have any exposure to other text-based template languages, such
+as Smarty or Django, you should feel right at home with Jinja2. It's
+both designer and developer friendly by sticking to Python's
+principles and adding functionality useful for templating
+environments.
+
+
+%if 0%{?with_python3}
+%package -n python3-jinja2
+Summary:	General purpose template engine
+Group:		Development/Languages
+
+
+%description -n python3-jinja2
+Jinja2 is a template engine written in pure Python.  It provides a
+Django inspired non-XML syntax but supports inline expressions and an
+optional sandboxed environment.
+
+If you have any exposure to other text-based template languages, such
+as Smarty or Django, you should feel right at home with Jinja2. It's
+both designer and developer friendly by sticking to Python's
+principles and adding functionality useful for templating
+environments.
+%endif # with_python3
+
+
+%prep
+%setup -q -n Jinja2-%{version}
+
+# cleanup
+find . -name '*.pyo' -o -name '*.pyc' -delete
+
+# fix EOL
+%__sed -i 's|\r$||g' LICENSE
+
+%if 0%{?with_python3}
+%__cp -a . %{py3dir}
+%endif # with_python3
+
+
+%build
+%{__python} setup.py build
+
+# for now, we build docs using Python 2.x and use that for both
+# packages.
+%if 0%{?with_docs}
+%__make -C docs html
+%endif # with_docs
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+
+%install
+%__rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build \
+	    --root %{buildroot}
+
+# remove hidden file
+%__rm -rf docs/_build/html/.buildinfo
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build \
+	    --root %{buildroot}
+popd
+%endif # with_python3
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%check
+%__make test
+
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%__make test
+popd
+%endif # with_python3
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS CHANGES LICENSE
+%if 0%{?with_docs}
+%doc docs/_build/html
+%endif # with_docs
+%doc ext
+%doc examples
+%{python_sitelib}/*
+%exclude %{python_sitelib}/jinja2/_debugsupport.c
+
+
+%if 0%{?with_python3}
+%files -n python3-jinja2
+%defattr(-,root,root,-)
+%doc AUTHORS CHANGES LICENSE
+%if 0%{?with_docs}
+%doc docs/_build/html
+%endif # with_docs
+%doc ext
+%doc examples
+%{python3_sitelib}/*
+%exclude %{python3_sitelib}/jinja2/_debugsupport.c
+%endif # with_python3
+
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 2.5.2-1
+- initial build based on Fedora development
+
+* Thu Aug 19 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.5.2-1
+- Update to upstream version 2.5.2.
+- Package depends on python-markupsafe and is noarch now.
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.5-4
+- add explicit build-requirement on python-setuptools
+- fix doc disablement for python3 subpackage
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.5-3
+- support disabling documentation in the build to break a circular build-time
+dependency with python-sphinx; disable docs for now
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Tue Jul 13 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.5-1
+- Update to upstream version 2.5.
+- Create python3 subpackage. 
+- Minor specfile fixes.
+- Add examples directory.
+- Thanks to Gareth Armstrong for additional hints.
+
+* Wed Apr 21 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.4.1-1
+- Update to 2.4.1.
+
+* Tue Apr 13 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.4-1
+- Update to 2.4.
+
+* Tue Feb 23 2010 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.1-1
+- Update to 2.3.1.
+- Docs are built using Sphinx now.
+- Run the testsuite.
+
+* Sat Sep 19 2009 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.1-1
+- Update to 2.2.1, mainly a bugfix release.
+- Remove patch no longer needed.
+- Remove conditional for FC-8.
+- Compilation of speedup module has to be explicitly requested now.
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sat Jan 10 2009 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.1-1
+- Update to 2.1.1 (bugfix release).
+
+* Thu Dec 18 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.1-1
+- Update to 2.1, which fixes a number of bugs.
+  See http://jinja.pocoo.org/2/documentation/changelog#version-2-1.
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0-3
+- Rebuild for Python 2.6
+
+* Tue Jul 22 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.0-2
+- Use rpm buildroot macro instead of RPM_BUILD_ROOT.
+
+* Sun Jul 20 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.0-1
+- Upstream released 2.0.
+
+* Sun Jun 29 2008 Thomas Moschny <thomas.moschny@gmx.de> - 2.0-0.1.rc1
+- Modified specfile from the existing python-jinja package.

+ 109 - 0
p/python-markupsafe/python-markupsafe-vl.spec

@@ -0,0 +1,109 @@
+%global with_python3 0
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+
+Name: python-markupsafe
+Version: 0.9.2
+Release: 1%{?_dist_release}
+Summary: Implements a XML/HTML/XHTML Markup safe string for Python
+
+Group: Development/Languages
+License: BSD
+URL: http://pypi.python.org/pypi/MarkupSafe
+Source0: http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: python-devel python-setuptools
+
+%if 0%{?with_python3}
+BuildRequires: python3-devel python3-setuptools
+# For /usr/bin/2to3
+BuildRequires: python-tools
+%endif # if with_python3
+
+
+%description
+A library for safe markup escaping.
+
+%if 0%{?with_python3}
+%package -n python3-markupsafe
+Summary: Implements a XML/HTML/XHTML Markup safe string for Python
+Group: Development/Languages
+
+%description -n python3-markupsafe
+A library for safe markup escaping.
+%endif #if with_python3
+
+%prep
+%setup -q -n MarkupSafe-%{version}
+
+%if 0%{?with_python3}
+%__rm -rf %{py3dir}
+%__cp -a . %{py3dir}
+2to3 --write --nobackups %{py3dir}
+%endif # with_python3
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
+popd
+%endif # with_python3
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+# C code errantly gets installed
+%__rm $RPM_BUILD_ROOT/%{python_sitearch}/markupsafe/*.c
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%__rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c
+popd
+%endif # with_python3
+
+
+%check
+%{__python} setup.py test
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py test
+popd
+%endif # with_python3
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS LICENSE README.rst
+%{python_sitearch}/*
+
+%if 0%{?with_python3}
+%files -n python3-markupsafe
+%defattr(-,root,root,-)
+%doc AUTHORS LICENSE README.rst
+%{python3_sitearch}/*
+%endif # with_python3
+
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.9.2-1
+- initial build based on Fedora development
+
+* Fri Jul 23 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.2-4
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Thu Jun 24 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-3
+- Fix missing setuptools BuildRequires.
+
+* Thu Jun 24 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-2
+- Fixed sitearch and python3 definitions to work better with older Fedora/RHEL.
+
+* Wed Jun 23 2010 Kyle VanderBeek <kylev@kylev.com> - 0.9.2-1
+- Initial version.

+ 8 - 5
p/python-mechanize/python-mechanize-vl.spec

@@ -1,8 +1,8 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 
 Name:           python-mechanize
 Name:           python-mechanize
-Version:        0.1.10
-Release:        2%{?_dist_release}
+Version:        0.2.2
+Release:        1%{?_dist_release}
 Summary:        Stateful programmatic web browsing
 Summary:        Stateful programmatic web browsing
 Summary(ja):	ウェブ・ブラウジング・プログラム用 Python モジュール
 Summary(ja):	ウェブ・ブラウジング・プログラム用 Python モジュール
 
 
@@ -45,22 +45,25 @@ Andy Lester (WWW::Mechanize).  urllib2 was written by Jeremy Hylton.
 
 
 
 
 %install
 %install
-rm -rf $RPM_BUILD_ROOT
+%__rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install --single-version-externally-managed \
 %{__python} setup.py install --single-version-externally-managed \
                              -O1 --root=$RPM_BUILD_ROOT
                              -O1 --root=$RPM_BUILD_ROOT
 
 
 
 
 %clean
 %clean
-rm -rf $RPM_BUILD_ROOT
+%__rm -rf $RPM_BUILD_ROOT
 
 
 
 
 %files
 %files
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
-%doc COPYING.txt README.txt README.html GeneralFAQ.html doc.html examples
+%doc COPYING.txt README.txt docs examples
 %{python_sitelib}/*
 %{python_sitelib}/*
 
 
 
 
 %changelog
 %changelog
+* Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.2.2-1
+- new upstream release
+
 * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.10-2
 * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.1.10-2
 - rebuild with python-2.6
 - rebuild with python-2.6
 
 

+ 195 - 0
p/python-pygments/python-pygments-vl.spec

@@ -0,0 +1,195 @@
+%global with_python3 0
+
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%global upstream_name Pygments
+
+Name:           python-pygments
+Version:        1.3.1
+Release:        1%{?_dist_release}
+Summary:        A syntax highlighting engine written in Python
+
+Group:          Development/Libraries
+License:        BSD
+URL:            http://pygments.org/
+Source0:        http://pypi.python.org/packages/source/P/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  python-devel >= 2.4, python-setuptools, python-nose
+%if 0%{?with_python3}
+BuildRequires:  python3-devel, python3-setuptools
+%endif # if with_python3
+Requires:       python-setuptools, python-imaging
+
+
+%description
+Pygments is a generic syntax highlighter for general use in all kinds
+of software such as forum systems, wikis or other applications that
+need to prettify source code. Highlights are:
+
+  * a wide range of common languages and markup formats is supported
+  * special attention is paid to details that increase highlighting
+    quality
+  * support for new languages and formats are added easily; most
+    languages use a simple regex-based lexing mechanism
+  * a number of output formats is available, among them HTML, RTF,
+    LaTeX and ANSI sequences
+  * it is usable as a command-line tool and as a library
+  * ... and it highlights even Brainf*ck!
+
+%if 0%{?with_python3}
+%package -n python3-pygments
+Summary:        A syntax highlighting engine written in Python 3
+Group:          Development/Libraries
+Requires:       python3-setuptools
+
+%description -n python3-pygments
+Pygments is a generic syntax highlighter for general use in all kinds
+of software such as forum systems, wikis or other applications that
+need to prettify source code. Highlights are:
+
+  * a wide range of common languages and markup formats is supported
+  * special attention is paid to details that increase highlighting
+    quality
+  * support for new languages and formats are added easily; most
+    languages use a simple regex-based lexing mechanism
+  * a number of output formats is available, among them HTML, RTF,
+    LaTeX and ANSI sequences
+  * it is usable as a command-line tool and as a library
+  * ... and it highlights even Brainf*ck!
+%endif # if with_python3
+
+
+%prep
+%setup -q -n Pygments-%{version}
+
+%if 0%{?with_python3}
+%__rm -rf %{py3dir}
+%__cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif # with_python3
+
+
+%build
+%{__python} setup.py build
+%{__sed} -i 's/\r//' LICENSE
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT
+
+# Run the Python 3 build first so that the Python 2 version of
+# /usr/bin/pygmentize "wins":
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+popd
+%endif # with_python3
+
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+pushd docs
+%__install -d %{buildroot}%{_mandir}/man1
+%__mv pygmentize.1 $RPM_BUILD_ROOT%{_mandir}/man1/pygmentize.1
+%__mv build html
+%__mv src reST
+popd
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%check
+%__make test
+
+# nose is not Python3 ready yet
+%if 0%{?with_python3}
+pushd %{py3dir}
+#make test
+popd
+%endif # with_python3
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS CHANGES docs/html docs/reST LICENSE TODO
+# For noarch packages: sitelib
+%{python_sitelib}/*
+%{_bindir}/pygmentize
+%lang(en) %{_mandir}/man1/pygmentize.1.gz
+
+%if 0%{?with_python3}
+%files -n python3-pygments
+%defattr(-,root,root,-)
+%doc AUTHORS CHANGES docs/html docs/reST LICENSE TODO
+%{python3_sitelib}/*
+%endif # with_python3
+
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 1.3.1-1
+- initial build based on Fedora development
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.1-6
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Thu May  6 2010 Gareth Armstrong <gareth.armstrong@hp.com> - 1.3.1-5
+- Enforce that Pygments requires Python 2.4 or later via an explicit BR
+- Minor tweaks to spec file
+- Deliver html and reST doc files to specifically named directories
+- Align description with that of http://pygments.org/
+- Add %%check section for Python2 and add BR on python-nose
+
+* Fri Apr 23 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-4
+- switched with_python3 back to 1
+
+* Fri Apr 23 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.1-3
+- add python3 subpackage (BZ#537244), ignoring soft-dep on imaging for now
+
+* Sat Apr 13 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-2
+- added python-imaging as a dependency per BZ#581663.
+
+* Sat Mar  6 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-1
+- Updated for release.
+
+* Tue Sep 29 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1.1-1
+- Updated for release.
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sun Dec 21 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.0-3
+- Updated for release.
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-2
+- Rebuild for Python 2.6
+
+* Fri Nov 27 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.0-1
+- Updated for upstream 1.0.
+
+* Sun Sep 14 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.11.1-1
+- Updated for upstream 0.11.
+
+* Mon Jul 21 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.10-1
+- Updated for upstream 0.10.
+
+* Thu Nov 29 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9-2
+- Added python-setuptools as a Requires per bz#403601.
+
+* Mon Nov 12 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9-1
+- Updated for upstream 0.9.
+
+* Thu Aug 17 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-2
+- Removed the dos2unix build dependency.
+
+* Thu Jun 28 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-1
+- Initial packaging for Fedora.

+ 62 - 32
p/python-simplejson/python-simplejson-vl.spec

@@ -1,39 +1,44 @@
-%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 
-%define pkg_release	2%{?_dist_release}
+%global _use_internal_dependency_generator 0
+%global __find_provides /bin/sh -c "%{_rpmconfigdir}/find-provides | grep -v -E '(_speedups.so)' || /bin/true"
+%global __find_requires /bin/sh -c "%{_rpmconfigdir}/find-requires | grep -v -E '(_speedups.so)' || /bin/true"
 
 
-Name:		python-simplejson
-Version:	2.0.3
-Release:	%{pkg_release}
-Summary:	Simple, fast, extensible JSON encoder/decoder for Python
-Summary(ja):	Python 用のシンプルで速くて拡張可能な JSON エンコーダ/デコーダ
+Name:           python-simplejson
 
 
-Group:		System Environment/Libraries
-License:	MIT
-URL:		http://undefined.org/python/#simplejson
-Source0:	http://cheeseshop.python.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Version:        2.1.1
+Release:        1%{?_dist_release}
+Summary:        Simple, fast, extensible JSON encoder/decoder for Python
 
 
-BuildRequires:	python-devel
-BuildRequires:	python-setuptools
-BuildRequires:	python-nose
+Group:          System Environment/Libraries
+# The main code is licensed MIT.
+# The docs include jquery which is licensed MIT or GPLv2
+License: MIT and (MIT or GPLv2)
+URL:            http://undefined.org/python/#simplejson
+Source0:        http://pypi.python.org/packages/source/s/simplejson/simplejson-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
+BuildRequires:  python-nose
 
 
 
 
 %description
 %description
-simplejson is a simple, fast, complete, correct and extensible
-JSON <http://json.org> encoder and decoder for Python 2.3+.  It is
-pure Python code with no dependencies.
+simplejson is a simple, fast, complete, correct and extensible JSON
+<http://json.org> encoder and decoder for Python 2.5+. It is pure Python code
+with no dependencies, but includes an optional C extension for a serious speed
+boost.
 
 
-simplejson was formerly known as simple_json, but changed its name to
-comply with PEP 8 module naming guidelines.
+simplejson is the externally maintained development version of the json library
+included with Python 2.6 and Python 3.0, but maintains backwards compatibility
+with Python 2.5.
 
 
 The encoder may be subclassed to provide serialization in any kind of
 The encoder may be subclassed to provide serialization in any kind of
 situation, without any special support by the objects to be serialized
 situation, without any special support by the objects to be serialized
 (somewhat like pickle).
 (somewhat like pickle).
 
 
-The decoder can handle incoming JSON strings of any specified encoding
-(UTF-8 by default).
+The decoder can handle incoming JSON strings of any specified encoding (UTF-8
+by default).
 
 
 
 
 %prep
 %prep
@@ -45,33 +50,58 @@ The decoder can handle incoming JSON strings of any specified encoding
 
 
 
 
 %install
 %install
-%{__rm} -rf ${RPM_BUILD_ROOT}
-%{__python} setup.py install -O1 --skip-build --root=${RPM_BUILD_ROOT} \
-                                 --single-version-externally-managed
+%__rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
 
 
 %check
 %check
 nosetests -q
 nosetests -q
 
 
 %clean
 %clean
-rm -rf ${RPM_BUILD_ROOT}
+%__rm -rf $RPM_BUILD_ROOT
 
 
 
 
 %files
 %files
 %defattr(-,root,root,-)
 %defattr(-,root,root,-)
 %doc docs LICENSE.txt
 %doc docs LICENSE.txt
 %dir %{python_sitearch}/simplejson
 %dir %{python_sitearch}/simplejson
-%{python_sitearch}/simplejson-%{version}-py%{pyver}.egg-info
+%{python_sitearch}/simplejson-*.egg-info
 %{python_sitearch}/simplejson/*.py*
 %{python_sitearch}/simplejson/*.py*
 %{python_sitearch}/simplejson/tests/*.py*
 %{python_sitearch}/simplejson/tests/*.py*
 %{python_sitearch}/simplejson/_speedups.so
 %{python_sitearch}/simplejson/_speedups.so
 
 
 
 
 %changelog
 %changelog
-* Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 2.0.3-2
-- rebuild with python-2.6.4
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 2.1.1-1
+- initial build based on Fedora development
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.1.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Wed Jun 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 2.1.1-2
+- Filter unnecessary provides
+- License tag update
+- Minor spec file cleanups
+
+* Mon Jun 21 2010 Kyle VanderBeek <kylev@kylev.com> - 2.1.1-1
+- Update to 2.1.1
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Fri Jun  5 2009 Kyle VanderBeek <kylev@kylev.com> - 2.0.9-2
+- Remove ill-advised gcc BuildRequires
+
+* Thu Jun  4 2009 Kyle VanderBeek <kylev@kylev.com> - 2.0.9-1
+- Update to 2.0.9
+- Make sure to require gcc to the speedups get compiled
+- Fix description since we're not "pure" python
+- Change to pypi instead of cheesehop
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 
 
-* Sat Dec 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.0.3-1
-- initial build for Vine Linux based on fedora package
+* Tue Jan 06 2009 Luke Macken <lmacken@redhat.com> 2.0.7-1
+- Update to 2.0.7
 
 
 * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0.3-3
 * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.0.3-3
 - Rebuild for Python 2.6
 - Rebuild for Python 2.6

+ 238 - 0
p/python-sphinx/python-sphinx-vl.spec

@@ -0,0 +1,238 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+%global upstream_name Sphinx
+%global prerel b2
+
+Name:       python-sphinx
+Version:    1.0
+Release:    1.%{?prerel}%{?_dist_release}
+Summary:    Python documentation generator
+
+Group:      Development/Tools
+
+# Unless otherwise noted, the license for code is BSD
+# sphinx/util/stemmer.py Public Domain
+# sphinx/pycode/pgen2 Python
+# jquery (MIT or GPLv2)
+License: BSD and Public Domain and Python and (MIT or GPLv2)
+URL:        http://sphinx.pocoo.org/
+Source0:    http://pypi.python.org/packages/source/S/%{upstream_name}/%{upstream_name}-%{version}%{?prerel}.tar.gz
+
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildArch:     noarch
+BuildRequires: python-devel >= 2.4
+BuildRequires: python-setuptools
+BuildRequires: python-docutils
+BuildRequires: python-jinja2
+BuildRequires: python-nose
+Requires:      python-docutils
+Requires:      python-jinja2
+Requires:      python-pygments
+
+
+%description
+Sphinx is a tool that makes it easy to create intelligent and
+beautiful documentation for Python projects (or other documents
+consisting of multiple reStructuredText sources), written by Georg
+Brandl. It was originally created to translate the new Python
+documentation, but has now been cleaned up in the hope that it will be
+useful to many other projects.
+
+Sphinx uses reStructuredText as its markup language, and many of its
+strengths come from the power and straightforwardness of
+reStructuredText and its parsing and translating suite, the Docutils.
+
+Although it is still under constant development, the following
+features are already present, work fine and can be seen "in action" in
+the Python docs:
+
+    * Output formats: HTML (including Windows HTML Help) and LaTeX,
+      for printable PDF versions
+    * Extensive cross-references: semantic markup and automatic links
+      for functions, classes, glossary terms and similar pieces of
+      information
+    * Hierarchical structure: easy definition of a document tree, with
+      automatic links to siblings, parents and children
+    * Automatic indices: general index as well as a module index
+    * Code handling: automatic highlighting using the Pygments highlighter
+    * Various extensions are available, e.g. for automatic testing of
+      snippets and inclusion of appropriately formatted docstrings.
+
+
+%package doc
+Summary:    Documentation for %{name}
+Group:      Documentation
+License:    BSD
+Requires:   %{name} = %{version}-%{release}
+
+
+%description doc
+Sphinx is a tool that makes it easy to create intelligent and
+beautiful documentation for Python projects (or other documents
+consisting of multiple reStructuredText sources), written by Georg
+Brandl. It was originally created to translate the new Python
+documentation, but has now been cleaned up in the hope that it will be
+useful to many other projects.
+
+This package contains documentation in reST and HTML formats.
+
+
+%prep
+%setup -q -n %{upstream_name}-%{version}%{?prerel}
+%__sed '1d' -i sphinx/pycode/pgen2/token.py
+
+%build
+%{__python} setup.py build
+pushd doc
+%__make html
+%__rm -rf _build/html/.buildinfo
+%__mv _build/html ..
+%__rm -rf _*
+popd
+
+
+%install
+%__rm -rf %{buildroot}
+
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+# Manpages not in beta release yet
+#pushd doc
+# Deliver man pages
+#install -d %{buildroot}%{_mandir}/man1
+#mv sphinx-*.1 %{buildroot}%{_mandir}/man1/
+#popd
+
+# Deliver rst files
+%__mv doc reST
+
+# Move language files to /usr/share in association with %patch1
+pushd %{buildroot}%{python_sitelib}
+
+for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -printf "%f "`;
+do
+  install -d %{buildroot}%{_datadir}/sphinx/locale/$lang
+  install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
+  %__mv sphinx/locale/$lang/LC_MESSAGES/sphinx.js \
+     %{buildroot}%{_datadir}/sphinx/locale/$lang/
+  %__mv sphinx/locale/$lang/LC_MESSAGES/sphinx.mo \
+    %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
+  %__rm -rf sphinx/locale/$lang
+done
+popd
+%find_lang sphinx
+
+# Language files; Since these are javascript, it's not immediately obvious to
+# find_lang that they need to be marked with a language.
+(cd %{buildroot} && find . -name 'sphinx.js') | %__sed -e 's|^.||' | %__sed -e \
+  's:\(.*/locale/\)\([^/_]\+\)\(.*\.js$\):%lang(\2) \1\2\3:' \
+  >> sphinx.lang
+
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%check
+%__make test
+
+
+%files -f sphinx.lang
+%defattr(-,root,root,-)
+%doc AUTHORS CHANGES EXAMPLES LICENSE README TODO
+%{_bindir}/sphinx-*
+%{python_sitelib}/*
+%{_datadir}/sphinx/
+%exclude %{_datadir}/sphinx/locale/*/sphinx.js
+#%{_mandir}/man1/*
+
+%files doc
+%defattr(-,root,root,-)
+%doc html reST
+
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-1.b2
+- initial build based on Fedora development
+
+* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0-0.1.b2.1
+- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
+
+* Mon May 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0-0.2.b2
+- Update to 1.0 beta 2
+- Fixes problem building html documentation in non-English locales
+
+* Wed May 26 2010 Michel Salim <salimma@fedoraproject.org> - 1.0-0.1.b1
+- Update to 1.0 beta 1
+
+* Tue May 25 2010 Michel Salim <salimma@fedoraproject.org> - 0.6.6-1
+- Update to 0.6.6
+
+* Fri May 21 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.5-2
+- Few minor tweaks to Gareth's spec file update
+
+* Mon May 10 2010 Gareth Armstrong <gareth.armstrong@hp.com> - 0.6.5-1.hp
+- Update to 0.6.5
+- Initial import of python-sphinx from Fedora Rawhide for use in HP CMS
+- Enforce that Sphinx requires Python 2.4 or later via an explicit BR
+- Minor tweaks to spec file
+- Move language files to %%{_datadir}, idea borrowed from Debian's sphinx
+  package
+- Deliver man pages for sphinx-build & sphinx-quickstart
+- Deliver rst documentation files to reST directory in doc sub-package
+- Add %%check section for Python2 and add BR on python-nose
+
+* Wed Jan 13 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.4-1
+- Update to 0.6.4
+- Fixes a problem using autodoc with pylons projects.
+
+* Fri Sep  4 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.3-1
+- Update to 0.6.3
+
+* Mon Aug 17 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 0.6.2-1
+- Update to 0.6.2 -- upstream bugfix requested inside bz#512438
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Fri Jun 05 2009 Luke Macken <lmacken@redhat.com> - 0.6.1-2
+- Add a patch to use our own setuptools package
+
+* Fri Apr 17 2009 Michel Salim <salimma@fedoraproject.org> - 0.6.1-1
+- Update to 0.6.1
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Jan  2 2009 Michel Salim <salimma@fedoraproject.org> - 0.5.1-1
+- Update to 0.5.1
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5-2
+- Rebuild for Python 2.6
+
+* Mon Nov 24 2008 Michel Salim <salimma@fedoraproject.org> - 0.5-1
+- Update to 0.5
+
+* Fri Oct 10 2008 Michel Salim <salimma@fedoraproject.org> - 0.4.3-1
+- Update to 0.4.3
+
+* Wed Aug 27 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 0.4.2-1.1
+- Fix for EL-5 build.
+
+* Mon Aug 25 2008 Michel Salim <salimma@fedoraproject.org> - 0.4.2-1
+- Update to 0.4.2
+
+* Mon May 26 2008 Michel Salim <salimma@fedoraproject.org> - 0.3-1
+- Update to 0.3
+
+* Fri May  2 2008 Michel Salim <salimma@fedoraproject.org> - 0.1.61950-3
+- Split documentation into subpackage
+- Exclude C files (not built by default anyway)
+
+* Wed Apr 16 2008 José Matos <jamatos@fc.up.pt> - 0.1.61950-2
+- Build html documentation, include it and include the rst
+  documentation.
+
+* Thu Mar 27 2008 Michel Salim <michel.sylvan@gmail.com> 0.1.61950-1
+- Initial package

+ 269 - 0
t/tidy/tidy-vl.spec

@@ -0,0 +1,269 @@
+%define libname libtidy
+
+%define snap 20091203
+
+Name:    tidy
+Summary: Utility to clean up and pretty print HTML/XHTML/XML
+Version: 0.99.0
+Release: 1.%{snap}%{?_dist_release}
+
+Group:   Applications/Text
+License: W3C
+URL:     http://tidy.sourceforge.net/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+Source0: tidy-%{snap}cvs.tar.gz
+Source10: tidy-cvs_checkout.sh 
+
+BuildRequires: libtool
+BuildRequires: doxygen
+BuildRequires: libxslt
+
+Requires: %{libname}%{?_isa} = %{version}-%{release}
+
+%description
+When editing HTML it's easy to make mistakes. Wouldn't it be nice if
+there was a simple way to fix these mistakes automatically and tidy up
+sloppy editing into nicely layed out markup? Well now there is! Dave
+Raggett's HTML TIDY is a free utility for doing just that. It also
+works great on the atrociously hard to read markup generated by
+specialized HTML editors and conversion tools, and can help you
+identify where you need to pay further attention on making your pages
+more accessible to people with disabilities.
+
+#'
+
+%package -n %{libname} 
+Summary: Shared libraries for %{name}
+Group:	 System Environment/Libraries
+%description -n %{libname} 
+%{summary}.
+
+%package -n %{libname}-devel
+Summary: Development files for %{name} 
+Group:   Development/Libraries
+Obsoletes: tidy-devel < 0.99.0-10 
+Provides:  tidy-devel = %{version}-%{release}
+Requires: %{libname}%{?_isa} = %{version}-%{release}
+%description -n %{libname}-devel
+%{summary}.
+
+
+%prep
+%setup -q -n %{name}
+
+# htmldocs included in cvs checkout
+#setup -q -n %{name} -T -D -b1
+
+sh build/gnuauto/setup.sh
+
+
+%build
+%configure \
+  --disable-static \
+  --disable-dependency-tracking
+
+%__make %{?_smp_mflags}
+
+# api docs 
+doxygen htmldoc/doxygen.cfg
+
+# make doc steps gleaned from build/gmake/Makefile
+pushd htmldoc
+../console/tidy -xml-config > tidy-config.xml
+../console/tidy -xml-help   > tidy-help.xml
+xsltproc -o tidy.1 tidy1.xsl tidy-help.xml 
+xsltproc -o quickref.html quickref-html.xsl tidy-config.xml 
+popd
+
+
+%install
+%__rm -rf $RPM_BUILD_ROOT 
+
+%__make install DESTDIR=$RPM_BUILD_ROOT
+
+%__install -p -m644 -D htmldoc/tidy.1 $RPM_BUILD_ROOT%{_mandir}/man1/tidy.1
+
+## Unpackaged files
+%__rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
+
+
+%clean
+%__rm -rf $RPM_BUILD_ROOT
+
+
+%post -n %{libname} -p /sbin/ldconfig
+
+%postun -n %{libname} -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc htmldoc/*.html htmldoc/*.css htmldoc/*.gif
+%{_bindir}/tab2space
+%{_bindir}/tidy
+%{_mandir}/man1/tidy.1*
+
+%files -n %{libname} 
+%defattr(-,root,root,-)
+%{_libdir}/libtidy-0.99.so.0*
+
+%files -n %{libname}-devel
+%defattr(-,root,root,-)
+%doc htmldoc/api/*
+%{_includedir}/*.h
+%{_libdir}/libtidy.so
+
+
+%changelog
+* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.99.0-1.20091203
+- initial build based on Fedora development
+
+* Thu Dec 03 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.99.0-20.20091203
+- 20091203 snapshot
+- spec housecleaning
+- Tidy erroniously removes whitespace, causing mangled text (#481350)
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.0-19.20070615
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.0-18.20070615
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 0.99.0-17.20070615 
+- respin (gcc43)
+
+* Sat Aug 25 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.99.0-16.20070615
+- respin (BuildID)
+
+* Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.99.0-15.20070615
+- License: W3C
+
+* Tue Jul 31 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.99.0-14.20070615
+- BR: libtool (again)
+
+* Mon Jul 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.99.0-13.20070615
+- 2007-06-15 snapshot
+
+* Wed Feb 28 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.99.0-12.20070228
+- 2007-02-28 snapshot
+
+* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-11.20051025
+- fc6 respin
+
+* Wed Jul 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-10.20051025
+- fc6 respin
+
+* Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net> 
+- fc5: gcc/glibc respin
+
+* Fri Jan 20 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-9.20051025
+- libtidy returns to be multilib friendly
+
+* Wed Oct 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-8.20051025
+- Update to 051025 and docs to 051020
+
+* Tue Aug  9 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-7.20050803
+- -devel: Provides: libtidy-devel (#165452)
+
+* Tue Aug  9 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-6.20050803
+- cleanup doc generation
+- add/restore missing docs (manpage, quickref.html)
+
+* Mon Aug  8 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.99.0-5.20050803
+- Update to 050803 and docs to 050705
+- simplify (fedora.us bug #2071)
+- drop missing manpage 
+
+* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 0.99.0-4.20041214
+- rebuild on all arches
+
+* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
+- rebuilt       
+
+* Thu Dec 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-2.20041214
+- Update to 041214 and docs to 041206.
+- Build with dependency tracking disabled.
+
+* Sun Oct  3 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040916
+- Update to 040916 and docs to 040810.
+
+* Fri Aug 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040811
+- Update to 040811, patches applied upstream.
+
+* Wed Jul 28 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040720
+- Update to 040720.
+- Add partial fix (still incorrect for XHTML 1.1) for usemap handling.
+
+* Mon Jul  5 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040704
+- Update to 040704.
+
+* Fri Jun 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040622
+- Update to 040622.
+
+* Sat Jun  5 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040603
+- Update to 040603.
+
+* Sat May 15 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040514
+- Update to 040514.
+
+* Sun May  2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.2.20040318
+- Update docs to 040317, and generate API docs ourselves.
+
+* Fri Mar 19 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040318
+- Update to 040318.
+
+* Tue Mar 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040315
+- Update to 040315.
+
+* Mon Mar 15 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040314
+- Update to 040314.
+
+* Sun Mar 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040313
+- Update to 040313.
+
+* Sun Feb  8 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040205
+- Update to 040205.
+
+* Wed Feb  4 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040202
+- Update to 040202.
+
+* Sun Feb  1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040130
+- Update to 040130.
+
+* Sun Jan 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040124
+- Update to 040124.
+- Honor optflags more closely.
+
+* Sun Jan 11 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040110
+- Update to 040110.
+
+* Thu Jan  8 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040106
+- Update to 040106.
+
+* Tue Jan  6 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20040104
+- Update to 040104.
+
+* Sun Nov  2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20031101
+- Update to 031101.
+
+* Thu Oct 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20031029
+- Update to 031029.
+
+* Fri Oct  3 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20031002
+- Update to 031002.
+
+* Sat Sep 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20030926
+- Update to 030926.
+
+* Wed Sep  3 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20030901
+- Update to 030901.
+
+* Sat Aug 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20030815
+- Update to 030815.
+
+* Sat Aug  2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20030801
+- Update to 030801.
+
+* Mon Jul 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.99.0-0.fdr.1.20030716
+- First build.