]> git.pld-linux.org Git - packages/nspr.git/blob - nspr.spec
- updated to 4.6.1
[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.1
5 Release:        1
6 Epoch:          1
7 License:        MPL v1.1 or GPL v2+ or LGPL v2.1+
8 Group:          Libraries
9 Source0:        ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
10 # Source0-md5:  267a63dec54e72b02831d3083fd9faaf
11 Source1:        %{name}-mozilla-nspr.pc
12 Patch0:         %{name}-am18.patch
13 Patch1:         %{name}-acfix.patch
14 BuildRequires:  autoconf >= 2.12
15 BuildRequires:  automake
16 BuildRequires:  sed >= 4.0
17 Obsoletes:      nspr-pthreads
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Libraries that implement cross-platform runtime services from
22 Netscape.
23
24 %description -l pl
25 Biblioteki z wieloplatformow± implementacj± us³ug z Netscape.
26
27 %package devel
28 Summary:        NSPR library header files for development
29 Summary(pl):    Pliki nag³ówkowe bibliotek NSPR
30 Group:          Development/Libraries
31 Requires:       %{name} = %{epoch}:%{version}-%{release}
32 Obsoletes:      nspr-pthreads-devel
33
34 %description devel
35 Header files for the NSPR library from Netscape.
36
37 %description devel -l pl
38 Pliki nag³ówkowe bibliotek NSPR z Netscape.
39
40 %package static
41 Summary:        Static NSPR library
42 Summary(pl):    Statyczna biblioteka NSPR
43 Group:          Development/Libraries
44 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
45 Obsoletes:      nspr-pthreads-static
46
47 %description static
48 Static NSPR library.
49
50 %description static -l pl
51 Statyczna biblioteka NSPR.
52
53 %prep
54 %setup -q
55 %patch0 -p1
56 %patch1 -p1
57
58 # @includedir@ is not updated to .../nspr
59 sed -i -e 's,@includedir@,%{_includedir}/nspr,' mozilla/nsprpub/config/nspr-config.in
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 %ifarch %{x8664} ppc64
71         --enable-64bit \
72 %endif
73         --enable-optimize="%{rpmcflags}" \
74         --%{?debug:en}%{!?debug:dis}able-debug \
75         %{!?debug:--enable-strip} \
76         --with-pthreads \
77         --enable-ipv6
78
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_aclocaldir},%{_pkgconfigdir}}
84
85 cd mozilla/nsprpub
86 %{__make} install \
87         NSDISTMODE=copy
88
89 install config/%{name}.m4 $RPM_BUILD_ROOT%{_aclocaldir}
90 install config/%{name}-config $RPM_BUILD_ROOT%{_bindir}
91
92 sed \
93         -e 's#libdir=.*#libdir=%{_libdir}#g' \
94         -e 's#includedir=.*#includedir=%{_includedir}#g' \
95         -e 's#VERSION#%{version}#g' \
96         %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %post   -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
103
104 %files
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/lib*.so
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/nspr-config
111 %{_includedir}/nspr
112 %{_aclocaldir}/*.m4
113 %{_pkgconfigdir}/*.pc
114
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/lib*.a
This page took 0.207889 seconds and 4 git commands to generate.