diff --git a/system/base/nspr/actions.py b/system/base/nspr/actions.py new file mode 100644 index 0000000000..e5d6dc7d35 --- /dev/null +++ b/system/base/nspr/actions.py @@ -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) diff --git a/system/base/nspr/files/generate-pc-config.sh b/system/base/nspr/files/generate-pc-config.sh new file mode 100644 index 0000000000..fb41397d05 --- /dev/null +++ b/system/base/nspr/files/generate-pc-config.sh @@ -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 diff --git a/system/base/nspr/files/nspr.pc.in b/system/base/nspr/files/nspr.pc.in new file mode 100644 index 0000000000..1d8f4a0cad --- /dev/null +++ b/system/base/nspr/files/nspr.pc.in @@ -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% diff --git a/system/base/nspr/pspec.xml b/system/base/nspr/pspec.xml new file mode 100644 index 0000000000..6c577d5a4a --- /dev/null +++ b/system/base/nspr/pspec.xml @@ -0,0 +1,122 @@ + + + + + nspr + http://www.mozilla.org/projects/nspr/ + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + library + Netscape Portable Runtime + 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. + ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.10.8/src/nspr-4.10.8.tar.gz + + nspr.pc.in + generate-pc-config.sh + + + + + nspr + + /usr/lib + + + + + nspr-devel + system.devel + Development files for nspr + + nspr + + + /usr/include + /usr/lib/pkgconfig + /usr/bin + + + + + + 2015-04-02 + 4.10.8 + Version bump. + Hakan Yıldız + hknyldz93@gmail.com + + + 2014-12-06 + 4.10.7 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-07-05 + 4.10.6 + Release bump. + PisiLinux Community + admins@pisilinux.org + + + 2014-05-11 + 4.10.4 + Release bump. + Marcin Bojara + marcin@pisilinux.org + + + 2014-03-29 + 4.10.4 + Version bump. + PisiLinux Community + admins@pisilinux.org + + + 2013-11-18 + 4.10.2 + Version bump. + PisiLinux Community + admins@pisilinux.org + + + 2013-10-23 + 4.10.1 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2013-07-18 + 4.10 + Version bump. + Marcin Bojara + marcin@pisilinux.org + + + 2013-05-17 + 4.9.6 + v.bump + Erdinç Gültekin + erdincgultekin@pisilinux.org + + + 2013-01-14 + 4.9.5 + New release + PisiLinux Community + admins@pisilinux.org + + + 2012-11-25 + 4.9.4 + First release + Erdinç Gültekin + admins@pisilinux.org + + + diff --git a/system/base/nspr/translations.xml b/system/base/nspr/translations.xml new file mode 100644 index 0000000000..1f0c162da6 --- /dev/null +++ b/system/base/nspr/translations.xml @@ -0,0 +1,15 @@ + + + + nspr + Netscape Taşınabilir Çalışma Zamanı + 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. + 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. + 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. + + + + nspr-devel + nspr için geliştirme dosyaları + +