]> git.pld-linux.org Git - packages/nspr.git/blob - nspr.spec
- updated to 4.9
[packages/nspr.git] / nspr.spec
1 Summary:        Netscape Portable Runtime (NSPR)
2 Summary(pl.UTF-8):      Przenośne biblioteki uruchomieniowe Netscape
3 Name:           nspr
4 Version:        4.9
5 Release:        1
6 Epoch:          1
7 License:        MPL v1.1 or GPL v2+ or LGPL v2.1+
8 Group:          Libraries
9 Source0:        http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
10 # Source0-md5:  aa0c960b23a9d66a3c30c3e6ba80a99a
11 Source1:        %{name}-mozilla-nspr.pc
12 Patch0:         %{name}-acfix.patch
13 Patch1:         %{name}-sparc64.patch
14 URL:            http://www.mozilla.org/projects/nspr/
15 BuildRequires:  autoconf >= 2.12
16 BuildRequires:  automake
17 BuildRequires:  sed >= 4.0
18 Obsoletes:      nspr-pthreads
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Libraries that implement cross-platform runtime services from
23 Netscape.
24
25 %description -l pl.UTF-8
26 Biblioteki z wieloplatformową implementacją usług
27 uruchomieniowych Netscape'a.
28
29 %package devel
30 Summary:        NSPR library header files for development
31 Summary(pl.UTF-8):      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.UTF-8
40 Pliki nagłówkowe bibliotek NSPR Netscape'a.
41
42 %package static
43 Summary:        Static NSPR library
44 Summary(pl.UTF-8):      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.UTF-8
53 Statyczna biblioteka NSPR.
54
55 %prep
56 %setup -q
57 %patch0 -p1
58 %patch1 -p0
59
60 install %{SOURCE1} mozilla/nsprpub/nspr-mozilla-nspr.pc.in
61
62 # Win32-specific, requires autoconf2.13
63 %{__rm} mozilla/nsprpub/build/autoconf/acwinpaths.m4 \
64         mozilla/nsprpub/aclocal.m4
65
66 %build
67 cd mozilla/nsprpub
68 cp -f /usr/share/automake/config.sub build/autoconf
69 %{__autoconf}
70 %configure \
71         --includedir=%{_includedir}/nspr \
72 %ifarch %{x8664} ppc64
73         --enable-64bit \
74 %endif
75         --%{?debug:en}%{!?debug:dis}able-debug \
76         --enable-ipv6 \
77         --enable-optimize="%{rpmcflags}" \
78         --with-mozilla \
79         --with-pthreads
80
81 %{__make}
82
83 ./config.status --file=nspr-mozilla-nspr.pc
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
88
89 %{__make} -C mozilla/nsprpub install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 install mozilla/nsprpub/nspr-mozilla-nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc
93
94 ln -s mozilla-nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/nspr.pc
95
96 %{__rm} $RPM_BUILD_ROOT%{_bindir}/{compile-et.pl,prerr.properties}
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}/libnspr4.so
107 %attr(755,root,root) %{_libdir}/libplc4.so
108 %attr(755,root,root) %{_libdir}/libplds4.so
109
110 %files devel
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_bindir}/nspr-config
113 %{_includedir}/nspr
114 %{_aclocaldir}/nspr.m4
115 %{_pkgconfigdir}/mozilla-nspr.pc
116 %{_pkgconfigdir}/nspr.pc
117
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/libnspr4.a
121 %{_libdir}/libplc4.a
122 %{_libdir}/libplds4.a
This page took 0.654664 seconds and 4 git commands to generate.