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