File python-yenc.spec of Package python-yenc

# norootforbuild

Name:           python-yenc
%define         _name yenc
Summary:        Python wrapper module around a yenc coding library
Version:        0.3
Release:        1

#http://sabnzbd.sourceforge.net/yenc-0.3.tar.gz
Source0:        yenc-%{version}.tar.lzma
Patch0:         signed-int-and-open.patch
License:        Python License
Group:          Development/Libraries/Python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://sabnzbd.sourceforge.net/
Provides:       yenc
BuildRequires:  python-devel xz
%py_requires -d

%description
Provides a simple API for doing raw encoding/decoding of yencoded binaries, a
system which is popular in some circles, most notably usenet.


%prep
%setup -q -n %{_name}-%{version}
%patch0

%build
CFLAGS="%{optflags}" %{__python} setup.py build

%install
%{__python} setup.py install "--prefix=%{_prefix}" "--root=%{buildroot}" --record-rpm=INSTALLED_FILES

%clean
%{__rm} -rf "%{buildroot}"

%files -f INSTALLED_FILES
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by