]>
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 |
a842ef18 JB |
4 | Version: 4.7.1 |
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 |
a842ef18 | 10 | # Source0-md5: 7c6e75a0867ce2b9ec62e399a908b5ac |
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 JR |
25 | %description -l pl.UTF-8 |
26 | Biblioteki z wieloplatformową implementacją usług z Netscape. | |
a03d5a27 | 27 | |
28 | %package devel | |
29 | Summary: NSPR library header files for development | |
1e2f34e0 | 30 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek NSPR |
a03d5a27 | 31 | Group: Development/Libraries |
2b666fcc | 32 | Requires: %{name} = %{epoch}:%{version}-%{release} |
8bce53ee | 33 | Obsoletes: nspr-pthreads-devel |
a03d5a27 | 34 | |
35 | %description devel | |
36 | Header files for the NSPR library from Netscape. | |
37 | ||
880c4592 JR |
38 | %description devel -l pl.UTF-8 |
39 | Pliki nagłówkowe bibliotek NSPR z Netscape. | |
a03d5a27 | 40 | |
41 | %package static | |
42 | Summary: Static NSPR library | |
1e2f34e0 | 43 | Summary(pl.UTF-8): Statyczna biblioteka NSPR |
a03d5a27 | 44 | Group: Development/Libraries |
2b666fcc | 45 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
8bce53ee | 46 | Obsoletes: nspr-pthreads-static |
a03d5a27 | 47 | |
48 | %description static | |
49 | Static NSPR library. | |
50 | ||
880c4592 | 51 | %description static -l pl.UTF-8 |
a03d5a27 | 52 | Statyczna biblioteka NSPR. |
53 | ||
54 | %prep | |
ad9041af | 55 | %setup -q |
d6690db6 | 56 | %patch0 -p1 |
81d09754 | 57 | %patch1 -p0 |
424856fd | 58 | |
402643ac AM |
59 | install %{SOURCE1} mozilla/nsprpub/nspr-mozilla-nspr.pc.in |
60 | ||
a03d5a27 | 61 | %build |
62 | cd mozilla/nsprpub | |
2b666fcc | 63 | cp -f /usr/share/automake/config.sub build/autoconf |
45233cf8 | 64 | %{__autoconf} |
13dbfb70 | 65 | %configure \ |
81d09754 | 66 | --includedir=%{_includedir}/nspr \ |
32c7bb87 JB |
67 | %ifarch %{x8664} ppc64 |
68 | --enable-64bit \ | |
69 | %endif | |
e6301c8c | 70 | --%{?debug:en}%{!?debug:dis}able-debug \ |
81d09754 JB |
71 | --enable-ipv6 \ |
72 | --enable-optimize="%{rpmcflags}" \ | |
73 | --with-mozilla \ | |
74 | --with-pthreads | |
13dbfb70 | 75 | |
24e23ee8 | 76 | %{__make} |
a03d5a27 | 77 | |
402643ac AM |
78 | ./config.status --file=nspr-mozilla-nspr.pc |
79 | ||
a03d5a27 | 80 | %install |
81 | rm -rf $RPM_BUILD_ROOT | |
81d09754 | 82 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
13dbfb70 | 83 | |
81d09754 JB |
84 | %{__make} -C mozilla/nsprpub install \ |
85 | DESTDIR=$RPM_BUILD_ROOT | |
e8bd5623 | 86 | |
402643ac | 87 | install mozilla/nsprpub/nspr-mozilla-nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc |
a03d5a27 | 88 | |
3257b715 | 89 | ln -s mozilla-nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/nspr.pc |
90 | ||
81d09754 | 91 | rm $RPM_BUILD_ROOT%{_bindir}/{compile-et.pl,prerr.properties} |
a1d97460 | 92 | |
a03d5a27 | 93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
81d09754 JB |
101 | %attr(755,root,root) %{_libdir}/libnspr4.so |
102 | %attr(755,root,root) %{_libdir}/libplc4.so | |
103 | %attr(755,root,root) %{_libdir}/libplds4.so | |
a03d5a27 | 104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
13dbfb70 | 107 | %attr(755,root,root) %{_bindir}/nspr-config |
a03d5a27 | 108 | %{_includedir}/nspr |
81d09754 JB |
109 | %{_aclocaldir}/nspr.m4 |
110 | %{_pkgconfigdir}/mozilla-nspr.pc | |
111 | %{_pkgconfigdir}/nspr.pc | |
a03d5a27 | 112 | |
113 | %files static | |
114 | %defattr(644,root,root,755) | |
81d09754 JB |
115 | %{_libdir}/libnspr4.a |
116 | %{_libdir}/libplc4.a | |
117 | %{_libdir}/libplds4.a |