]>
Commit | Line | Data |
---|---|---|
1 | Summary: Netscape Portable Runtime (NSPR) | |
2 | Summary(pl.UTF-8): Przenośne biblioteki uruchomieniowe Netscape | |
3 | Name: nspr | |
4 | Version: 4.17 | |
5 | Release: 1 | |
6 | Epoch: 1 | |
7 | License: MPL v2.0 | |
8 | Group: Libraries | |
9 | Source0: http://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 0534d9ac45dca251655b9b240670eab4 | |
11 | Patch0: %{name}-pc.patch | |
12 | URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR | |
13 | BuildRequires: autoconf >= 2.61 | |
14 | BuildRequires: automake | |
15 | BuildRequires: sed >= 4.0 | |
16 | Obsoletes: nspr-pthreads | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Libraries that implement cross-platform runtime services from | |
21 | Netscape. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | Biblioteki z wieloplatformową implementacją usług | |
25 | uruchomieniowych Netscape'a. | |
26 | ||
27 | %package devel | |
28 | Summary: NSPR library header files for development | |
29 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek NSPR | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
32 | Obsoletes: nspr-pthreads-devel | |
33 | ||
34 | %description devel | |
35 | Header files for the NSPR library from Netscape. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe bibliotek NSPR Netscape'a. | |
39 | ||
40 | %package static | |
41 | Summary: Static NSPR library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka NSPR | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
45 | Obsoletes: nspr-pthreads-static | |
46 | ||
47 | %description static | |
48 | Static NSPR library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka NSPR. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | %patch0 -p1 | |
56 | ||
57 | %build | |
58 | cd nspr | |
59 | cp -f /usr/share/automake/config.sub build/autoconf | |
60 | %{__autoconf} | |
61 | %configure \ | |
62 | --includedir=%{_includedir}/nspr \ | |
63 | %ifarch %{x8664} ppc64 | |
64 | --enable-64bit \ | |
65 | %endif | |
66 | %ifarch x32 | |
67 | --enable-x32 \ | |
68 | %endif | |
69 | --%{?debug:en}%{!?debug:dis}able-debug \ | |
70 | --enable-ipv6 \ | |
71 | --enable-optimize="%{rpmcflags}" \ | |
72 | --with-mozilla \ | |
73 | --with-pthreads | |
74 | ||
75 | %{__make} | |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} -C nspr install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | # for compatibility (upstream installs only nspr.nc); to be dropped sometime? | |
84 | ln -s nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc | |
85 | ||
86 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{compile-et.pl,prerr.properties} | |
87 | ||
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) | |
96 | %attr(755,root,root) %{_libdir}/libnspr4.so | |
97 | %attr(755,root,root) %{_libdir}/libplc4.so | |
98 | %attr(755,root,root) %{_libdir}/libplds4.so | |
99 | ||
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %attr(755,root,root) %{_bindir}/nspr-config | |
103 | %{_includedir}/nspr | |
104 | %{_aclocaldir}/nspr.m4 | |
105 | %{_pkgconfigdir}/mozilla-nspr.pc | |
106 | %{_pkgconfigdir}/nspr.pc | |
107 | ||
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libnspr4.a | |
111 | %{_libdir}/libplc4.a | |
112 | %{_libdir}/libplds4.a |