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