diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c88c730 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pycson-0.7.tar.gz diff --git a/python-cson.spec b/python-cson.spec new file mode 100644 index 0000000..ad8abc5 --- /dev/null +++ b/python-cson.spec @@ -0,0 +1,71 @@ +%global py2support 0 +%global srcname cson + +Name: python-%{srcname} +Version: 0.7 +Release: 2%{?dist} +Summary: A Coffescript Object Notation (CSON) parser for Python 2 and Python 3 +License: MIT +URL: https://github.com/avakar/pycson +Source0: https://github.com/avakar/pycson/archive/%{version}/pycson-%{version}.tar.gz +BuildArch: noarch + +%description +A python parser for the Coffeescript Object Notation (CSON). + +%if %{py2support} +%package -n python2-%{srcname} +Summary: %{summary} +BuildRequires: python2-devel, python2-speg +Requires: python2-speg +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +A python parser for the Coffeescript Object Notation (CSON). +%endif + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel, python3-speg +Requires: python3-speg +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +A python parser for the Coffeescript Object Notation (CSON). + +%prep +%autosetup -n pycson-%{version} + +%build +%if %{py2support} +%py2_build +%endif +%py3_build + +%install +%if %{py2support} +%py2_install +%endif +%py3_install + +# Note that there is no %%files section for the unversioned python module +%if %{py2support} +%files -n python2-%{srcname} +%license LICENSE +%doc README.md +%{python2_sitelib}/%{srcname}-*.egg-info/ +%{python2_sitelib}/%{srcname}/ +%endif + +%files -n python3-%{srcname} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{srcname}/ + +%changelog +* Wed Jan 2 2019 Tom Callaway - 0.7-2 +- fix Source0 + +* Wed Jan 2 2019 Tom Callaway - 0.7-1 +- new package diff --git a/sources b/sources new file mode 100644 index 0000000..bdd6c03 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pycson-0.7.tar.gz) = e8a48afbdd48d4250891d449c80f99bfc668e128a2784c1b951acd7e217cb66f6e527a7d417be3c5362930d426fc189cd3d0a7f4b2e41df351d2347f44d0e206