Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37497508
en ru br
Репозитории ALT
S:4.35-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 

%define cvs_stamp 20060807

Summary:        Netscape Portable Runtime (NSPR)
Name:           nspr
Version:        4.6.7
Release:       alt1
Serial: 1
License:        MPL
Group:          System/Libraries
Url: http://www.mozilla.org/projects/nspr/

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

# Automatically added by buildreq on Sun Oct 16 2005

BuildRequires: gcc-c++ libstdc++-devel

%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

%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 = %version-%release

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

%prep
%setup -q

%__subst 's|AC_CONFIG_AUX_DIR(\${srcdir}/build/autoconf)|AC_CONFIG_AUX_DIR(build/autoconf)|' 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 \
   --enable-strip \
   --with-pthreads \
   --disable-cplus \
   #

%make_build

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

find %buildroot/%_includedir/nspr -type f -name '*.h' -print0 |
   xargs -r0 %__subst 's|^\([[:space:]]*#include\) "\([^"]\+\)"|\1 <nspr/\2>|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

%post -p %post_ldconfig
%postun -p %postun_ldconfig

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

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

%changelog

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

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