<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python</Name>
        <Homepage>https://www.python.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>PSF-2.2</License>
        <IsA>app:console</IsA>
        <Summary>An interpreted, interactive, object-orientated programming language</Summary>
        <Description>Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days.</Description>
        <Archive sha1sum="678d4cf483a1c92efd347ee8e1e79326dc82810b" type="tarxz">https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz</Archive>
<!--		<Archive sha1sum="bf7badf7e248e0ecf465d33c2f5aeec774209227" type="targz" target="Python-2.7.18">https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz</Archive>
		<Archive sha1sum="b213a293f2127ec3e323fb3cfc0c9807664fd997" type="targz" target="Python-2.7.18">https://www.openssl.org/source/openssl-1.1.1g.tar.gz</Archive>-->
        <BuildDependencies>
            <Dependency>bzip2</Dependency>
            <!--<Dependency>tcl-devel</Dependency>-->
            <Dependency>gdbm-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>expat-devel</Dependency>
            <!--<Dependency>tcltk-devel</Dependency>-->
            <Dependency>libffi-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <!-- Bootstrap -->
            <!-- Comment these deps when bootstrapping -->
        </BuildDependencies>
        <Patches>
            <Patch>pisilinux_platform.patch</Patch>
            <!-- Look into /usr/lib/pisi-linux first -->
            <Patch>add-pisilinux-to-search-path.patch</Patch>
            <!-- Use UTF-8 by default -->
            <Patch>default-utf8.patch</Patch>
            <!-- Disable egginfo -->
            <Patch level="1">disable-egginfo.patch</Patch>
            <!-- some Turkish locale fixes, usually caused by tolower() -->
            <Patch level="1">trfix_emaillib.patch</Patch>
			<Patch level="1">allowZip64.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>python</Name>
        <RuntimeDependencies>
            <Dependency>gdbm</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>expat</Dependency>
            <Dependency>libffi</Dependency>
            <Dependency>sqlite</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>readline</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <!-- "Makefile" and the config-32/64.h file are needed by
            distutils/sysconfig.py:_init_posix(), so we include them in the core
            package, along with their parent directories (https://bugzilla.redhat.com/show_bug.cgi?id=531901)
            -->
            <Path fileType="header">/usr/include/python2.7/pyconfig.h</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0755" target="/etc/pythonstart">pythonstart</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/env.d/04python">04python</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <!--COMAR script="package.py">System.Package</COMAR-->
            <COMAR script="pakhandler.py">System.PackageHandler</COMAR>
        </Provides>
        <BuildFlags>
            <Flag>noDelta</Flag>
        </BuildFlags>
    </Package>

    <Package>
        <Name>python-devel</Name>
        <PartOf>system.devel</PartOf>
        <Summary>Development files for python</Summary>
        <RuntimeDependencies>
            <Dependency release="current">python</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <!-- Bootstrap -->
    <!-- Comment these packages (python-tk and idle) when bootstrapping 
    <Package>
        <Name>python-tk</Name>
        <IsA>library</IsA>
        <PartOf>programming.language.python</PartOf>
        <Summary>Python modules for Tk</Summary>
        <RuntimeDependencies>
            <Dependency>tcl</Dependency>
            <Dependency>tcltk</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/python*/lib-tk</Path>
            <Path fileType="library">/usr/lib/python*/lib-dynload/_tkinter.so</Path>
        </Files>
    </Package>-->

    <!-- Bootstrap -->
    <!-- Comment these packages (python-tk and idle) when bootstrapping -->
    <!--<Package>
        <Name>idle</Name>
        <Icon>idle</Icon>
        <IsA>app:gui</IsA>
        <PartOf>programming.environment</PartOf>
        <Summary>An Integrated Development Environment for Python</Summary>
        <RuntimeDependencies>
            <Dependency>python-tk</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/idle</Path>
            <Path fileType="library">/usr/lib/python*/idlelib</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile permission="0644" target="/usr/share/pixmaps/idle.png">python-logo.png</AdditionalFile>
            <AdditionalFile permission="0644" target="/usr/share/applications/idle.desktop">idle.desktop</AdditionalFile>
        </AdditionalFiles>
    </Package>-->

    <History>
        <Update release="7">
            <Date>2020-10-19</Date>-
            <Version>2.7.18</Version>
            <Comment>Ver bump</Comment>
            <Name>Idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2020-06-03</Date>-
            <Version>2.7.18</Version>
            <Comment>Ver bump</Comment>
            <Name>Idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2018-07-15</Date>
            <Version>2.7.15</Version>
            <Comment>Rebuild.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2018-06-07</Date>
            <Version>2.7.15</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-08</Date>
            <Version>2.7.13</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>2.7.11</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-02</Date>
            <Version>2.7.11</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
