<?xml version="1.0" ?>
<!DOCTYPE INARY SYSTEM "https://raw.githubusercontent.com/Zaryob/inary/master/inary-spec.dtd">
<INARY>
    <Source>
        <Name>mariadb-source</Name>
        <Homepage>https://mariadb.org</Homepage>
        <Packager>
            <Name>Süleyman Poyraz</Name>
            <Email>zaryob.dev@gmail.com</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <PartOf>server.database</PartOf>
        <Summary>MariaDB is a drop-in replacement for MySQL</Summary>
        <Description>It is binary code which compiled by Sulin. MariaDB strives to be the logical choice for database professionals looking for a robust, scalable, and reliable SQL server.</Description>
        <Archive sha1sum="983bb09f395b2d4f5c46ebaddd7d69cf9800e898" type="targz">https://downloads.mariadb.org/interstitial/mariadb-10.5.3/source/mariadb-10.5.3.tar.gz</Archive>
        <!--SHA1SUM alread calculated by mariadb team. you can use checksum button and you can confirm your archives it-->
        <Patches>
            <Patch>disable-failing-test.patch</Patch>
            <Patch>ppc-remove-glibc-dep.patch</Patch>
        </Patches>

        <BuildDependencies>
            <Dependency>libevent-devel</Dependency>
            <Dependency>libpcre2-devel</Dependency>
            <Dependency>libaio-devel</Dependency>
            <Dependency>unixODBC-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>mariadb-bin-lib</Name>
        <BuildFlags>
            <Flag>noDebug</Flag>
        </BuildFlags>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <Summary>The shared libraries required for MariaDB clients</Summary>
        <RuntimeDependencies>
            <Dependency>libpcre2</Dependency>
            <Dependency>libaio</Dependency>
            <Dependency>unixODBC</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-lib</Package>
        </Replaces>
        <Files>
            <Path fileType="executable">/usr/bin/mysqld_safe_helper</Path>
            <Path fileType="executable">/usr/bin/mariadbd-safe-helper</Path>
            <Path fileType="executable">/usr/bin/mariadb_config</Path>
            <Path fileType="executable">/usr/bin/mysql_config</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
            <Path fileType="data">/usr/share/user_map.conf</Path>
            <Path fileType="library">/usr/share/pam_user_map.so</Path>
            <Path fileType="library">/usr/lib/libmariadbclient.*</Path>
            <Path fileType="library">/usr/lib/libmariadb.*</Path>
            <Path fileType="library">/usr/lib/libmariadbd.*</Path>
            <Path fileType="library">/usr/lib/libmysqlclient.*</Path>
            <Path fileType="library">/usr/lib/libmysqlclient_r.*</Path>
            <Path fileType="library">/usr/lib/libmysqld.*</Path>
            <Path fileType="library">/usr/lib/libmysqlservices.*</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>mariadb-bin-client</Name>
        <BuildFlags>
            <Flag>noDebug</Flag>
        </BuildFlags>
        <IsA>app:console</IsA>
        <Summary>MariaDB client programs</Summary>
        <RuntimeDependencies>
            <Dependency version="current">mariadb-bin-lib</Dependency>
            <Dependency>libaio</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-client</Package>
        </Replaces>
        <Files>
            <Path fileType="executable">/usr/bin/mysql</Path>
            <Path fileType="executable">/usr/bin/mysqld</Path>
            <Path fileType="executable">/usr/bin/mariadb</Path>
            <Path fileType="executable">/usr/bin/mariadb-backup</Path>
            <Path fileType="executable">/usr/bin/mariadb-test-embebed</Path>
            <Path fileType="executable">/usr/bin/test-connect-t</Path>
            <Path fileType="executable">/usr/bin/mariadb-tzinfo-to-sql</Path>
            <Path fileType="executable">/usr/bin/mariadb-waitpid</Path>
            <Path fileType="executable">/usr/bin/mariadbd</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_mariabackup</Path>
            <Path fileType="executable">/usr/bin/mariadb-client-test</Path>
            <Path fileType="executable">/usr/bin/mariadb-dumpslow</Path>
            <Path fileType="executable">/usr/bin/mariadb-embedded</Path>
            <Path fileType="executable">/usr/bin/mariadb-access</Path>
            <Path fileType="executable">/usr/bin/mariadbd-safe</Path>
            <Path fileType="executable">/usr/bin/mariadb-convert-table-format</Path>
            <Path fileType="executable">/usr/bin/mariadb-import</Path>
            <Path fileType="executable">/usr/bin/mariadb-hotcopy</Path>
            <Path fileType="executable">/usr/bin/mariadb-setpermission</Path>
            <Path fileType="executable">/usr/bin/mariadb-client-test-embedded</Path>
            <Path fileType="executable">/usr/bin/garbd</Path>
            <Path fileType="executable">/usr/bin/mbstream</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_rsync_wan</Path>
            <Path fileType="executable">/usr/bin/mariadb-dump</Path>
            <Path fileType="executable">/usr/bin/mariadbd-multi</Path>
            <Path fileType="executable">/usr/bin/mariadb-secure-installation</Path>
            <Path fileType="executable">/usr/bin/mariadb-check</Path>
            <Path fileType="executable">/usr/bin/mariadb-show</Path>
            <Path fileType="executable">/usr/bin/mariadb-slap</Path>
            <Path fileType="executable">/usr/bin/mariadb-find-rows</Path>
            <Path fileType="executable">/usr/bin/mariadb-admin</Path>
            <Path fileType="executable">/usr/bin/mariadb-fix-extensions</Path>
            <Path fileType="executable">/usr/bin/mariadb-test</Path>
            <Path fileType="executable">/usr/bin/mariadb-binlog</Path>
            <Path fileType="executable">/usr/bin/mariadb-upgrade</Path>
            <Path fileType="executable">/usr/bin/mariadb-plugin</Path>
            <Path fileType="executable">/usr/bin/mysqladmin</Path>
            <Path fileType="executable">/usr/bin/mysqlcheck</Path>
            <Path fileType="executable">/usr/bin/mysqldump</Path>
            <Path fileType="executable">/usr/bin/mysqlimport</Path>
            <Path fileType="executable">/usr/bin/mysqlshow</Path>
            <Path fileType="executable">/usr/bin/mysqlslap</Path>
            <Path fileType="executable">/usr/bin/mariadb-install-db</Path>
            <Path fileType="executable">/usr/bin/mysql_install_db</Path>
            <Path fileType="executable">/usr/bin/wsrep_notify</Path>
            <Path fileType="executable">/usr/bin/mysql.server</Path>
        </Files>
    </Package>

    <Package>
        <Name>mariadb-bin-server</Name>
        <BuildFlags>
            <Flag>noDebug</Flag>
        </BuildFlags>
        <IsA>service</IsA>
        <Summary>The MariaDB server and related files</Summary>
        <RuntimeDependencies>
            <Dependency version="current">mariadb-bin-lib</Dependency>
            <Dependency version="current">mariadb-bin-client</Dependency>
            <Dependency>unixODBC</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>mysql-server</Package>
        </Replaces>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin/aria_chk</Path>
            <Path fileType="executable">/usr/bin/aria_dump_log</Path>
            <Path fileType="executable">/usr/bin/aria_ftdump</Path>
            <Path fileType="executable">/usr/bin/aria_pack</Path>
            <Path fileType="executable">/usr/bin/aria_read_log</Path>
            <Path fileType="executable">/usr/bin/innochecksum</Path>
            <Path fileType="executable">/usr/bin/msql2mysql</Path>
            <Path fileType="executable">/usr/bin/my_print_defaults</Path>
            <Path fileType="executable">/usr/bin/myisam_ftdump</Path>
            <Path fileType="executable">/usr/bin/myisamchk</Path>
            <Path fileType="executable">/usr/bin/myisamlog</Path>

            <Path fileType="executable">/usr/bin/myrocks_hotbackup</Path>
            <Path fileType="executable">/usr/bin/mariadb-ldb</Path>
            <Path fileType="executable">/usr/bin/mariadb-conv</Path>
            <Path fileType="executable">/usr/bin/sst_dump</Path>
            <Path fileType="executable">/usr/bin/mysql_ldb</Path>

            <Path fileType="executable">/usr/bin/myisampack</Path>
            <Path fileType="executable">/usr/bin/mysql_client_test</Path>
            <Path fileType="executable">/usr/bin/mysql_convert_table_format</Path>
            <Path fileType="executable">/usr/bin/mysql_embedded</Path>
            <Path fileType="executable">/usr/bin/mysql_client_test_embedded</Path>
            <Path fileType="executable">/usr/bin/mysqltest_embedded</Path>
            <Path fileType="executable">/usr/bin/mysql_find_rows</Path>
            <Path fileType="executable">/usr/bin/mysql_fix_extensions</Path>
            <Path fileType="executable">/usr/bin/mysql_plugin</Path>
            <Path fileType="executable">/usr/bin/mysql_secure_installation</Path>
            <Path fileType="executable">/usr/bin/mysql_setpermission</Path>
            <Path fileType="executable">/usr/bin/mysql_tzinfo_to_sql</Path>
            <Path fileType="executable">/usr/bin/mysql_upgrade</Path>
            <Path fileType="executable">/usr/bin/mysql_waitpid</Path>
            <Path fileType="executable">/usr/bin/mysql_zap</Path>
            <Path fileType="executable">/usr/bin/mysqlaccess</Path>
            <Path fileType="executable">/usr/bin/mysqlbinlog</Path>
            <Path fileType="executable">/usr/bin/mysqlbug</Path>
            <Path fileType="executable">/usr/bin/mysqld-post</Path>
            <Path fileType="executable">/usr/bin/mysqld_multi</Path>
            <Path fileType="executable">/usr/bin/mysqld_safe</Path>
            <Path fileType="executable">/usr/bin/mysqldumpslow</Path>
            <Path fileType="executable">/usr/bin/mysqlhotcopy</Path>
            <Path fileType="executable">/usr/bin/mysqltest</Path>
            <Path fileType="executable">/usr/bin/perror</Path>
            <Path fileType="executable">/usr/bin/replace</Path>
            <Path fileType="executable">/usr/bin/resolve_stack_dump</Path>
            <Path fileType="executable">/usr/bin/resolveip</Path>
            <Path fileType="executable">/usr/bin/tokuft_logprint</Path>
            <Path fileType="executable">/usr/bin/tokuftdump</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_common</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_mysqldump</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_rsync</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_xtrabackup</Path>
            <Path fileType="executable">/usr/bin/wsrep_sst_xtrabackup-v2</Path>
            <Path fileType="executable">/usr/bin/mariadb-test-embedded</Path>
            <Path fileType="executable">/usr/bin/mariabackup</Path>
            <Path fileType="executable">/usr/bin/mytop</Path>
            <Path fileType="data">/usr/mysql-test</Path>
            <Path fileType="data">/usr/sql-bench</Path>
            <Path fileType="library">/usr/lib/mysql/plugin</Path>
            <Path fileType="data">/usr/share/mysql</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="0755" target="/etc/init.d/mariadb">mariadb.initd</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/mariadb.conf">tmpfiles.conf</AdditionalFile>
        </AdditionalFiles>
        <IsA>postOps</IsA>
    </Package>

    <Package>
        <Name>mariadb-bin-man-pages</Name>
        <BuildFlags>
            <Flag>noDebug</Flag>
        </BuildFlags>

        <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="3">
            <Date>2020-05-18</Date>
            <Version>10.5.3</Version>
            <Comment>Package is rebuilded by our buildfarm and released up.</Comment>
            <Name>Suleyman Poyraz</Name>
            <Email>zaryob.dev@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2019-09-12</Date>
            <Version>10.4.12</Version>
            <Comment>postOps uyumluluğu</Comment>
            <Name>Süleyman Poyraz</Name>
            <Email>zaryob.dev@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2019-09-12</Date>
            <Version>10.4.8</Version>
            <Comment>First release</Comment>
            <Name>Süleyman Poyraz</Name>
            <Email>zaryob.dev@gmail.com</Email>
        </Update>
    </History>
</INARY>
