<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libdrm</Name>
        <Homepage>http://dri.freedesktop.org/libdrm/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>library</IsA>
        <Summary>Userspace interface to kernel DRM services</Summary>
        <Description>libdrm is a library providing the userspace interface to kernel DRM services.</Description>
        <Archive sha1sum="aad04c8e35cd3ab589ff085b20f75ba43e086647" type="tarbz2">https://dri.freedesktop.org/libdrm/libdrm-2.4.92.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency versionFrom="0.13.5">libpciaccess-devel</Dependency>
            <Dependency>util-macros</Dependency>
            <Dependency>libxslt-devel</Dependency>
            <Dependency>docbook-xsl</Dependency>
            <Dependency>valgrind</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libdrm</Name>
        <RuntimeDependencies>
            <Dependency versionFrom="0.13.5">libpciaccess</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="library">/usr/lib/libdrm.*</Path>
            <Path fileType="data">/lib/udev/rules.d</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/libdrm</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/lib/udev/rules.d/91-drm-modeset.rules">91-drm-modeset.rules</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>libdrm-intel</Name>
        <Summary>Userspace interface to kernel DRM services for intel</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libdrm</Dependency>
            <Dependency>libpciaccess</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libdrm_intel.*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libdrm-nouveau</Name>
        <Summary>Userspace interface to kernel DRM services for nouveau</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libdrm</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libdrm_nouveau.*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libdrm-radeon</Name>
        <Summary>Userspace interface to kernel DRM services for radeon</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libdrm</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libdrm_radeon.*</Path>
        </Files>
    </Package>
    
    <Package>
        <Name>libdrm-amd</Name>
        <Summary>Userspace interface to kernel DRM services for amdgpu</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libdrm</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libdrm_amdgpu.*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libkms</Name>
        <Summary>Userspace library for kernel mode setting</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libdrm</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libkms.*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libdrm-devel</Name>
        <Summary>Development files for libdrm</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libdrm</Dependency>
            <Dependency release="current">libdrm-intel</Dependency>
            <Dependency release="current">libdrm-nouveau</Dependency>
            <Dependency release="current">libdrm-radeon</Dependency>
            <Dependency release="current">libdrm-amd</Dependency>
            <Dependency release="current">libkms</Dependency>
            <!--Dependency>mesa-devel</Dependency--><!--circle dep-->
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib32/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>libdrm-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for libdrm</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            
            <Dependency versionFrom="0.13.4">libpciaccess-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">libdrm</Dependency>
            
            <Dependency versionFrom="0.13.4">libpciaccess-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32/libdrm.*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libdrm-intel-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for libdrm-intel</Summary>
        <BuildType>emul32</BuildType>
        <RuntimeDependencies>
            <Dependency release="current">libdrm-intel</Dependency>
            <Dependency release="current">libdrm-32bit</Dependency>
            <Dependency>libpciaccess-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32/libdrm_intel.*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libdrm-nouveau-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for libdrm-nouveau</Summary>
        <BuildType>emul32</BuildType>
        <RuntimeDependencies>
            <Dependency release="current">libdrm-nouveau</Dependency>
            <Dependency release="current">libdrm-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32/libdrm_nouveau.*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libdrm-radeon-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for libdrm-radeon</Summary>
        <BuildType>emul32</BuildType>
        <RuntimeDependencies>
            <Dependency release="current">libdrm-radeon</Dependency>
            <Dependency release="current">libdrm-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32/libdrm_radeon.*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libdrm-amd-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for libdrm-amdgpu</Summary>
        <BuildType>emul32</BuildType>
        <RuntimeDependencies>
            <Dependency release="current">libdrm-amd</Dependency>
            <Dependency release="current">libdrm-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32/libdrm_amdgpu.*</Path>
        </Files>
    </Package>
    
    <Package>
        <Name>libkms-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for libkms</Summary>
        <BuildType>emul32</BuildType>
        <RuntimeDependencies>
            <Dependency release="current">libkms</Dependency>
            <Dependency release="current">libdrm-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32/libkms.*</Path>
        </Files>
    </Package>

    <History>
        <Update release="7">
            <Date>2018-07-25</Date>
            <Version>2.4.92</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2018-02-16</Date>
            <Version>2.4.89</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2017-09-09</Date>
            <Version>2.4.83</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2017-01-29</Date>
            <Version>2.4.75</Version>
            <Comment>Version bump.</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-11-02</Date>
            <Version>2.4.71</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-30</Date>
            <Version>2.4.67</Version>
            <Comment>Release bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-27</Date>
            <Version>2.4.67</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
