File python-pyp.spec of Package python-pyp

#
# spec file for package python-pyp
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 LISA GmbH, Bingen, 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/


Name:           python-pyp
Version:        2.11
Release:        0
License:        BSD-3-Clause
Summary:        Python Power At the Prompt
Url:            http://code.google.com/p/pyp/
Group:          Development/Languages/Python
Source:         https://pypi.python.org/packages/source/p/pyp/pyp-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%description
Pyp is a linux command line text manipulation tool similar to awk or sed, but
which uses standard python string and list methods as well as custom functions
evolved to generate fast results in an intense production environment. Pyed
Pyper was developed at Sony Pictures Imageworks to facilitate the construction
of complex image manipulation "one-liner" commands during visual effects work
on Alice in Wonderland, Green Lantern, and the The Amazing Spiderman.

Because pyp employs it's own internal piping syntax ("|") similar to unix
pipes, complex operations can be proceduralized by feeding the output of one
python command to the input of the next. This greatly simplifies the generation
and troubleshooting of multistep operations without the use of temporary
variables or nested parentheses. The variable "p" represents each line as a
string, while "pp" is entire input as python list.

%prep
%setup -q -n pyp-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/pyp
%{python_sitelib}/*

%changelog