<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>bluez</Name>
        <Homepage>http://bluez.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</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="f8417a97b259c35d1e058836bb17bbc4d9605ec7" type="tarxz">https://www.kernel.org/pub/linux/bluetooth/bluez-5.49.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>cups-devel</Dependency>
            <Dependency>dbus-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>
            <Dependency>glib2-devel</Dependency>
            <Dependency>eudev-devel</Dependency>
            <Dependency>readline-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">0001-Allow-using-obexd-without-systemd-in-the-user-session.patch</Patch>
            <Patch level="1">refresh_adv_manager_for_non-LE_devices.diff</Patch>
            <Patch level="1">gatt_fix_crash.diff</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>bluez</Name>
        <RuntimeDependencies>
            <Dependency>dbus</Dependency>
            <Dependency>eudev</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>readline</Dependency>
            <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/dbus-1</Path>
            <Path fileType="config">/etc</Path>
        </Files>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </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="6">
            <Date>2018-05-07</Date>
            <Version>5.49</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2018-04-23</Date>
            <Version>5.49</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2017-12-26</Date>
            <Version>5.43</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-02-17</Date>
            <Version>5.43</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>5.33</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-16</Date>
            <Version>5.33</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
