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