churchyard pushed to python-cligj (f21). "Initial import (#1203700)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue May 5 16:53:44 UTC 2015


>From 3b8e54bcc5e054fa491bfadb15516b3e9fa3c998 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro at hroncok.cz>
Date: Tue, 5 May 2015 17:51:02 +0200
Subject: Initial import (#1203700)


diff --git a/.gitignore b/.gitignore
index e69de29..3aa8a5d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cligj-0.1.0.tar.gz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..effb945
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,27 @@
+Copyright (c) 2014, Mapbox
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+  list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+
+* Neither the name of cligj nor the names of its
+  contributors may be used to endorse or promote products derived from
+  this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/python-cligj.spec b/python-cligj.spec
new file mode 100644
index 0000000..ce01fb8
--- /dev/null
+++ b/python-cligj.spec
@@ -0,0 +1,79 @@
+%global pypi_name cligj
+Name:           python-%{pypi_name}
+Version:        0.1.0
+Release:        1%{?dist}
+Summary:        Click params for GeoJSON CLI (Python 2)
+License:        MIT
+URL:            https://github.com/mapbox/cligj
+Source0:        https://pypi.python.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+Source1:        https://raw.githubusercontent.com/mapbox/%{pypi_name}/%{version}/LICENSE
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+
+Requires:       python-click >= 3.0
+
+%description
+Common arguments and options for GeoJSON processing commands, using Click.
+Python 2 version.
+
+%package -n     python3-%{pypi_name}
+Summary:        Click params for GeoJSON CLI (Python 3)
+
+Requires:       python3-click >= 3.0
+
+%description -n python3-%{pypi_name}
+Common arguments and options for GeoJSON processing commands, using Click.
+Python 3 version.
+
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+cp %{SOURCE1} .
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+# README is executable
+chmod -x README.rst
+
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+
+
+%build
+%{__python2} setup.py build
+
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+
+
+%files
+%license LICENSE
+%doc README.rst
+%{python2_sitelib}/%{pypi_name}
+%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%files -n python3-%{pypi_name}
+%license LICENSE
+%doc README.rst
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+
+%changelog
+* Thu Mar 19 2015 Miro HronĨok <mhroncok at redhat.com> - 0.1.0-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..0537aac 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5b3eb7905aab81418cc3fd4accf57d5f  cligj-0.1.0.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-cligj.git/commit/?h=f21&id=3b8e54bcc5e054fa491bfadb15516b3e9fa3c998


More information about the scm-commits mailing list