]>
Commit | Line | Data |
---|---|---|
a03d5a27 | 1 | Summary: Netscape Portable Runtime (NSPR) |
1e2f34e0 | 2 | Summary(pl.UTF-8): Przenośne biblioteki uruchomieniowe Netscape |
a03d5a27 | 3 | Name: nspr |
5f05485c | 4 | Version: 4.9.4 |
59299753 | 5 | Release: 1 |
a79fccb1 | 6 | Epoch: 1 |
2ede7f28 | 7 | License: MPL v1.1 or GPL v2+ or LGPL v2.1+ |
a03d5a27 | 8 | Group: Libraries |
81d09754 | 9 | Source0: http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz |
5f05485c | 10 | # Source0-md5: cf58772702b3abbdcff14e22014eeeaf |
81d09754 JB |
11 | Patch0: %{name}-acfix.patch |
12 | Patch1: %{name}-sparc64.patch | |
232d4135 | 13 | Patch2: %{name}-pc.patch |
ae704bb2 | 14 | URL: http://www.mozilla.org/projects/nspr/ |
d6690db6 | 15 | BuildRequires: autoconf >= 2.12 |
71e52757 | 16 | BuildRequires: automake |
424856fd | 17 | BuildRequires: sed >= 4.0 |
8bce53ee | 18 | Obsoletes: nspr-pthreads |
a03d5a27 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Libraries that implement cross-platform runtime services from | |
23 | Netscape. | |
24 | ||
880c4592 | 25 | %description -l pl.UTF-8 |
59299753 JB |
26 | Biblioteki z wieloplatformową implementacją usług |
27 | uruchomieniowych Netscape'a. | |
a03d5a27 | 28 | |
29 | %package devel | |
30 | Summary: NSPR library header files for development | |
1e2f34e0 | 31 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek NSPR |
a03d5a27 | 32 | Group: Development/Libraries |
2b666fcc | 33 | Requires: %{name} = %{epoch}:%{version}-%{release} |
8bce53ee | 34 | Obsoletes: nspr-pthreads-devel |
a03d5a27 | 35 | |
36 | %description devel | |
37 | Header files for the NSPR library from Netscape. | |
38 | ||
880c4592 | 39 | %description devel -l pl.UTF-8 |
59299753 | 40 | Pliki nagłówkowe bibliotek NSPR Netscape'a. |
a03d5a27 | 41 | |
42 | %package static | |
43 | Summary: Static NSPR library | |
1e2f34e0 | 44 | Summary(pl.UTF-8): Statyczna biblioteka NSPR |
a03d5a27 | 45 | Group: Development/Libraries |
2b666fcc | 46 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
8bce53ee | 47 | Obsoletes: nspr-pthreads-static |
a03d5a27 | 48 | |
49 | %description static | |
50 | Static NSPR library. | |
51 | ||
880c4592 | 52 | %description static -l pl.UTF-8 |
a03d5a27 | 53 | Statyczna biblioteka NSPR. |
54 | ||
55 | %prep | |
ad9041af | 56 | %setup -q |
d6690db6 | 57 | %patch0 -p1 |
81d09754 | 58 | %patch1 -p0 |
232d4135 | 59 | %patch2 -p1 |
402643ac | 60 | |
59299753 JB |
61 | # Win32-specific, requires autoconf2.13 |
62 | %{__rm} mozilla/nsprpub/build/autoconf/acwinpaths.m4 \ | |
63 | mozilla/nsprpub/aclocal.m4 | |
64 | ||
a03d5a27 | 65 | %build |
66 | cd mozilla/nsprpub | |
2b666fcc | 67 | cp -f /usr/share/automake/config.sub build/autoconf |
45233cf8 | 68 | %{__autoconf} |
13dbfb70 | 69 | %configure \ |
81d09754 | 70 | --includedir=%{_includedir}/nspr \ |
32c7bb87 JB |
71 | %ifarch %{x8664} ppc64 |
72 | --enable-64bit \ | |
73 | %endif | |
e6301c8c | 74 | --%{?debug:en}%{!?debug:dis}able-debug \ |
81d09754 JB |
75 | --enable-ipv6 \ |
76 | --enable-optimize="%{rpmcflags}" \ | |
77 | --with-mozilla \ | |
78 | --with-pthreads | |
13dbfb70 | 79 | |
24e23ee8 | 80 | %{__make} |
a03d5a27 | 81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
81d09754 | 84 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
13dbfb70 | 85 | |
81d09754 JB |
86 | %{__make} -C mozilla/nsprpub install \ |
87 | DESTDIR=$RPM_BUILD_ROOT | |
e8bd5623 | 88 | |
232d4135 JB |
89 | # for compatibility (upstream installs only nspr.nc); to be dropped sometime? |
90 | ln -s nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc | |
3257b715 | 91 | |
f292d214 | 92 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{compile-et.pl,prerr.properties} |
a1d97460 | 93 | |
a03d5a27 | 94 | %clean |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post -p /sbin/ldconfig | |
98 | %postun -p /sbin/ldconfig | |
99 | ||
100 | %files | |
101 | %defattr(644,root,root,755) | |
81d09754 JB |
102 | %attr(755,root,root) %{_libdir}/libnspr4.so |
103 | %attr(755,root,root) %{_libdir}/libplc4.so | |
104 | %attr(755,root,root) %{_libdir}/libplds4.so | |
a03d5a27 | 105 | |
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
13dbfb70 | 108 | %attr(755,root,root) %{_bindir}/nspr-config |
a03d5a27 | 109 | %{_includedir}/nspr |
81d09754 JB |
110 | %{_aclocaldir}/nspr.m4 |
111 | %{_pkgconfigdir}/mozilla-nspr.pc | |
112 | %{_pkgconfigdir}/nspr.pc | |
a03d5a27 | 113 | |
114 | %files static | |
115 | %defattr(644,root,root,755) | |
81d09754 JB |
116 | %{_libdir}/libnspr4.a |
117 | %{_libdir}/libplc4.a | |
118 | %{_libdir}/libplds4.a |