[python-atomicwrites] Initial import (#1197346)

Michele Baldessari mbaldessari at fedoraproject.org
Mon Mar 2 19:48:06 UTC 2015


commit b09aa19ef871c6906840f434c7bd7d885906044a
Author: Michele Baldessari <michele at acksyn.org>
Date:   Mon Mar 2 20:47:58 2015 +0100

    Initial import (#1197346)

 .gitignore               |   1 +
 python-atomicwrites.spec | 125 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |   1 +
 3 files changed, 127 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8fef18b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-atomicwrites-0.1.4.tar.gz
diff --git a/python-atomicwrites.spec b/python-atomicwrites.spec
new file mode 100644
index 0000000..aa71531
--- /dev/null
+++ b/python-atomicwrites.spec
@@ -0,0 +1,125 @@
+%if 0%{?fedora}
+%bcond_without python3
+%else
+%bcond_with python3
+%endif
+Name:       python-atomicwrites
+Version:    0.1.4
+Release:    4%{?git_tag}%{?dist}
+Summary:    Python Atomic file writes on POSIX 
+
+License:    MIT
+URL:        https://github.com/untitaker/%{name}
+Source0:    https://github.com/untitaker/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+
+BuildArch:  noarch
+
+BuildRequires:  python-devel
+%global short_name atomicwrites
+
+BuildRequires:  python-setuptools
+BuildRequires:  python-sphinx
+BuildRequires:  python-tox
+%if %{with python3}
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  python3-sphinx
+# No python3-tox exists yet
+%endif
+
+
+%description
+This Python module provides atomic file writes on POSIX operating systems.
+It sports:
+* Race-free assertion that the target file doesn't yet exist
+* Windows support
+* Simple high-level API that wraps a very flexible class-based API
+
+%if %{with python3}
+%package -n python3-%{short_name}
+Summary:    Python Atomic file writes on POSIX 
+
+%description -n python3-%{short_name}
+This Python module provides atomic file writes on POSIX operating systems.
+It sports:
+* Race-free assertion that the target file doesn't yet exist
+* Windows support
+* Simple high-level API that wraps a very flexible class-based API
+%endif
+
+%prep
+%setup -q
+
+%if %{with python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+%build
+%{__python} setup.py --quiet build
+export PYTHONPATH=`pwd`
+cd docs
+make %{?_smp_mflags} man
+cd ..
+unset PYTHONPATH
+
+%if %{with python3}
+pushd %{py3dir}
+%{__python3} setup.py --quiet build
+export PYTHONPATH=`pwd`
+cd docs
+make %{?_smp_mflags} SPHINXBUILD=sphinx-build-3 man
+cd ..
+unset PYTHONPATH
+popd
+%endif
+
+
+%install
+%{__python} setup.py --quiet install -O1 --skip-build --root $RPM_BUILD_ROOT
+install -d "$RPM_BUILD_ROOT%{_mandir}/man1"
+cp -r docs/_build/man/*.1 "$RPM_BUILD_ROOT%{_mandir}/man1"
+
+%if %{with python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
+popd
+%endif
+
+%check
+%{__python} run-tests.py
+
+# needs python3-tox bz #1010767
+#if {with python3}
+#{__python3} run-tests.py
+#endif
+
+%files
+%doc LICENSE README.rst
+%{python_sitelib}/*
+%{_mandir}/man1/atomicwrites.1.*
+
+%if %{with python3}
+%files -n python3-%{short_name}
+%doc README.rst LICENSE
+%{python3_sitelib}/*
+%endif
+
+%changelog
+* Sun Mar 01 2015 Michele Baldessari <michele at redhat.com> - 0.1.4-4
+- Move it to python 3
+
+* Sat Feb 28 2015 Michele Baldessari <michele at redhat.com> - 0.1.4-3
+- Fix check section and add python-tox as BR
+
+* Sat Feb 28 2015 Michele Baldessari <michele at redhat.com> - 0.1.4-2
+- Improve description
+
+* Mon Feb 23 2015 Michele Baldessari <michele at redhat.com> - 0.1.4-1
+- New upstream
+
+* Wed Feb 04 2015 Michele Baldessari <michele at redhat.com> - 0.1.1-3
+- Add python-sphinx BR
+
+* Wed Oct 01 2014 Michele Baldessari <michele at redhat.com> - 0.1.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..9be0ba8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+eefcd25f99ae784f93e0b4cba8a81719  python-atomicwrites-0.1.4.tar.gz


More information about the scm-commits mailing list