]>
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 |
e38160ee | 4 | Version: 4.8.9 |
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 |
e38160ee | 10 | # Source0-md5: 60770d45dc08c0f181b22cdfce5be3e8 |
e8bd5623 | 11 | Source1: %{name}-mozilla-nspr.pc |
81d09754 JB |
12 | Patch0: %{name}-acfix.patch |
13 | Patch1: %{name}-sparc64.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 |
424856fd | 59 | |
402643ac AM |
60 | install %{SOURCE1} mozilla/nsprpub/nspr-mozilla-nspr.pc.in |
61 | ||
59299753 JB |
62 | # Win32-specific, requires autoconf2.13 |
63 | %{__rm} mozilla/nsprpub/build/autoconf/acwinpaths.m4 \ | |
64 | mozilla/nsprpub/aclocal.m4 | |
65 | ||
a03d5a27 | 66 | %build |
67 | cd mozilla/nsprpub | |
2b666fcc | 68 | cp -f /usr/share/automake/config.sub build/autoconf |
45233cf8 | 69 | %{__autoconf} |
13dbfb70 | 70 | %configure \ |
81d09754 | 71 | --includedir=%{_includedir}/nspr \ |
32c7bb87 JB |
72 | %ifarch %{x8664} ppc64 |
73 | --enable-64bit \ | |
74 | %endif | |
e6301c8c | 75 | --%{?debug:en}%{!?debug:dis}able-debug \ |
81d09754 JB |
76 | --enable-ipv6 \ |
77 | --enable-optimize="%{rpmcflags}" \ | |
78 | --with-mozilla \ | |
79 | --with-pthreads | |
13dbfb70 | 80 | |
24e23ee8 | 81 | %{__make} |
a03d5a27 | 82 | |
402643ac AM |
83 | ./config.status --file=nspr-mozilla-nspr.pc |
84 | ||
a03d5a27 | 85 | %install |
86 | rm -rf $RPM_BUILD_ROOT | |
81d09754 | 87 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
13dbfb70 | 88 | |
81d09754 JB |
89 | %{__make} -C mozilla/nsprpub install \ |
90 | DESTDIR=$RPM_BUILD_ROOT | |
e8bd5623 | 91 | |
402643ac | 92 | install mozilla/nsprpub/nspr-mozilla-nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc |
a03d5a27 | 93 | |
3257b715 | 94 | ln -s mozilla-nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/nspr.pc |
95 | ||
f292d214 | 96 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{compile-et.pl,prerr.properties} |
a1d97460 | 97 | |
a03d5a27 | 98 | %clean |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post -p /sbin/ldconfig | |
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %files | |
105 | %defattr(644,root,root,755) | |
81d09754 JB |
106 | %attr(755,root,root) %{_libdir}/libnspr4.so |
107 | %attr(755,root,root) %{_libdir}/libplc4.so | |
108 | %attr(755,root,root) %{_libdir}/libplds4.so | |
a03d5a27 | 109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
13dbfb70 | 112 | %attr(755,root,root) %{_bindir}/nspr-config |
a03d5a27 | 113 | %{_includedir}/nspr |
81d09754 JB |
114 | %{_aclocaldir}/nspr.m4 |
115 | %{_pkgconfigdir}/mozilla-nspr.pc | |
116 | %{_pkgconfigdir}/nspr.pc | |
a03d5a27 | 117 | |
118 | %files static | |
119 | %defattr(644,root,root,755) | |
81d09754 JB |
120 | %{_libdir}/libnspr4.a |
121 | %{_libdir}/libplc4.a | |
122 | %{_libdir}/libplds4.a |