nspr:moved into main for pisi 2.0
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
|
||||
def setup():
|
||||
# -fno-strict-aliasing workarounds some aliasing violations, see: https://bugzilla.redhat.com/show_bug.cgi?id=487844 -->
|
||||
shelltools.system('nspr/configure \
|
||||
--prefix=/usr \
|
||||
--disable-debug \
|
||||
%s \
|
||||
--enable-optimize="%s -fno-strict-aliasing"' % ("--enable-64bit" if get.ARCH() == "x86_64" else "", get.CFLAGS()))
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
# Create nss.pc and nss-config dynamically
|
||||
shelltools.system("./generate-pc-config.sh")
|
||||
|
||||
pisitools.insinto("/usr/lib","dist/lib/*.so",sym=False)
|
||||
pisitools.insinto("/usr/include/nspr","dist/include/nspr/*.h",sym=False)
|
||||
pisitools.insinto("/usr/include/nspr/obsolete","dist/include/nspr/obsolete/*.h",sym=False)
|
||||
pisitools.insinto("/usr/include/nspr/private","dist/include/nspr/private/*.h",sym=False)
|
||||
|
||||
# Fix permissions of headers, they're 0640 by default
|
||||
shelltools.chmod("%s/usr/include/nspr/*.h" % get.installDIR(), 0644)
|
||||
shelltools.chmod("%s/usr/include/nspr/*/*.h" % get.installDIR(), 0644)
|
||||
|
||||
pisitools.insinto("/usr/bin","config/nspr-config",sym=False)
|
||||
pisitools.insinto("/usr/lib/pkgconfig","config/nspr.pc",sym=False)
|
||||
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Generate nss.pc from nss.pc.in
|
||||
# Ozan Caglayan, 2010
|
||||
#
|
||||
# Generate nspr.pc from nspr.pc.in
|
||||
# Metin Akdere, 2012
|
||||
|
||||
LIBDIR="/usr/lib/nspr"
|
||||
PREFIX="/usr"
|
||||
EXEC_PREFIX="/usr"
|
||||
INCLUDEDIR="/usr/include/nspr"
|
||||
|
||||
PKGCONFIG="nspr/config/nspr.pc.in"
|
||||
|
||||
NSPR_VERSION=`./config/nspr-config --version`
|
||||
NSPR_LIBS=`./config/nspr-config --libs`
|
||||
NSPR_CFLAGS=`./config/nspr-config --cflags`
|
||||
|
||||
echo "NSPR_VERSION: $NSPR_VERSION"
|
||||
echo "NSPR_LIBS: $NSPR_LIBS"
|
||||
echo "NSPR_CFLAGS: $NSPR_CFLAGS"
|
||||
|
||||
# Setup pkgconfig file
|
||||
cat $PKGCONFIG | sed -e "s,%libdir%,$LIBDIR,g" \
|
||||
-e "s,%prefix%,$PREFIX,g" \
|
||||
-e "s,%exec_prefix%,$EXEC_PREFIX,g" \
|
||||
-e "s,%includedir%,$INCLUDEDIR,g" \
|
||||
-e "s,%NSPR_VERSION%,$NSPR_VERSION,g" \
|
||||
-e "s,%FULL_NSPR_LIBS%,$NSPR_LIBS,g" \
|
||||
-e "s,%FULL_NSPR_CFLAGS%,$NSPR_CFLAGS,g" \
|
||||
> config/nspr.pc
|
||||
|
||||
|
||||
# Clear .in files
|
||||
rm -rf $PKGCONFIG
|
||||
@@ -0,0 +1,10 @@
|
||||
prefix=%prefix%
|
||||
exec_prefix=%exec_prefix%
|
||||
libdir=%libdir%
|
||||
includedir=%includedir%
|
||||
|
||||
Name: NSPR
|
||||
Description: The Netscape Portable Runtime
|
||||
Version: %NSPR_VERSION%
|
||||
Libs: %FULL_NSPR_LIBS%
|
||||
Cflags: %FULL_NSPR_CFLAGS%
|
||||
@@ -0,0 +1,122 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>nspr</Name>
|
||||
<Homepage>http://www.mozilla.org/projects/nspr/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Netscape Portable Runtime</Summary>
|
||||
<Description>Netscape Portable Runtime (NSPR) provides a platform-neutral API for system level and libc like functions. The API is used in the Mozilla client, many of Netscape/AOL/iPlanet's and other software offerings.</Description>
|
||||
<Archive sha1sum="c87c6a10e0e36866006b45c194d70cd8c67d0934" type="targz">ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.10.8/src/nspr-4.10.8.tar.gz</Archive>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile target="nspr/config/nspr.pc.in">nspr.pc.in</AdditionalFile>
|
||||
<AdditionalFile permission="0755" target="generate-pc-config.sh">generate-pc-config.sh</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>nspr</Name>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>nspr-devel</Name>
|
||||
<PartOf>system.devel</PartOf>
|
||||
<Summary>Development files for nspr</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">nspr</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="11">
|
||||
<Date>2015-04-02</Date>
|
||||
<Version>4.10.8</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Hakan Yıldız</Name>
|
||||
<Email>hknyldz93@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="10">
|
||||
<Date>2014-12-06</Date>
|
||||
<Version>4.10.7</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="9">
|
||||
<Date>2014-07-05</Date>
|
||||
<Version>4.10.6</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="8">
|
||||
<Date>2014-05-11</Date>
|
||||
<Version>4.10.4</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2014-03-29</Date>
|
||||
<Version>4.10.4</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2013-11-18</Date>
|
||||
<Version>4.10.2</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2013-10-23</Date>
|
||||
<Version>4.10.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2013-07-18</Date>
|
||||
<Version>4.10</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-05-17</Date>
|
||||
<Version>4.9.6</Version>
|
||||
<Comment>v.bump</Comment>
|
||||
<Name>Erdinç Gültekin</Name>
|
||||
<Email>erdincgultekin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-01-14</Date>
|
||||
<Version>4.9.5</Version>
|
||||
<Comment>New release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-11-25</Date>
|
||||
<Version>4.9.4</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Erdinç Gültekin</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>nspr</Name>
|
||||
<Summary xml:lang="tr">Netscape Taşınabilir Çalışma Zamanı</Summary>
|
||||
<Description xml:lang="tr">Netscape Taşınabilir çalışma Zamanı (NSPR) sistem seviyesindeki libc ve benzeri fonksiyonlar için platform bağımsız bir programlama arayüzü sunar. Bu arayüz, Mozilla istemcilerinde, Netscape/AOL/iPlanet'in diğer yazılımlarında kullanılmaktadır.</Description>
|
||||
<Description xml:lang="fr">Netscape Portable Runtime (NSPR -- Exécutable Portable Netscape) fourni une API neutre au sens de la plate-forme pour les fonctions de niveau système ou de type libc. Cette API est utilisée au sein du client Mozilla ainsi que de nombreuses solutions logicielles de Netscape/AOL/iPlanet.</Description>
|
||||
<Description xml:lang="es">Netscape Portable Runtime (NSPR) provee un API independiente de la plataforma a nivel de sistema y funciones como libc. El API está usado en el cliente Mozilla, y muchos otros software de Netscape/AOL/iPlanet.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>nspr-devel</Name>
|
||||
<Summary xml:lang="tr">nspr için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user