<?xml version="1.0" ?>
<!DOCTYPE INARY SYSTEM "https://raw.githubusercontent.com/Zaryob/inary/master/inary-spec.dtd">
<INARY>
    <Source>
        <Name>bluez</Name>
        <Homepage>http://bluez.sourceforge.net</Homepage>
        <Packager>
            <Name>Süleyman Poyraz</Name>
            <Email>zaryob.dev@gmail.com</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>service</IsA>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        <Summary>Official Linux Bluetooth protocol stack</Summary>
        <Description>bluez contains the tools and libraries that provides support for the core Bluetooth layers and protocols.</Description>
        <Archive sha1sum="d958fa2fe8aa4b592e8a967f73b8379a8102339c" type="tarxz">https://www.kernel.org/pub/linux/bluetooth/bluez-5.51.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>cups-devel</Dependency>
            <Dependency>libnl-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>gstreamer-devel</Dependency>
            <Dependency>libsndfile-devel</Dependency>
            <!--Dependency>gst-plugins-base-devel</Dependency-->
            <Dependency>libical-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>bluez</Name>
        <RuntimeDependencies>
            <Dependency>libical</Dependency>
            <Dependency release="current">bluez-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/lib/udev/rules.d</Path>
            <Path fileType="data">/lib/systemd/system</Path>
            <Path fileType="data">/usr/share/misc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="executable">/lib/udev</Path>
            <Path fileType="executable">/lib/bluetooth/obexd</Path>
            <Path fileType="executable">/lib/bluetooth/bluetoothd</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/libexec</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/var/lib/bluetooth</Path>
            <Path fileType="data">/usr/share/alsa/bluetooth.conf</Path>
            <Path fileType="data">/usr/share/zsh/site-functions/_bluetoothctl</Path>
            <Path fileType="data">/usr/share/dbus-1</Path>
            <Path fileType="config">/etc</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0755" target="/etc/init.d/bluetooth">bluetooth.initd</AdditionalFile>
            <AdditionalFile owner="root" permission="0755" target="/etc/init.d/rfcomm">rfcomm.initd</AdditionalFile>
        </AdditionalFiles>

        <Provides>
            <SCOM script="service.py">System.Service</SCOM>
        </Provides>
    </Package>

    <Package>
        <Name>bluez-libs</Name>
        <Summary>Libraries for use in Bluetooth applications</Summary>
        <RuntimeDependencies>
            <Dependency>libical</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libbluetooth.so*</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>bluez-libs-devel</Name>
        <Summary>Development files for bluez-libs</Summary>
        <RuntimeDependencies>
            <Dependency release="current">bluez-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/bluetooth</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
        <Provides>
        </Provides>
    </Package>

    <History>
        <Update release="1">
            <Date>2019-09-27</Date>
            <Version>5.51</Version>
            <Comment>First release</Comment>
            <Name>Süleyman Poyraz</Name>
            <Email>zaryob.dev@gmail.com</Email>
        </Update>
    </History>
</INARY>
