1 Summary: Netscape Portable Runtime (NSPR)
2 Summary(pl): Przeno¶ne biblioteki uruchomieniowe Netscape
7 License: MPL v1.1 or GPL v2+ or LGPL v2.1+
9 Source0: ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
10 # Source0-md5: 267a63dec54e72b02831d3083fd9faaf
11 Source1: %{name}-mozilla-nspr.pc
12 Patch0: %{name}-am18.patch
13 Patch1: %{name}-acfix.patch
14 BuildRequires: autoconf >= 2.12
15 BuildRequires: automake
16 BuildRequires: sed >= 4.0
17 Obsoletes: nspr-pthreads
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Libraries that implement cross-platform runtime services from
25 Biblioteki z wieloplatformow± implementacj± us³ug z Netscape.
28 Summary: NSPR library header files for development
29 Summary(pl): Pliki nag³ówkowe bibliotek NSPR
30 Group: Development/Libraries
31 Requires: %{name} = %{epoch}:%{version}-%{release}
32 Obsoletes: nspr-pthreads-devel
35 Header files for the NSPR library from Netscape.
37 %description devel -l pl
38 Pliki nag³ówkowe bibliotek NSPR z Netscape.
41 Summary: Static NSPR library
42 Summary(pl): Statyczna biblioteka NSPR
43 Group: Development/Libraries
44 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
45 Obsoletes: nspr-pthreads-static
50 %description static -l pl
51 Statyczna biblioteka NSPR.
58 # @includedir@ is not updated to .../nspr
59 sed -i -e 's,@includedir@,%{_includedir}/nspr,' mozilla/nsprpub/config/nspr-config.in
63 cp -f /usr/share/automake/config.sub build/autoconf
65 # don't use "--disable-strip" - it will cause stripping
67 --with-dist-prefix=$RPM_BUILD_ROOT%{_prefix} \
68 --with-dist-libdir=$RPM_BUILD_ROOT%{_libdir} \
70 %ifarch %{x8664} ppc64
73 --enable-optimize="%{rpmcflags}" \
74 --%{?debug:en}%{!?debug:dis}able-debug \
75 %{!?debug:--enable-strip} \
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_aclocaldir},%{_pkgconfigdir}}
89 install config/%{name}.m4 $RPM_BUILD_ROOT%{_aclocaldir}
90 install config/%{name}-config $RPM_BUILD_ROOT%{_bindir}
93 -e 's#libdir=.*#libdir=%{_libdir}#g' \
94 -e 's#includedir=.*#includedir=%{_includedir}#g' \
95 -e 's#VERSION#%{version}#g' \
96 %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc
98 ln -s mozilla-nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/nspr.pc
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/lib*.so
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_bindir}/nspr-config
115 %{_pkgconfigdir}/*.pc
118 %defattr(644,root,root,755)