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