<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gcc</Name>
        <Homepage>http://gcc.gnu.org</Homepage>
        <Packager>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Packager>
        <License>GPLv3+</License>
        <License>LGPLv3+</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <Summary>The GNU Compiler Collection, includes C, C++, Objective-C and Fortran compilers</Summary>
        <Description>The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, as well as libraries for these languages</Description>
        <Archive sha1sum="6501872415823c95d48be28853ce3ebd6c1040c4" type="tarxz">https://sourceware.org/pub/gcc/releases/gcc-13.3.0/gcc-13.3.0.tar.xz</Archive>

<!--        <Archive sha1sum="31ffb4244cb469e2b4937cce1f50150300971dfb" target="gcc-13.3.0" type="tarxz">http://ftp.gnu.org/gnu/mpfr/mpfr-4.2.1.tar.xz</Archive> -->
<!--        <Archive sha1sum="bac1c1fa79f5602df1e29e4684e103ad55714e02" target="gcc-13.3.0" type="targz">http://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz</Archive> -->
<!--        <Archive sha1sum="b4043dd2964ab1a858109da85c44de224384f352" target="gcc-13.3.0" type="tarxz">mirrors://gnu/gmp/gmp-6.3.0.tar.xz</Archive> -->
<!--         <Archive sha1sum="247eecb538ff310e8fb77badd629ee32a3895a98" target="gcc-12.2.0"  type="tarxz">https://mirror.sobukus.de/files/src/isl/isl-0.25.tar.xz</Archive> -->
        <BuildDependencies>
            <Dependency versionFrom="2.40">binutils</Dependency>
            <Dependency>bison</Dependency>
            <Dependency>gettext</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>gnuconfig</Dependency>
            <Dependency>patch</Dependency>
            <Dependency>sed</Dependency>
            <Dependency>texinfo</Dependency>
            <Dependency>elfutils-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>gmp-devel</Dependency>
            <Dependency>mpfr-devel</Dependency>
            <Dependency>libmpc-devel</Dependency>
            <Dependency>isl-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!-- Pisilinux Patches -->
            <!-- Fix paths in 64bit -->
            <Patch level="1">pisilinux/64.patch</Patch>
            <Patch level="1">pisilinux/gcc_47_based-record_gcc_options.patch</Patch>
			
            <!-- Arch Linux patches -->
