<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ghostscript</Name>
        <Homepage>http://www.ghostscript.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3+</License>
        <IsA>library</IsA>
        <Summary>A PostScript interpreter and renderer</Summary>
        <Description>ghostscript is a set of software that provides a PostScript interpreter, a set of C procedures and an interpreter for PDF files. ghostscript is normally used to display PostScript files and to print PostScript files to non-PostScript printers.</Description>
        <Archive sha1sum="19f01538d33b9623bc6653d96ea4ec891f14a9d3" type="tarbz2">http://downloads.ghostscript.com/public/ghostscript-9.15.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>tiff-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
	    <Dependency>libXext-devel</Dependency>
	    <Dependency>libSM-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency releaseFrom="2">lcms2-devel</Dependency>
            <Dependency>libXt-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>libpaper-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!-- Ubuntu patches -->
            <Patch level="1">ubuntu/02_gs-man-fix-for-debian.patch</Patch>
            <!-- Fedora patches -->

            <Patch level="1">fedora/ghostscript-Fontmap.local.patch</Patch>
            <Patch level="1">fedora/ghostscript-gdevcups-debug-uninit.patch</Patch>
            <Patch level="1">fedora/ghostscript-iccprofiles-initdir.patch</Patch>
            <Patch level="1">fedora/ghostscript-multilib.patch</Patch>
            <Patch level="1">fedora/ghostscript-noopt.patch</Patch>
            <Patch level="1">fedora/ghostscript-runlibfileifexists.patch</Patch>
            <Patch level="1">fedora/ghostscript-scripts.patch</Patch>
            <Patch level="1">fedora/ghostscript-sys-zlib.patch</Patch>
            <Patch level="1">fedora/ghostscript-icc-missing-check.patch</Patch>
            <Patch level="1">fedora/ghostscript-wrf-snprintf.patch</Patch>
            <Patch level="1">fedora/ghostscript-gs694154.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>ghostscript</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>tiff</Dependency>
            <Dependency releaseFrom="2">lcms2</Dependency>
            <Dependency>libXt</Dependency>
            <Dependency>libpaper</Dependency>
            <Dependency>fontconfig</Dependency>
            <!-- For CMap fonts -->
            <Dependency>poppler-data</Dependency>
            <Dependency>gnu-gs-fonts-std</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/cups</Path>
            <Path fileType="data">/usr/share/ghostscript</Path>
        </Files>
        <!--
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/ghostscript/9.00/Resource/Init/CIDFnmap">fedora/CIDFnmap</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/ghostscript/9.00/Resource/Init/cidfmap">fedora/cidfmap</AdditionalFile>
        </AdditionalFiles>
        -->
    </Package>

    <Package>
        <Name>ghostscript-docs</Name>
        <Summary>Documentation for ghostscript</Summary>
        <Files>
            <Path fileType="doc">/usr/share/doc/ghostscript/html</Path>
            <Path fileType="doc">/usr/share/doc/ghostscript/examples</Path>
        </Files>
    </Package>

    <Package>
        <Name>ghostscript-devel</Name>
        <Summary>Development files for ghostscript</Summary>
        <RuntimeDependencies>
            <Dependency release="current">ghostscript</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/ijs-config</Path>
            <Path fileType="header">/usr/include/ghostscript</Path>
            <Path fileType="header">/usr/include/ijs</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>ghostscript-32bit</Name>
        <PartOf>emul32</PartOf>
        <Summary>32-bit shared libraries for ghostscript</Summary>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libjpeg-turbo-32bit</Dependency>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>tiff-32bit</Dependency>
            <Dependency>lcms2-32bit</Dependency>
            <Dependency>libXt-32bit</Dependency>
            <Dependency>libXext-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libpng-32bit</Dependency>
            <Dependency>libidn-32bit</Dependency>
            <Dependency>freetype-32bit</Dependency>
            <Dependency>fontconfig-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">ghostscript</Dependency>
            <Dependency>libjpeg-turbo-32bit</Dependency>
            <Dependency>glibc-32bit</Dependency>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>tiff-32bit</Dependency>
            <Dependency>lcms2-32bit</Dependency>
            <Dependency>libXt-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libpng-32bit</Dependency>
            <Dependency>freetype-32bit</Dependency>
            <Dependency>fontconfig-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="6">
            <Date>2015-03-04</Date>
            <Version>9.15</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2014-05-20</Date>
            <Version>9.14</Version>
            <Comment>Version bump.</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2013-09-21</Date>
            <Version>9.10</Version>
            <Comment>Version bump.</Comment>
            <Name>Aydın Demirel</Name>
            <Email>aydin.demirel@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2013-06-27</Date>
            <Version>9.07</Version>
            <Comment>Version bump.</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2013-01-22</Date>
            <Version>9.06</Version>
            <Comment>Add emul32, fix dependencies</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2012-09-12</Date>
            <Version>9.06</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
