<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mariadb</Name>
        <Homepage>https://mariadb.org</Homepage>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>MariaDB is a drop-in replacement for MySQL</Summary>
        <Description>MariaDB strives to be the logical choice for database professionals looking for a robust, scalable, and reliable SQL server.</Description>
        <Archive sha1sum="e005c8dc2b2e4b0b3215f8bbb9b0b43726c7cf6a" type="targz">ftp://ftp.ulak.net.tr/pub/MariaDB/mariadb-10.0.20/source/mariadb-10.0.20.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>libevent-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libpcre-devel</Dependency>
            <Dependency>libaio-devel</Dependency>
            <Dependency>unixODBC-devel</Dependency>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
        <Patches>
        </Patches>
    </Source>

    <Package>
        <Name>mariadb-lib</Name>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <Summary>The shared libraries required for MariaDB clients</Summary>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpcre</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libaio</Dependency>
            <Dependency>unixODBC</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-lib</Package>
        </Replaces>
        <Files>
            <Path fileType="executable">/usr/bin/mysql_config</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share/mysql/charsets</Path>
            <Path fileType="data">/usr/share/mysql/czech</Path>
            <Path fileType="data">/usr/share/mysql/danish</Path>
            <Path fileType="data">/usr/share/mysql/dutch</Path>
            <Path fileType="data">/usr/share/mysql/english</Path>
            <Path fileType="data">/usr/share/mysql/estonian</Path>
            <Path fileType="data">/usr/share/mysql/french</Path>
            <Path fileType="data">/usr/share/mysql/german</Path>
            <Path fileType="data">/usr/share/mysql/greek</Path>
            <Path fileType="data">/usr/share/mysql/hungarian</Path>
            <Path fileType="data">/usr/share/mysql/italian</Path>
            <Path fileType="data">/usr/share/mysql/japanese</Path>
            <Path fileType="data">/usr/share/mysql/korean</Path>
            <Path fileType="data">/usr/share/mysql/norwegian</Path>
            <Path fileType="data">/usr/share/mysql/norwegian-ny</Path>
            <Path fileType="data">/usr/share/mysql/polish</Path>
            <Path fileType="data">/usr/share/mysql/portuguese</Path>
            <Path fileType="data">/usr/share/mysql/romanian</Path>
            <Path fileType="data">/usr/share/mysql/russian</Path>
            <Path fileType="data">/usr/share/mysql/serbian</Path>
            <Path fileType="data">/usr/share/mysql/slovak</Path>
            <Path fileType="data">/usr/share/mysql/spanish</Path>
            <Path fileType="data">/usr/share/mysql/swedish</Path>
            <Path fileType="data">/usr/share/mysql/ukrainian</Path>
            <Path fileType="data">/usr/share/mysql/errmsg.txt</Path>
            <Path fileType="data">/usr/share/mysql</Path>
        </Files>
    </Package>

    <Package>
        <Name>mariadb-client</Name>
        <IsA>app:console</IsA>
        <Summary>MariaDB client programs</Summary>
        <RuntimeDependencies>
            <Dependency version="current">mariadb-lib</Dependency>
            <Dependency>libaio</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpcre</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-client</Package>
        </Replaces>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <Package>
        <Name>mariadb-server</Name>
        <IsA>service</IsA>
        <Summary>The MariaDB server and related files</Summary>
        <RuntimeDependencies>
            <Dependency version="current">mariadb-lib</Dependency>
            <Dependency version="current">mariadb-client</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-server</Package>
        </Replaces>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="executable">/usr/bin/mysql_install_db</Path>
            <Path fileType="executable">/usr/bin/mysqlmanagerc</Path>
            <Path fileType="executable">/usr/bin/mysqlmanager-pwgen</Path>
            <Path fileType="executable">/usr/bin/mysqlmanager</Path>
            <Path fileType="executable">/usr/bin/mysql_secure_installation</Path>
            <Path fileType="executable">/usr/bin/mysql_fix_privilege_tables</Path>
            <Path fileType="executable">/usr/bin/mysqld_safe</Path>
            <Path fileType="executable">/usr/bin/myisamchk</Path>
            <Path fileType="executable">/usr/bin/myisamlog</Path>
            <Path fileType="executable">/usr/bin/myisampack</Path>
            <Path fileType="executable">/usr/bin/myisam_ftdump</Path>
            <Path fileType="executable">/usr/bin/isamchk</Path>
            <Path fileType="executable">/usr/bin/isamlog</Path>
            <Path fileType="executable">/usr/bin/mysql_waitpid</Path>
            <Path fileType="executable">/usr/bin/mysqlbinlog</Path>
            <Path fileType="executable">/usr/bin/pack_isam</Path>
            <Path fileType="data">/usr/share/mysql/binary-configure</Path>
            <Path fileType="data">/usr/share/mysql/fill_help_tables.sql</Path>
            <Path fileType="data">/usr/share/mysql/mysqld_multi.server</Path>
            <Path fileType="data">/usr/share/mysql/mysql_fix_privilege_tables.sql</Path>
            <Path fileType="data">/usr/share/mysql/mysql_system_tables_data.sql</Path>
            <Path fileType="data">/usr/share/mysql/mysql_system_tables.sql</Path>
            <Path fileType="data">/usr/share/mysql/mysql_test_data_timezone.sql</Path>
            <Path fileType="data">/usr/share/mysql/ndb-config-2-node.ini</Path>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="data">/var</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/mariadb.conf</Path>
            <Path fileType="data">/run/mysqld</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/mysql/my.cnf">my.cnf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/mariadb.conf">tmpfiles.conf</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>mariadb-man-pages</Name>
        <IsA>data</IsA>
        <Summary>Man pages for MariaDB server and client</Summary>
        <Replaces>
            <Package>mysql-man-pages</Package>
        </Replaces>
        <Files>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="9">
            <Date>2015-07-03</Date>
            <Version>10.0.20</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="8">
            <Date>2015-01-25</Date>
            <Version>10.0.17</Version>
            <Comment>Version bump.</Comment>
            <Name>Vedat Demir</Name>
            <Email>vedat@pisilinux.org</Email>
        </Update>
        <Update release="7">
            <Date>2014-09-25</Date>
            <Version>10.0.13</Version>
            <Comment>Version bump.</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="6">
            <Date>2014-09-03</Date>
            <Version>5.5.37</Version>
            <Comment>Fix package.py, first create initial db then chown.</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2014-05-25</Date>
            <Version>5.5.37</Version>
            <Comment>Rebuild.</Comment>
            <Name>Aydın Demirel</Name>
            <Email>aydin.demirel@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2014-05-19</Date>
            <Version>5.5.37</Version>
            <Comment>Version bump.</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2014-02-21</Date>
            <Version>5.5.35</Version>
            <Comment>Fix -lprobes_mysql issue</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2014-02-18</Date>
            <Version>5.5.35</Version>
            <Comment>
                     Fix package.py
                     Add tmpfiles.conf
                     Fix replacing mysql
                     Remove not needed files
                     Fix and clean actions.py
            </Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-02-11</Date>
            <Version>5.5.35</Version>
            <Comment>First release</Comment>
            <Name>Aydın Demirel</Name>
            <Email>aydin.demirel@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