<!--             <Patch level="1">archlinux/fs64270.patch</Patch> -->
<!--             <Patch level="1">archlinux/ipa-fix-bit-CPP-when-combined-with-IPA-bit-CP.patch </Patch> -->
<!--             <Patch level="1">archlinux/ipa-fix-ICE-in-get_default_value.patch</Patch> -->
        </Patches>
    </Source>

    <Package>
        <Name>libquadmath</Name>
        <IsA>library</IsA>
        <PartOf>system.base</PartOf>
        <Summary>The GNU Fortran Compiler Quadmath Runtime Library</Summary>
        <Files>
            <Path fileType="library">/usr/lib/libquadmath.so*</Path>
            <Path fileType="library">/usr/lib/libquadmath.spec*</Path>
            <Path fileType="library">/usr/lib32/libquadmath.so*</Path>
            <Path fileType="library">/usr/lib32/libquadmath.spec*</Path>
            <Path fileType="info">/usr/share/info/libquadmath.info</Path>
        </Files>
    </Package>

    <Package>
        <Name>libgcc</Name>
        <IsA>library</IsA>
        <PartOf>system.base</PartOf>
        <Summary>Contains a shared library of support routines used by GCC's runtime, and thus by every program on the system</Summary>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="library">/usr/lib/libgo.so*</Path>
            <Path fileType="library">/usr/lib/libitm.so*</Path>
            <Path fileType="library">/usr/lib/libasan.so*</Path>
            <Path fileType="library">/usr/lib/liblsan.so*</Path>
            <Path fileType="library">/usr/lib/libtsan.so*</Path>
            <Path fileType="library">/usr/lib/libatomic.so*</Path>
            <Path fileType="library">/usr/lib/libgphobos.so*</Path>
            <Path fileType="library">/usr/lib/libgdruntime.so*</Path>
            
            <Path fileType="library">/usr/lib/libstdc++.so*</Path>
            <Path fileType="library">/usr/lib/libgcc_s.so*</Path>
            <Path fileType="library">/usr/lib/libubsan.so*</Path>
            
            <Path fileType="library">/usr/lib32/libgo.so*</Path>
            <Path fileType="library">/usr/lib32/libitm.so*</Path>
            <Path fileType="library">/usr/lib32/libasan.so*</Path>
            <Path fileType="library">/usr/lib32/liblsan.so*</Path>
            <Path fileType="library">/usr/lib32/libtsan.so*</Path>
            <Path fileType="library">/usr/lib32/libatomic.so*</Path>
            <Path fileType="library">/usr/lib32/libgphobos.so*</Path>
            <Path fileType="library">/usr/lib32/libgdruntime.so*</Path>
            
            <Path fileType="library">/usr/lib32/libstdc++.so*</Path>
            <Path fileType="library">/usr/lib32/libgcc_s.so*</Path>
            <Path fileType="library">/usr/lib32/libubsan.so*</Path>
            <Path fileType="library">/usr/share/gcc-*</Path>
            <Path fileType="library">/usr/share/gdb</Path>
            
            <Path fileType="localedata">/usr/share/locale/de/LC_MESSAGES/libstdc++.mo</Path>
            <Path fileType="localedata">/usr/share/locale/fr/LC_MESSAGES/libstdc++.mo</Path>
            
            <Path fileType="info">/usr/share/info/libitm.info</Path>
        </Files>
    </Package>

    <Package>
        <Name>libgomp</Name>
        <IsA>library</IsA>
        <Summary>Contains GCC shared support library which is needed for OpenMP 2.5 support</Summary>
        <Files>
            <Path fileType="library">/usr/lib/libgomp.so*</Path>
            <Path fileType="library">/usr/lib/libgomp.spec*</Path>
            <Path fileType="library">/usr/lib32/libgomp.so*</Path>
            <Path fileType="library">/usr/lib32/libgomp.spec*</Path>
            <Path fileType="info">/usr/share/info/libgomp.info</Path>
        </Files>
    </Package>

    <Package>
        <Name>libgfortran</Name>
        <IsA>library</IsA>
        <Summary>Contains GCC shared support library for gfortran</Summary>
        <RuntimeDependencies>
            <Dependency>libquadmath</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libgfortran.so*</Path>
            <Path fileType="library">/usr/lib32/libgfortran.so*</Path>
            <Path fileType="info">/usr/share/info/gfortran.info</Path>
        </Files>
    </Package>

    <Package>
        <Name>libobjc</Name>
        <IsA>library</IsA>
        <Summary>Contains GCC shared support library for objc</Summary>
        <Files>
            <Path fileType="library">/usr/lib/libobjc.so*</Path>
            <Path fileType="library">/usr/lib32/libobjc.so*</Path>
        </Files>
    </Package>

    <Package>
        <Name>gcc-l10n</Name>
        <PartOf>system.locale</PartOf>
        <Summary>Contains available GCC localization files, includes also turkish translations</Summary>
        <RuntimeDependencies>
            <Dependency>gcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="localedata">/usr/share/locale</Path>
        </Files>
    </Package>

    <Package>
        <Name>gcc</Name>
        <RuntimeDependencies>
            <Dependency>gmp</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>mpfr</Dependency>
            <Dependency>libmpc</Dependency>
            <Dependency>isl</Dependency>
            <Dependency>zstd</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="library">/usr/lib32</Path>
            <Path fileType="library">/usr/libexec</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="info">/usr/share/info</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0755" target="/usr/bin/gfilt">gfilt</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/libexec/gSTLFilt.pl">gSTLFilt.pl</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="14">
            <Date>2024-05-28</Date>
            <Version>13.3.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="13">
            <Date>2023-01-28</Date>
            <Version>12.2.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="12">
            <Date>2022-07-18</Date>
            <Version>10.3.0</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="11">
            <Date>2021-05-20</Date>
            <Version>10.3.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="10">
            <Date>2020-12-15</Date>
            <Version>10.2.1</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="9">
            <Date>2020-12-03</Date>
            <Version>10.2.1</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="8">
            <Date>2020-10-21</Date>
            <Version>10.2.0</Version>
            <Comment>Version bump</Comment>
            <Name>Idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="7">
            <Date>2020-10-01</Date>
            <Version>9.2.1</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2019-12-25</Date>
            <Version>9.2.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2018-07-15</Date>
            <Version>7.3.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2018-04-14</Date>
            <Version>6.3.0</Version>
            <Comment>Rebuild.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-02</Date>
            <Version>6.3.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-26</Date>
            <Version>5.3.0</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-20</Date>
            <Version>5.3.0</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
