[python-xmlbuilder] Initial commit
Fabian Affolter
fab at fedoraproject.org
Mon Oct 8 20:34:36 UTC 2012
commit 94e8c5b048e1630c1591b8721d73f50834c6e741
Author: Fabian Affolter <mail at fabian-affolter.ch>
Date: Mon Oct 8 22:33:27 2012 +0200
Initial commit
.gitignore | 1 +
python-xmlbuilder.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a9caf32 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/xmlbuilder-1.0.tar.gz
diff --git a/python-xmlbuilder.spec b/python-xmlbuilder.spec
new file mode 100644
index 0000000..84e2829
--- /dev/null
+++ b/python-xmlbuilder.spec
@@ -0,0 +1,45 @@
+%global srcname xmlbuilder
+
+Name: python-%{srcname}
+Version: 1.0
+Release: 2%{?dist}
+Summary: A python XML/(x)HTML builder
+
+Group: Applications/Engineering
+License: LGPLv3+
+URL: http://pypi.python.org/pypi/xmlbuilder
+Source0: http://pypi.python.org/packages/source/x/%{srcname}/%{srcname}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+
+%description
+XMLBuilder is a tiny library built on top of ElementTree.TreeBuilder to make
+XML files creation more pythonomic. `XMLBuilder` uses the `with` statement and
+attribute access to define the XML document structure.
+
+%prep
+%setup -q -n %{srcname}-%{version}
+sed -i -e '/^#!\//, 1d' xmlbuilder/__init__.py
+rm -rf %{srcname}.egg-info
+
+%build
+python setup.py build
+
+%install
+python setup.py install -O1 --skip-build --root=%{buildroot}
+
+%files
+%doc PKG-INFO README.txt
+%{python_sitelib}/%{srcname}/
+%{python_sitelib}/%{srcname}*.egg-info
+
+%changelog
+* Sun Oct 07 2012 Fabian Affolter <mail at fabian-affolter.ch> - 1.0-2
+- Removed upstream .egg-info
+- Changed BR
+- Updated summary and description
+
+* Sun Oct 07 2012 Fabian Affolter <mail at fabian-affolter.ch> - 1.0-1
+- Initial spec for Fedora
diff --git a/sources b/sources
index e69de29..7a9afee 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+17596b2b8596a17abc8ab56085921b67 xmlbuilder-1.0.tar.gz
More information about the scm-commits
mailing list