Репозиторий Sisyphus
Последнее обновление: 17 октября 2019 | Пакетов: 17500 | Посещений: 15284734
en ru br
Репозитории ALT
S:4.22-alt1
5.1: 4.8.7-alt1.M50P.1
4.1: 4.7.2-alt0.20080628.M41
4.0: 4.6.7-alt1
3.0: 4.4.1-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: nspr

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Summary: Netscape Portable Runtime (NSPR)
Name: nspr
Version: 4.8.7
Release: alt1.M50P.1
Epoch: 1
License: MPL/GPL/LGPL
Group: System/Libraries
Url: http://www.mozilla.org/projects/nspr/
Packager: Alexey Gladkov <legion at altlinux.ru>

Source0: %name-%version.tar
Source1: %name.pc.in

# Automatically added by buildreq on Wed Feb 13 2008 (-bi)

BuildRequires: gcc-c++

%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.

%package -n lib%name
Summary:        Netscape Portable Runtime (NSPR)
Group:          System/Libraries
Provides: %name = %version-%release

%description -n lib%name
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.

%package -n lib%name-devel
Summary: NSPR development kit
Group: Development/C
Requires: lib%name = %epoch:%version-%release
Provides: %name-devel = %version-%release

%description -n lib%name-devel
NSPR development kit

%package -n lib%name-devel-static
Summary: NSPR static libraries
Group: Development/C
Requires: lib%name-devel = %epoch:%version-%release
Provides: %name-devel-static = %version-%release

%description -n lib%name-devel-static
NSPR development kit (static libs)

%prep
%setup -q

sed -i \
-e 's at AC_CONFIG_AUX_DIR(\${srcdir}/build/autoconf) at AC_CONFIG_AUX_DIR(build/autoconf) at ' \
mozilla/nsprpub/configure.in

%build
cd mozilla/nsprpub
%add_optflags %optflags_shared
%configure \
--includedir=%_includedir/%name \
--with-mozilla \
%ifarch x86_64
--enable-64bit \
%endif
--enable-optimize="$RPM_OPT_FLAGS" \
--enable-mdupdate \
--with-pthreads \
--disable-cplus \
#

%make_build

%install
cd mozilla/nsprpub
%makeinstall install export \
 includedir=%buildroot/%_includedir/%name

find %buildroot/%_includedir/nspr -type f -name '*.h' -print0 |
   xargs -r0 sed -i -e 's at ^\([[:space:]]*#include[[:space:]]\+\)"\([^"]\+\)" at \1<nspr/\2> at g'

%__mkdir_p %buildroot/%_datadir/%name-%version
mv -f %buildroot/%_bindir/prerr.properties %buildroot/%_datadir/%name-%version/

NSPR_LIBS=`%buildroot/%_bindir/nspr-config --libs`
NSPR_CFLAGS=`%buildroot/%_bindir/nspr-config --cflags`
NSPR_VERSION=`%buildroot/%_bindir/nspr-config --version`
%__mkdir_p %buildroot/%_libdir/pkgconfig
sed -e "s, at libdir at ,%_libdir,g" \
   -e "s, at prefix at ,%_prefix,g" \
   -e "s, at exec_prefix at ,%_prefix,g" \
   -e "s, at includedir at ,%_includedir/nspr,g" \
   -e "s, at NSPR_VERSION at ,$NSPR_VERSION,g" \
   -e "s, at FULL_NSPR_LIBS at ,$NSPR_LIBS,g" \
   -e "s, at FULL_NSPR_CFLAGS at ,$NSPR_CFLAGS,g" \
%SOURCE1 > %buildroot/%_libdir/pkgconfig/nspr.pc

%files -n lib%name
%_libdir/*.so*

%files -n lib%name-devel
%_bindir/%name-config
%_includedir/nspr
%_libdir/pkgconfig/*
%_datadir/%name-%version
%_datadir/aclocal/*

%files -n lib%name-devel-static
%_libdir/*.a

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin