]> git.pld-linux.org Git - packages/nspr.git/blob - nspr.spec
- updated to 4.5.0-20040117 snap
[packages/nspr.git] / nspr.spec
1 %define snap    20040117
2 Summary:        Netscape Portable Runtime (NSPR)
3 Summary(pl):    Przeno¶ne biblioteki uruchomieniowe Netscape
4 Name:           nspr
5 Version:        4.5.0
6 Release:        0.%{snap}.1
7 Epoch:          1
8 License:        MPL or GPL
9 Group:          Libraries
10 Source0:        %{name}-%{version}-%{snap}.tar.bz2
11 # Source0-md5:  78aad414c7b958809ecad63c47a8d14e
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}-amd64.patch
16 Patch3:         %{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}
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}
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
57 %patch0 -p1
58 %patch1 -p1
59 %patch2 -p1
60 %patch3 -p1
61
62 %build
63 cd mozilla/nsprpub
64 cp /usr/share/automake/config.sub build/autoconf/
65 %{__autoconf}
66 # don't use "--disable-strip" - it will cause stripping
67 %configure \
68         --with-dist-prefix=$RPM_BUILD_ROOT%{_prefix} \
69         --with-dist-libdir=$RPM_BUILD_ROOT%{_libdir} \
70         --with-mozilla \
71         --enable-optimize="%{rpmcflags}" \
72         --%{?debug:en}%{!?debug:dis}able-debug \
73         %{!?debug:--enable-strip} \
74         --with-pthreads \
75         --enable-ipv6
76
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT%{_aclocaldir}
82
83 cd mozilla/nsprpub
84 %{__make} install \
85         NSDISTMODE=copy
86
87 install config/%{name}.m4 $RPM_BUILD_ROOT%{_aclocaldir}
88 install config/%{name}-config $RPM_BUILD_ROOT%{_bindir}
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/lib*.so
99
100 %files devel
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_bindir}/nspr-config
103 %{_includedir}/nspr
104 %{_aclocaldir}/*.m4
105
106 %files static
107 %defattr(644,root,root,755)
108 %attr(644,root,root) %{_libdir}/lib*.a
This page took 1.029748 seconds and 4 git commands to generate.