File python-googletranslate.spec of Package python-googletranslate
%define modname googletranslate
Name: python-%{modname}
Version: 0.1
Release: 1
Summary: Python class and script for translating text using Google(r) API
URL: http://www.opensuse.org
License: BSD2c
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires: python-setuptools
%if %suse_version > 1120
BuildArch: noarch
%endif
%description
A Python class and script to use Google(r)'s Ajax API to convert text from a
specified or unspecified (i.e. Google(r) auto identifies the language) into a
destination language. Accepts input from stdin or from a specified input file.
Output is either stdout or a specified output file
Authors:
--------
Ciaran Farrell <cfarrell1980@gmail.com>
%prep
%setup -q -n %{modname}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --single-version-externally-managed --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc LICENSE.txt PKG-INFO
%changelog
* Fri Sep 24 2010 - Ciaran Farrell <cfarrell1980@gmail.com> - 0.1
- Initial release