]> git.pld-linux.org Git - packages/nspr.git/blob - nspr.spec
- updated to 4.6.5
[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
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:  9bf15436496cb6bd96c1939f3ffb839f
11 Source1:        %{name}-mozilla-nspr.pc
12 Patch0:         %{name}-am18.patch
13 Patch1:         %{name}-acfix.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
26 Biblioteki z wieloplatformow± implementacj± us³ug z Netscape.
27
28 %package devel
29 Summary:        NSPR library header files for development
30 Summary(pl):    Pliki nag³ówkowe bibliotek NSPR
31 Group:          Development/Libraries
32 Requires:       %{name} = %{epoch}:%{version}-%{release}
33 Obsoletes:      nspr-pthreads-devel
34
35 %description devel
36 Header files for the NSPR library from Netscape.
37
38 %description devel -l pl
39 Pliki nag³ówkowe bibliotek NSPR z Netscape.
40
41 %package static
42 Summary:        Static NSPR library
43 Summary(pl):    Statyczna biblioteka NSPR
44 Group:          Development/Libraries
45 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
46 Obsoletes:      nspr-pthreads-static
47
48 %description static
49 Static NSPR library.
50
51 %description static -l pl
52 Statyczna biblioteka NSPR.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57 %patch1 -p1
58
59 # @includedir@ is not updated to .../nspr
60 sed -i -e 's,@includedir@,%{_includedir}/nspr,' mozilla/nsprpub/config/nspr-config.in
61
62 %build
63 cd mozilla/nsprpub
64 cp -f /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 %ifarch %{x8664} ppc64
72         --enable-64bit \
73 %endif
74         --enable-optimize="%{rpmcflags}" \
75         --%{?debug:en}%{!?debug:dis}able-debug \
76         %{!?debug:--enable-strip} \
77         --with-pthreads \
78         --enable-ipv6
79
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{%{_aclocaldir},%{_pkgconfigdir}}
85
86 cd mozilla/nsprpub
87 %{__make} install \
88         NSDISTMODE=copy
89
90 install config/%{name}.m4 $RPM_BUILD_ROOT%{_aclocaldir}
91 install config/%{name}-config $RPM_BUILD_ROOT%{_bindir}
92
93 sed \
94         -e 's#libdir=.*#libdir=%{_libdir}#g' \
95         -e 's#includedir=.*#includedir=%{_includedir}#g' \
96         -e 's#VERSION#%{version}#g' \
97         %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc
98
99 ln -s mozilla-nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/nspr.pc
100
101 # let rpm find deps
102 chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/lib*.so
113
114 %files devel
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_bindir}/nspr-config
117 %{_includedir}/nspr
118 %{_aclocaldir}/*.m4
119 %{_pkgconfigdir}/*.pc
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/lib*.a
This page took 0.03346 seconds and 4 git commands to generate.