<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lirc</Name>
        <Homepage>http://www.lirc.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <IsA>service</IsA>
        <Summary>Linux Infrared Remote Control system</Summary>
        <Description>lirc is a package that allows you to decode and send infra-red signals of many (but not all) commonly used remote controls.</Description>
        <Archive sha1sum="8456bf7101d4f2d31d61c5073357a4981b458581" type="tarbz2">http://sourceforge.net/projects/lirc/files/LIRC/0.9.0/lirc-0.9.0.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>libftdi-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">devicenode.patch</Patch>
            <Patch level="1">cflags.patch</Patch>
            <!-- FIXME: this summons bug 8693 -->
            <Patch level="1">nogpio.patch</Patch>
            <!-- use fixed instead of courier font -->
            <Patch level="1">xmode2_defaultfont.patch</Patch>
            <Patch level="1">lirc-0.9.0-libusb-config-is-no-more.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>lirc</Name>
        <RuntimeDependencies>
            <Dependency>alsa-lib</Dependency>
            <Dependency>libusb-compat</Dependency>
            <Dependency>libX11</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/lib/udev/rules.d</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/run</Path>
            <Path fileType="data">/lib/systemd/system</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/lirc">lirc.conf.d</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/lib/systemd/system/lirc.service">lirc.service</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/lib/systemd/system/lircmd.service">lircmd.service</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>lirc-devel</Name>
        <Summary>Development files for lirc</Summary>
        <RuntimeDependencies>
            <Dependency release="current">lirc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2014-05-25</Date>
            <Version>0.9.0</Version>
            <Comment>Rebuild for libftdi</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvarice@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2012-10-01</Date>
            <Version>0.9.0</Version>
            <Comment>First release</Comment>
            <Name>Erdem Artan</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
