<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>flatpak</Name>
        <Homepage>http://flatpak.org</Homepage>
        <Packager>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Packager>
        <License>LGPLv2</License>
        <Summary>Application distribution framework</Summary>
        <Description>Linux application sandboxing and distribution framework, formerly xdg-app</Description>
        <Archive sha1sum="15f8ba295012bb0b0b109e9b07e46fa722e0d2f8" type="tarxz">https://github.com/flatpak/flatpak/releases/download/1.0.4/flatpak-1.0.4.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>util-linux</Dependency>
            <Dependency>gtk-doc</Dependency>
            <Dependency>libcap-devel</Dependency>
            <Dependency>bubblewrap</Dependency>
            <Dependency>polkit-devel</Dependency>
            <Dependency>libseccomp-devel</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>json-glib-devel</Dependency>
            <Dependency>appstream-glib-devel</Dependency>
            <Dependency>docbook-xsl</Dependency>
            <Dependency>python-six</Dependency>
            <Dependency versionFrom="2018.8">ostree-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!--Patch level="1">bubblewrap_libglnx_submodule.patch</Patch-->
            <!--Patch>flatpak-1.0.2-var_symlink_fix.diff</Patch-->
        </Patches>
    </Source>

    <Package>
        <Name>flatpak</Name>
        <RuntimeDependencies>
            <Dependency>xorg-app</Dependency>
            <Dependency>bubblewrap</Dependency>
            <Dependency>fuse</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>gpgme</Dependency>
            <Dependency>libXau</Dependency> 
            <Dependency>libxml2</Dependency>
            <Dependency>libsoup</Dependency>
            <Dependency>json-glib</Dependency>
            <Dependency>libarchive</Dependency>
            <Dependency>libseccomp</Dependency>
            <Dependency>ostree</Dependency>
            <Dependency>polkit</Dependency>
            <Dependency>appstream-glib</Dependency>   
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="config">/etc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="library">/usr/libexec</Path>
            <Path fileType="library">/usr/share/gir-1.0</Path>
            <Path fileType="data">/usr/share/bash-completion</Path>
            <Path fileType="data">/usr/share/dbus-1</Path>
            <Path fileType="data">/usr/share/polkit-1</Path>
            <Path fileType="data">/usr/share/flatpak</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="locale">/usr/share/locale</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
            <Path fileType="data">/usr/share/gdm</Path>
            <Path fileType="doc">/usr/share/zsh</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/profile.d/flatpak-bindir.sh" permission="0644" owner="root">flatpak-bindir.sh</AdditionalFile>
            <AdditionalFile target="/usr/share/flatpak/flathub.flatpakrepo" permission="0644" owner="root">flathub.flatpakrepo</AdditionalFile>
        </AdditionalFiles>
    </Package>
    
    <Package>
        <Name>flatpak-devel</Name>
        <Summary>Development files for flatpak</Summary>
        <RuntimeDependencies>
            <Dependency release="current">flatpak</Dependency>
            <Dependency>fuse-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>gpgme-devel</Dependency>
            <Dependency>libXau-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>libsoup-devel</Dependency>
            <Dependency>json-glib-devel</Dependency>
            <Dependency>libarchive-devel</Dependency>
            <Dependency>libseccomp-devel</Dependency>
            <Dependency>ostree-devel</Dependency>
            <Dependency>polkit-devel</Dependency>
            <Dependency>appstream-glib-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="5">
            <Date>2018-10-13</Date>
            <Version>1.0.4</Version>
            <Comment>Version bump</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2018-08-23</Date>
            <Version>1.0.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2018-07-08</Date>
            <Version>0.11.7</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2018-02-16</Date>
            <Version>0.11.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2018-02-03</Date>
            <Version>0.10.3</Version>
            <Comment>First release.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
