]>
Commit | Line | Data |
---|---|---|
a03d5a27 | 1 | Summary: Netscape Portable Runtime (NSPR) |
880c4592 | 2 | Summary(pl.UTF-8): Przenośne biblioteki uruchomieniowe Netscape |
a03d5a27 | 3 | Name: nspr |
5de15b38 | 4 | Version: 4.6.5 |
14dc3614 | 5 | Release: 1 |
a79fccb1 | 6 | Epoch: 1 |
2ede7f28 | 7 | License: MPL v1.1 or GPL v2+ or LGPL v2.1+ |
a03d5a27 | 8 | Group: Libraries |
32c7bb87 | 9 | Source0: ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz |
5de15b38 | 10 | # Source0-md5: 9bf15436496cb6bd96c1939f3ffb839f |
e8bd5623 | 11 | Source1: %{name}-mozilla-nspr.pc |
d6690db6 JB |
12 | Patch0: %{name}-am18.patch |
13 | Patch1: %{name}-acfix.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 | |
880c4592 | 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 | |
880c4592 | 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 JB |
56 | %patch0 -p1 |
57 | %patch1 -p1 | |
a03d5a27 | 58 | |
424856fd JB |
59 | # @includedir@ is not updated to .../nspr |
60 | sed -i -e 's,@includedir@,%{_includedir}/nspr,' mozilla/nsprpub/config/nspr-config.in | |
61 | ||
a03d5a27 | 62 | %build |
63 | cd mozilla/nsprpub | |
2b666fcc | 64 | cp -f /usr/share/automake/config.sub build/autoconf |
45233cf8 | 65 | %{__autoconf} |
e6301c8c | 66 | # don't use "--disable-strip" - it will cause stripping |
13dbfb70 | 67 | %configure \ |
68 | --with-dist-prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
2854108a | 69 | --with-dist-libdir=$RPM_BUILD_ROOT%{_libdir} \ |
13dbfb70 | 70 | --with-mozilla \ |
32c7bb87 JB |
71 | %ifarch %{x8664} ppc64 |
72 | --enable-64bit \ | |
73 | %endif | |
13dbfb70 | 74 | --enable-optimize="%{rpmcflags}" \ |
e6301c8c JB |
75 | --%{?debug:en}%{!?debug:dis}able-debug \ |
76 | %{!?debug:--enable-strip} \ | |
13dbfb70 | 77 | --with-pthreads \ |
78 | --enable-ipv6 | |
79 | ||
24e23ee8 | 80 | %{__make} |
a03d5a27 | 81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
e8bd5623 | 84 | install -d $RPM_BUILD_ROOT{%{_aclocaldir},%{_pkgconfigdir}} |
25333388 | 85 | |
a03d5a27 | 86 | cd mozilla/nsprpub |
13dbfb70 | 87 | %{__make} install \ |
88 | NSDISTMODE=copy | |
89 | ||
13dbfb70 | 90 | install config/%{name}.m4 $RPM_BUILD_ROOT%{_aclocaldir} |
91 | install config/%{name}-config $RPM_BUILD_ROOT%{_bindir} | |
e8bd5623 | 92 | |
505e7800 AM |
93 | sed \ |
94 | -e 's#libdir=.*#libdir=%{_libdir}#g' \ | |
e8bd5623 | 95 | -e 's#includedir=.*#includedir=%{_includedir}#g' \ |
da8ea2fc | 96 | -e 's#VERSION#%{version}#g' \ |
505e7800 | 97 | %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc |
a03d5a27 | 98 | |
3257b715 | 99 | ln -s mozilla-nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/nspr.pc |
100 | ||
a1d97460 JB |
101 | # let rpm find deps |
102 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so | |
103 | ||
a03d5a27 | 104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/lib*.so | |
113 | ||
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
13dbfb70 | 116 | %attr(755,root,root) %{_bindir}/nspr-config |
a03d5a27 | 117 | %{_includedir}/nspr |
13dbfb70 | 118 | %{_aclocaldir}/*.m4 |
e8bd5623 | 119 | %{_pkgconfigdir}/*.pc |
a03d5a27 | 120 | |
121 | %files static | |
122 | %defattr(644,root,root,755) | |
32c7bb87 | 123 | %{_libdir}/lib*.a |