File pypastebin.spec of Package pypastebin

#
# spec file for package pypastebin
#
# Copyright (c) 2012 SUSE LINUX Products 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/
#


Name:           pypastebin
Version:        0.2.0
Release:        0
Summary:        Command-Line Frontend for Pastebin Servers
License:        GNU General Public License version 3 GPLv3
Group:          Productivity/Networking/Web/Utilities
Source:         http://pypastebin.googlecode.com/files/pypastebin-%{version}.tar.gz
Url:            http://code.google.com/p/pypastebin
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# BuildArch:		noarch
BuildRequires:  python
BuildRequires:  python-devel
Requires:       python

%description
Using this application, one can simply send command output or file content to paste it on a pastebin service.

Features:
* Send a command output to paste it 
* Send a file to paste it 
* Set the nickname, description, language to use (on the paste service) 
* Show the command output in the shell 
* Receive ONLY the URL generated by the paste service 

%prep
%setup -q
%__mv pypastebin.py pypastebin
#Fix exec bit
%__chmod +x lib/ClientForm/setup.py

%build
%__python ./setup.py build

%install
%__python ./setup.py install --prefix="%{_prefix}" --root="%{buildroot}" \
			 --record-rpm=files.lst
%clean
%__rm -rf "%{buildroot}"

%files -f files.lst
%defattr(-,root,root)
%doc README.txt CHANGELOG.txt LICENSE.txt

# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:

%changelog
openSUSE Build Service is sponsored by