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