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