commit 6f4a69b6bf6a0d958baf0f22144e04e794db34a44f7c48c1efd6560777605b67 Author: Todd R Date: Fri Apr 14 23:04:43 2017 +0000 - Initial version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cogapp?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cogapp-2.5.1.tar.gz b/cogapp-2.5.1.tar.gz new file mode 100644 index 0000000..3b32957 --- /dev/null +++ b/cogapp-2.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8cf2288fb5a2087eb4a00d8b347ddc86e9058d4ab26b8c868433eb401adfe1c +size 22226 diff --git a/python-cogapp.changes b/python-cogapp.changes new file mode 100644 index 0000000..22974ae --- /dev/null +++ b/python-cogapp.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Apr 14 22:54:18 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-cogapp.spec b/python-cogapp.spec new file mode 100644 index 0000000..ec30186 --- /dev/null +++ b/python-cogapp.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-cogapp +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test +Name: python-cogapp +Version: 2.5.1 +Release: 0 +Summary: A code generator for executing Python snippets in source files +License: MIT +Group: Development/Languages/Python +Url: http://nedbatchelder.com/code/cog +Source: https://files.pythonhosted.org/packages/source/c/cogapp/cogapp-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%if %{with test} +BuildRequires: %{python_module nose} +%endif +BuildRequires: python-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +Requires(post): update-alternatives +Requires(preun): update-alternatives + +%python_subpackages + +%description +Cog is a file generation tool. It lets you use pieces of Python code +as generators in your source files to generate whatever text you +need. + +%prep +%setup -q -n cogapp-%{version} + +%build +%python_build + +%install +%python_install +mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog +%python_clone -a %{buildroot}%{_bindir}/cog + +%if %{with test} +%check +%python_expand nosetests-%{$python_bin_suffix} +%endif + +%post +%python_install_alternative cog + +%preun +%python_uninstall_alternative cog + +%files %{python_files} +%defattr(-,root,root,-) +%doc LICENSE.txt README.txt +%python_alternative %{_bindir}/cog +%{python_sitelib}/* + +%changelog