File python-pylirc.spec of Package python-pylirc

%define modname     pylirc
Name:               python-%{modname}
Summary:            Python interface to LIRC
Version:            0.0.5
Release:            3
Source:             %{modname}-%{version}.tar.bz2
License:            LGPL
Group:              Development/Libraries/Python
URL:                http://pylirc.mccabe.nu/
BuildRoot:          %{_tmppath}/%{name}-buildroot
Prefix:             %{_prefix}
%{py_requires}
BuildRequires:      python-devel lirc
%if %{suse_version} > 1110
BuildRequires:      lirc-devel
%endif


%description
PyLirc is a Python module to interact with remote controls via lirc.

Authors:
--------
    Linus McCabe <pylirc.linus@mccabe.nu>

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

%build
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build

%install
rm -rf %{buildroot}
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%clean
rm -rf %{buildroot}

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

%changelog
openSUSE Build Service is sponsored by