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