]> git.pld-linux.org Git - packages/nspr.git/blob - nspr.spec
- updated to 4.5.1 ("released" in cvs)
[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.5.1
5 Release:        1
6 Epoch:          1
7 License:        MPL or GPL
8 Group:          Libraries
9 # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/nsprpub -r NSPR_4_5_1_RTM
10 Source0:        %{name}-4.5.1.tar.bz2
11 # Source0-md5:  da9d2fef8ae0343bfac120ef48264187
12 #Source0:       http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
13 Patch0:         %{name}-am18.patch
14 Patch1:         %{name}-acfix.patch
15 Patch2:         %{name}-libdir.patch
16 BuildRequires:  autoconf >= 2.12
17 BuildRequires:  automake
18 Obsoletes:      nspr-pthreads
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Libraries that implement cross-platform runtime services from
23 Netscape.
24
25 %description -l pl
26 Biblioteki z wieloplatformow± implementacj± us³ug z Netscape.
27
28 %package devel
29 Summary:        NSPR library header files for development
30 Summary(pl):    Pliki nag³ówkowe bibliotek NSPR
31 Group:          Development/Libraries
32 Requires:       %{name} = %{epoch}:%{version}-%{release}
33 Obsoletes:      nspr-pthreads-devel
34
35 %description devel
36 Header files for the NSPR library from Netscape.
37
38 %description devel -l pl
39 Pliki nag³ówkowe bibliotek NSPR z Netscape.
40
41 %package static
42 Summary:        Static NSPR library
43 Summary(pl):    Statyczna biblioteka NSPR
44 Group:          Development/Libraries
45 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
46 Obsoletes:      nspr-pthreads-static
47
48 %description static
49 Static NSPR library.
50
51 %description static -l pl
52 Statyczna biblioteka NSPR.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57 %patch1 -p1
58 %patch2 -p1
59
60 %build
61 cd mozilla/nsprpub
62 cp -f /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.046384 seconds and 4 git commands to generate.