]>
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 |
fa75cd44 | 4 | Version: 4.15 |
d74f9328 | 5 | Release: 1 |
a79fccb1 | 6 | Epoch: 1 |
957517c1 | 7 | License: MPL v2.0 |
a03d5a27 | 8 | Group: Libraries |
0296a015 | 9 | Source0: http://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz |
fa75cd44 | 10 | # Source0-md5: c6c652d4f805be2daa344ac372d7bc59 |
957517c1 | 11 | Patch0: %{name}-pc.patch |
fa75cd44 | 12 | Patch1: %{name}-configure.patch |
0296a015 | 13 | URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR |
957517c1 | 14 | BuildRequires: autoconf >= 2.61 |
71e52757 | 15 | BuildRequires: automake |
424856fd | 16 | BuildRequires: sed >= 4.0 |
8bce53ee | 17 | Obsoletes: nspr-pthreads |
a03d5a27 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | Libraries that implement cross-platform runtime services from | |
22 | Netscape. | |
23 | ||
880c4592 | 24 | %description -l pl.UTF-8 |
59299753 JB |
25 | Biblioteki z wieloplatformową implementacją usług |
26 | uruchomieniowych Netscape'a. | |
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 | 38 | %description devel -l pl.UTF-8 |
59299753 | 39 | Pliki nagłówkowe bibliotek NSPR Netscape'a. |
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 |
fa75cd44 | 57 | %patch1 -p1 |
59299753 | 58 | |
a03d5a27 | 59 | %build |
ac204f03 | 60 | cd nspr |
2b666fcc | 61 | cp -f /usr/share/automake/config.sub build/autoconf |
45233cf8 | 62 | %{__autoconf} |
13dbfb70 | 63 | %configure \ |
81d09754 | 64 | --includedir=%{_includedir}/nspr \ |
32c7bb87 JB |
65 | %ifarch %{x8664} ppc64 |
66 | --enable-64bit \ | |
a030bc7f JR |
67 | %endif |
68 | %ifarch x32 | |
69 | --enable-x32 \ | |
32c7bb87 | 70 | %endif |
e6301c8c | 71 | --%{?debug:en}%{!?debug:dis}able-debug \ |
81d09754 JB |
72 | --enable-ipv6 \ |
73 | --enable-optimize="%{rpmcflags}" \ | |
74 | --with-mozilla \ | |
75 | --with-pthreads | |
13dbfb70 | 76 | |
24e23ee8 | 77 | %{__make} |
a03d5a27 | 78 | |
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
13dbfb70 | 81 | |
ac204f03 | 82 | %{__make} -C nspr install \ |
81d09754 | 83 | DESTDIR=$RPM_BUILD_ROOT |
e8bd5623 | 84 | |
232d4135 JB |
85 | # for compatibility (upstream installs only nspr.nc); to be dropped sometime? |
86 | ln -s nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc | |
3257b715 | 87 | |
f292d214 | 88 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{compile-et.pl,prerr.properties} |
a1d97460 | 89 | |
a03d5a27 | 90 | %clean |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
81d09754 JB |
98 | %attr(755,root,root) %{_libdir}/libnspr4.so |
99 | %attr(755,root,root) %{_libdir}/libplc4.so | |
100 | %attr(755,root,root) %{_libdir}/libplds4.so | |
a03d5a27 | 101 | |
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
13dbfb70 | 104 | %attr(755,root,root) %{_bindir}/nspr-config |
a03d5a27 | 105 | %{_includedir}/nspr |
81d09754 JB |
106 | %{_aclocaldir}/nspr.m4 |
107 | %{_pkgconfigdir}/mozilla-nspr.pc | |
108 | %{_pkgconfigdir}/nspr.pc | |
a03d5a27 | 109 | |
110 | %files static | |
111 | %defattr(644,root,root,755) | |
81d09754 JB |
112 | %{_libdir}/libnspr4.a |
113 | %{_libdir}/libplc4.a | |
114 | %{_libdir}/libplds4.a |