]> git.pld-linux.org Git - packages/nspr.git/blob - nspr.spec
- ashes to ashes, dust to dust
[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.3
5 Release:        1
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 # Source0-md5:  df714fd7179508ddd1d2c31abfaa8450
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
51 %build
52 cd mozilla/nsprpub
53 %{__autoconf}
54 # don't use "--disable-strip" - it will cause stripping
55 %configure \
56         --with-dist-prefix=$RPM_BUILD_ROOT%{_prefix} \
57         --with-mozilla \
58         --enable-optimize="%{rpmcflags}" \
59         --%{?debug:en}%{!?debug:dis}able-debug \
60         %{!?debug:--enable-strip} \
61         --with-pthreads \
62         --enable-ipv6
63
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_aclocaldir}
69
70 cd mozilla/nsprpub
71 %{__make} install \
72         NSDISTMODE=copy
73
74 install config/%{name}.m4 $RPM_BUILD_ROOT%{_aclocaldir}
75 install config/%{name}-config $RPM_BUILD_ROOT%{_bindir}
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
84 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_libdir}/lib*.so
86
87 %files devel
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_bindir}/nspr-config
90 %{_includedir}/nspr
91 %{_aclocaldir}/*.m4
92
93 %files static
94 %defattr(644,root,root,755)
95 %attr(644,root,root) %{_libdir}/lib*.a
This page took 0.103192 seconds and 3 git commands to generate.