File python-xpybutil.spec of Package python-xpybutil
#
# spec file for package python-xpybutil
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 Hillwood Yang <hillwood@opensuse.org>
#
# 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/
#
%define suname xpybutil
Name: python-%{suname}
Summary: Advanced SubStation Alpha subtitle files
License: WTFPL-2.0
Group: Applications/Multimedia
Version: 0.0.1
Release: 0
Url: https://github.com/BurntSushi/xpybutil
Source0: %{suname}-%{version}.tar.bz2
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-xpyb
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{py_requires}
%description
A library for parsing and manipulating Advanced SubStation Alpha subtitle files.
%prep
%setup -q -n %{suname}-%{version}
%build
%install
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
rm -rf %{buildroot}%{_datadir}/doc
%files
%defattr(-,root,root)
%doc COPYING README
%{python_sitelib}/%{suname}-%{version}-py2.7.egg-info
%{python_sitelib}/%{suname}
%changelog