]>
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 |
5b8dc6a5 | 4 | Version: 4.27 |
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 |
5b8dc6a5 | 10 | # Source0-md5: 7a686cbf6e0ddfe7d99062565dc47192 |
957517c1 | 11 | Patch0: %{name}-pc.patch |
0296a015 | 12 | URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR |
957517c1 | 13 | BuildRequires: autoconf >= 2.61 |
71e52757 | 14 | BuildRequires: automake |
424856fd | 15 | BuildRequires: sed >= 4.0 |
8bce53ee | 16 | Obsoletes: nspr-pthreads |
a03d5a27 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | Libraries that implement cross-platform runtime services from | |
21 | Netscape. | |
22 | ||
880c4592 | 23 | %description -l pl.UTF-8 |
59299753 JB |
24 | Biblioteki z wieloplatformową implementacją usług |
25 | uruchomieniowych Netscape'a. | |
a03d5a27 | 26 | |
27 | %package devel | |
28 | Summary: NSPR library header files for development | |
1e2f34e0 | 29 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek NSPR |
a03d5a27 | 30 | Group: Development/Libraries |
2b666fcc | 31 | Requires: %{name} = %{epoch}:%{version}-%{release} |
8bce53ee | 32 | Obsoletes: nspr-pthreads-devel |
a03d5a27 | 33 | |
34 | %description devel | |
35 | Header files for the NSPR library from Netscape. | |
36 | ||
880c4592 | 37 | %description devel -l pl.UTF-8 |
59299753 | 38 | Pliki nagłówkowe bibliotek NSPR Netscape'a. |
a03d5a27 | 39 | |
40 | %package static | |
41 | Summary: Static NSPR library | |
1e2f34e0 | 42 | Summary(pl.UTF-8): Statyczna biblioteka NSPR |
a03d5a27 | 43 | Group: Development/Libraries |
2b666fcc | 44 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
8bce53ee | 45 | Obsoletes: nspr-pthreads-static |
a03d5a27 | 46 | |
47 | %description static | |
48 | Static NSPR library. | |
49 | ||
880c4592 | 50 | %description static -l pl.UTF-8 |
a03d5a27 | 51 | Statyczna biblioteka NSPR. |
52 | ||
53 | %prep | |
ad9041af | 54 | %setup -q |
d6690db6 | 55 | %patch0 -p1 |
59299753 | 56 | |
a03d5a27 | 57 | %build |
ac204f03 | 58 | cd nspr |
2b666fcc | 59 | cp -f /usr/share/automake/config.sub build/autoconf |
45233cf8 | 60 | %{__autoconf} |
13dbfb70 | 61 | %configure \ |
81d09754 | 62 | --includedir=%{_includedir}/nspr \ |
32c7bb87 JB |
63 | %ifarch %{x8664} ppc64 |
64 | --enable-64bit \ | |
a030bc7f JR |
65 | %endif |
66 | %ifarch x32 | |
67 | --enable-x32 \ | |
32c7bb87 | 68 | %endif |
e6301c8c | 69 | --%{?debug:en}%{!?debug:dis}able-debug \ |
81d09754 JB |
70 | --enable-ipv6 \ |
71 | --enable-optimize="%{rpmcflags}" \ | |
72 | --with-mozilla \ | |
73 | --with-pthreads | |
13dbfb70 | 74 | |
24e23ee8 | 75 | %{__make} |
a03d5a27 | 76 | |
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
13dbfb70 | 79 | |
ac204f03 | 80 | %{__make} -C nspr install \ |
81d09754 | 81 | DESTDIR=$RPM_BUILD_ROOT |
e8bd5623 | 82 | |
232d4135 JB |
83 | # for compatibility (upstream installs only nspr.nc); to be dropped sometime? |
84 | ln -s nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc | |
3257b715 | 85 | |
f292d214 | 86 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{compile-et.pl,prerr.properties} |
a1d97460 | 87 | |
a03d5a27 | 88 | %clean |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
81d09754 JB |
96 | %attr(755,root,root) %{_libdir}/libnspr4.so |
97 | %attr(755,root,root) %{_libdir}/libplc4.so | |
98 | %attr(755,root,root) %{_libdir}/libplds4.so | |
a03d5a27 | 99 | |
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
13dbfb70 | 102 | %attr(755,root,root) %{_bindir}/nspr-config |
a03d5a27 | 103 | %{_includedir}/nspr |
81d09754 JB |
104 | %{_aclocaldir}/nspr.m4 |
105 | %{_pkgconfigdir}/mozilla-nspr.pc | |
106 | %{_pkgconfigdir}/nspr.pc | |
a03d5a27 | 107 | |
108 | %files static | |
109 | %defattr(644,root,root,755) | |
81d09754 JB |
110 | %{_libdir}/libnspr4.a |
111 | %{_libdir}/libplc4.a | |
112 | %{_libdir}/libplds4.a |