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