From f6d88c0acf1d9348390489c7d9563dfd578d8731 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 11 Jun 2007 03:42:19 +0000 Subject: [PATCH 1/3] Setup of module python-genshi --- .cvsignore | 0 Makefile | 21 +++++++++++++++++++++ sources | 0 3 files changed, 21 insertions(+) create mode 100644 .cvsignore create mode 100644 Makefile create mode 100644 sources diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..e69de29 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9f9e069 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: python-genshi +# $Id$ +NAME := python-genshi +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29 From 1c49ed6bae89d08650cb184c2e98857aad02d74b Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Tue, 31 May 2022 22:23:24 +0200 Subject: [PATCH 2/3] initial package for EPEL9 --- .gitignore | 4 +++ python-genshi.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 78 insertions(+) create mode 100644 .gitignore create mode 100644 python-genshi.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..33446be --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/*upstream*.git +/*.src.rpm +/results_* +/Genshi-0.7.* diff --git a/python-genshi.spec b/python-genshi.spec new file mode 100644 index 0000000..65f437d --- /dev/null +++ b/python-genshi.spec @@ -0,0 +1,73 @@ +%global srcname Genshi + +Name: python-genshi +Version: 0.7.7 +Release: 1%{?dist} +Summary: Toolkit for stream-based generation of output for the web + +License: BSD +URL: https://genshi.edgewall.org/ + +Source0: %pypi_source + +#BuildArch: noarch +BuildRequires: gcc +BuildRequires: python3-devel + +%description +Genshi is a Python library that provides an integrated set of +components for parsing, generating, and processing HTML, XML or other +textual content for output generation on the web. The major feature is +a template language, which is heavily inspired by Kid. + + +%package -n python3-genshi +Summary: %{summary} + +%description -n python3-genshi +Genshi is a Python library that provides an integrated set of +components for parsing, generating, and processing HTML, XML or other +textual content for output generation on the web. The major feature is +a template language, which is heavily inspired by Kid. + + +%prep +%autosetup -p1 -n %{srcname}-%{version} + +# Remove bundled egg-info in case it exists +rm -rf %{modname}.egg-info + +find examples -type f | xargs chmod a-x + +%generate_buildrequires +%pyproject_buildrequires -x i18n + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files genshi + +sed -i -e '/\/tests/d' %{pyproject_files} +sed -i -e '/_speedups.c/d' %{pyproject_files} + + +%check +%{python3} setup.py test + + +%files -n python3-genshi -f %{pyproject_files} +%{python3_sitearch}/genshi/_speedups.*.so +%exclude %{python3_sitearch}/genshi/{_speedups.c,tests} +%exclude %{python3_sitearch}/genshi/{filters,template}/tests +# COPYING file already listed in {pyproject_files} +%doc ChangeLog doc examples README.txt + + +%changelog +* Tue May 31 2022 Felix Schwarz - 0.7.7-1 +- initial package for EPEL9 + diff --git a/sources b/sources index e69de29..96e3c83 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (Genshi-0.7.7.tar.gz) = b0a3dee68523292f0672a180c5f2cfbdf48205d82286359b9fac9f668cbc2806c649d1e158d6fb8ead5b1cc5cd44eefe9d1cd79077f96925b8d24dd8e746b40f From df6117d9950449340ebdbfe0a8aea14fc28af990 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 30 Oct 2023 23:53:47 +0300 Subject: [PATCH 3/3] Remove unnecessary files --- sources | 1 - 1 file changed, 1 deletion(-) delete mode 100644 sources diff --git a/sources b/sources deleted file mode 100644 index 96e3c83..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (Genshi-0.7.7.tar.gz) = b0a3dee68523292f0672a180c5f2cfbdf48205d82286359b9fac9f668cbc2806c649d1e158d6fb8ead5b1cc5cd44eefe9d1cd79077f96925b8d24dd8e746b40f