<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>nss</Name>
        <Homepage>http://www.mozilla.org/projects/security/pki/nss/</Homepage>
        <Packager>
            <Name>Erdinç Gültekin</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MPL-2.0</License>
        <License>GPLv2</License>
        <License>LGPLv2.1</License>
        <PartOf>util.crypt</PartOf>
        <IsA>library</IsA>
        <Summary>Network Security Services</Summary>
        <Description>Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications. Applications built with NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other security standards.</Description>
        <Archive sha1sum="85d25795b01be3f4459707ce04e9bbed9e549865" type="targz">https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_33_RTM/src/nss-3.33.tar.gz</Archive>
        <AdditionalFiles>
            <AdditionalFile target="dist/pkgconfig/nss.pc.in">nss.pc.in</AdditionalFile>
            <AdditionalFile target="dist/pkgconfig/nss-config.in">nss-config.in</AdditionalFile>
            <AdditionalFile permission="0755" target="generate-pc-config.sh">generate-pc-config.sh</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency versionFrom="4.17.0">nspr-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!--<Patch level="1">nss-3.18.1-standalone-1.patch</Patch>-->
            <Patch level="1">add_spi+cacert_ca_certs.patch</Patch>

            <!-- Patches from Fedora -->
            <Patch level="0">fedora/add-relro-linker-option.patch</Patch>
            <!--<Patch level="0">fedora/nss-539183.patch</Patch>-->
        </Patches>
    </Source>

    <Package>
        <Name>nss</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>sqlite</Dependency>
            <Dependency>nspr</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="config">/etc</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/ld.so.conf.d/50-nss.conf">ld.so.conf</AdditionalFile>

            <!-- legacy blank NSS db files from Fedora -->
            <AdditionalFile owner="root" target="/etc/pki/nssdb/cert8.db" permission="0644">nssdb/cert8.db</AdditionalFile>
            <AdditionalFile owner="root" target="/etc/pki/nssdb/key3.db" permission="0644">nssdb/key3.db</AdditionalFile>
            <AdditionalFile owner="root" target="/etc/pki/nssdb/secmod.db" permission="0644">nssdb/secmod.db</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>nss-devel</Name>
        <Summary>Development files for nss</Summary>
        <RuntimeDependencies>
            <Dependency>nspr-devel</Dependency>
            <Dependency release="current">nss</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/nss-config</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="library">/usr/lib/nss/*.a</Path>
        </Files>
    </Package>

    <History>
        <Update release="6">
            <Date>2017-09-26</Date>
            <Version>3.33</Version>
            <Comment>Version Bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2017-05-28</Date>
            <Version>3.30</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2017-02-10</Date>
            <Version>3.29</Version>
            <Comment>Release bump.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-15</Date>
            <Version>3.23</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-08</Date>
            <Version>3.22</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-14</Date>
            <Version>3.22</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
