ALT Linux repos
Group :: Development/Other
RPM: nspr
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: nspr
Version: 4.4.1
Release: alt1
Summary: Netscape Portable Runtime
License: MPL
Group: Development/Other
URL: http://www.mozilla.org/projects/nspr/
# ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/
Source: %name-%version.tar.bz2
# Automatically added by buildreq on Fri Oct 08 2004
BuildRequires: gcc-c++ libstdc++-devel
%package -n lib%name
Summary: Netscape Portable Runtime library
Group: System/Libraries
Conflicts: mozilla <= 1.7.2-alt1
%package -n lib%name-devel
Summary: Netscape Portable Runtime header files
Group: Development/C
Requires: lib%name = %version-%release
%description
NSPR provides platform independence for non-GUI operating system
facilities. These facilities include threads, thread synchronization,
normal file and network I/O, interval timing and calendar time, basic
memory management (malloc and free) and shared library linking.
%description -n lib%name
NSPR provides platform independence for non-GUI operating system
facilities. These facilities include threads, thread synchronization,
normal file and network I/O, interval timing and calendar time, basic
memory management (malloc and free) and shared library linking.
%description -n lib%name-devel
NSPR provides platform independence for non-GUI operating system
facilities. These facilities include threads, thread synchronization,
normal file and network I/O, interval timing and calendar time, basic
memory management (malloc and free) and shared library linking.
%prep
%setup -q
%build
cd mozilla/nsprpub
%undefine __libtoolize
%configure --with-mozilla --disable-debug
%make_build
%install
cd mozilla/nsprpub/dist
%__mkdir_p %buildroot%_libdir
%__install -p -m755 lib/lib*4.so %buildroot%_libdir
%__mkdir_p %buildroot%_includedir/%name/obsolete
%__install -p -m644 include/%name/%name.h %buildroot%_includedir
%__install -p -m644 include/%name/p[rl]*.h %buildroot%_includedir/%name
%__install -p -m644 include/%name/obsolete/pr*.h %buildroot%_includedir/%name/obsolete
find %buildroot%_includedir -type f -name '*.h' -print0 | xargs -r0 %__subst -p \
's,^#include "\(p[rl].*\|obsolete.*\)\.h",#include <nspr/\1.h>,g'
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files -n lib%name
%_libdir/lib*4.so
%files -n lib%name-devel
%_includedir/%name.h
%_includedir/%name/
%changelog
…
Full changelog you can see here
Version: 4.4.1
Release: alt1
Summary: Netscape Portable Runtime
License: MPL
Group: Development/Other
URL: http://www.mozilla.org/projects/nspr/
# ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/
Source: %name-%version.tar.bz2
# Automatically added by buildreq on Fri Oct 08 2004
BuildRequires: gcc-c++ libstdc++-devel
%package -n lib%name
Summary: Netscape Portable Runtime library
Group: System/Libraries
Conflicts: mozilla <= 1.7.2-alt1
%package -n lib%name-devel
Summary: Netscape Portable Runtime header files
Group: Development/C
Requires: lib%name = %version-%release
%description
NSPR provides platform independence for non-GUI operating system
facilities. These facilities include threads, thread synchronization,
normal file and network I/O, interval timing and calendar time, basic
memory management (malloc and free) and shared library linking.
%description -n lib%name
NSPR provides platform independence for non-GUI operating system
facilities. These facilities include threads, thread synchronization,
normal file and network I/O, interval timing and calendar time, basic
memory management (malloc and free) and shared library linking.
%description -n lib%name-devel
NSPR provides platform independence for non-GUI operating system
facilities. These facilities include threads, thread synchronization,
normal file and network I/O, interval timing and calendar time, basic
memory management (malloc and free) and shared library linking.
%prep
%setup -q
%build
cd mozilla/nsprpub
%undefine __libtoolize
%configure --with-mozilla --disable-debug
%make_build
%install
cd mozilla/nsprpub/dist
%__mkdir_p %buildroot%_libdir
%__install -p -m755 lib/lib*4.so %buildroot%_libdir
%__mkdir_p %buildroot%_includedir/%name/obsolete
%__install -p -m644 include/%name/%name.h %buildroot%_includedir
%__install -p -m644 include/%name/p[rl]*.h %buildroot%_includedir/%name
%__install -p -m644 include/%name/obsolete/pr*.h %buildroot%_includedir/%name/obsolete
find %buildroot%_includedir -type f -name '*.h' -print0 | xargs -r0 %__subst -p \
's,^#include "\(p[rl].*\|obsolete.*\)\.h",#include <nspr/\1.h>,g'
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files -n lib%name
%_libdir/lib*4.so
%files -n lib%name-devel
%_includedir/%name.h
%_includedir/%name/
%changelog
…
Full changelog you can see here