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