From 978a9dd3b859209582e5c02286e507bccdbdad35 Mon Sep 17 00:00:00 2001 From: Lukas Bezdicka Date: Aug 26 2015 16:08:32 +0000 Subject: Initial release 0.4 --- diff --git a/.gitignore b/.gitignore index e69de29..92bf60b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/python-editor-0.4.tar.gz diff --git a/python-editor.spec b/python-editor.spec new file mode 100644 index 0000000..203cc8b --- /dev/null +++ b/python-editor.spec @@ -0,0 +1,80 @@ +%global pypi_name python-editor + +%if 0%{?fedora} +%global with_python3 1 +%endif + +%{!?upstream_version: %global upstream_version %{version}%{?milestone}} + +Name: python-editor +Version: 0.4 +Release: 1%{?dist} +Summary: Programmatically open an editor, capture the result. + +License: ASL 2.0 +URL: https://github.com/fmoo/python-editor +Source: https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python-setuptools + +%description +An python module which provides a convenient example. + + +%if 0%{with_python3} +%package -n python3-editor +Summary: Programmatically open an editor, capture the result. +BuildRequires: python3-devel + +%{?python_provide:%python_provide python3-editor} + +%description -n python3-editor +An python module which provides a convenient example. +%endif + +%prep +%setup -q -n %{pypi_name}-%{upstream_version} +rm -rf %{pypi_name}.egg-info + +%build +%{__python2} setup.py build +%if 0%{with_python3} +%{__python3} setup.py build +%endif + +%install +%{__python2} setup.py install --skip-build --root=$RPM_BUILD_ROOT +chmod a+x $RPM_BUILD_ROOT%{python2_sitelib}/editor.py + +%if 0%{with_python3} +%{__python3} setup.py install --skip-build --root=$RPM_BUILD_ROOT +chmod a+x $RPM_BUILD_ROOT%{python3_sitelib}/editor.py +%endif + +%check + +%files +%doc README.md +%license LICENSE +%{python2_sitelib}/editor.py* +%{python2_sitelib}/python_editor-%{version}-py?.?.egg-info + +%if 0%{with_python3} +%files -n python3-editor +%doc README.md +%license LICENSE +%{python3_sitelib}/*.egg-info +%{python3_sitelib}/editor.py* +%{python3_sitelib}/__pycache__/* +%endif + + +%changelog +* Wed Aug 26 2015 Lukas Bezdicka - 0.4-1 +- Bump to 0.4 + +* Tue Aug 25 2015 Lukas Bezdicka - 0.3-1 +- initial package diff --git a/sources b/sources index e69de29..2b48c27 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +30de680ec944d073e0c3f18b44d5aa15 python-editor-0.4.tar.gz