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