]> git.pld-linux.org Git - packages/nspr.git/blob - nspr.spec
- alpha patch removed (builds without it on alpha)
[packages/nspr.git] / nspr.spec
1 Summary:        Netscape Portable Runtime (NSPR)
2 Summary(pl):    Przeno¶ne biblioteki uruchomieniowe Netscape
3 Name:           nspr
4 Version:        4.2.2
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 Source0:        http://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
9 BuildRequires:  autoconf
10 Obsoletes:      nspr-pthreads
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 Libraries that implement cross-platform runtime services from
15 Netscape.
16
17 %description -l pl
18 Biblioteki z wieloplatformow± implementacj± us³ug z Netscape.
19
20 %package devel
21 Summary:        NSPR library header files for development
22 Summary(pl):    Pliki nag³ówkowe bibliotek NSPR
23 Group:          Development/Libraries
24 Requires:       %{name} = %{version}
25 Obsoletes:      nspr-pthreads-devel
26
27 %description devel
28 Header files for the NSPR library from Netscape.
29
30 %description devel -l pl
31 Pliki nag³ówkowe bibliotek NSPR z Netscape.
32
33 %package static
34 Summary:        Static NSPR library
35 Summary(pl):    Statyczna biblioteka NSPR
36 Group:          Development/Libraries
37 Requires:       %{name}-devel = %{version}
38 Obsoletes:      nspr-pthreads-static
39
40 %description static
41 Static NSPR library.
42
43 %description static -l pl
44 Statyczna biblioteka NSPR.
45
46 %prep
47 %setup -q
48
49 %build
50 cd mozilla/nsprpub
51 %{__autoconf}
52 %configure \
53         --with-dist-prefix=$RPM_BUILD_ROOT%{_prefix} \
54         --with-mozilla \
55         --enable-optimize="%{rpmcflags}" \
56         --disable-debug \
57         --enable-strip \
58         --with-pthreads \
59         --enable-ipv6
60
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT%{_aclocaldir}
66
67 cd mozilla/nsprpub
68 %{__make} install \
69         NSDISTMODE=copy
70
71 install config/%{name}.m4 $RPM_BUILD_ROOT%{_aclocaldir}
72 install config/%{name}-config $RPM_BUILD_ROOT%{_bindir}
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post   -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
79
80 %files
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_libdir}/lib*.so
83
84 %files devel
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_bindir}/nspr-config
87 %{_includedir}/nspr
88 %{_aclocaldir}/*.m4
89
90 %files static
91 %defattr(644,root,root,755)
92 %attr(644,root,root) %{_libdir}/lib*.a
This page took 0.066403 seconds and 4 git commands to generate.