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