]> git.pld-linux.org Git - packages/nspr.git/blob - nspr.spec
35fbecd6c5cc51efae425ee90ba7675886771318
[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 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:  a37c3cde875502e05576429312452465
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 Obsoletes:      nspr-pthreads
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Libraries that implement cross-platform runtime services from
21 Netscape.
22
23 %description -l pl
24 Biblioteki z wieloplatformow± implementacj± us³ug z Netscape.
25
26 %package devel
27 Summary:        NSPR library header files for development
28 Summary(pl):    Pliki nag³ówkowe bibliotek NSPR
29 Group:          Development/Libraries
30 Requires:       %{name} = %{epoch}:%{version}-%{release}
31 Obsoletes:      nspr-pthreads-devel
32
33 %description devel
34 Header files for the NSPR library from Netscape.
35
36 %description devel -l pl
37 Pliki nag³ówkowe bibliotek NSPR z Netscape.
38
39 %package static
40 Summary:        Static NSPR library
41 Summary(pl):    Statyczna biblioteka NSPR
42 Group:          Development/Libraries
43 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
44 Obsoletes:      nspr-pthreads-static
45
46 %description static
47 Static NSPR library.
48
49 %description static -l pl
50 Statyczna biblioteka NSPR.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55 %patch1 -p1
56
57 %build
58 cd mozilla/nsprpub
59 cp -f /usr/share/automake/config.sub build/autoconf
60 %{__autoconf}
61 # don't use "--disable-strip" - it will cause stripping
62 %configure \
63         --with-dist-prefix=$RPM_BUILD_ROOT%{_prefix} \
64         --with-dist-libdir=$RPM_BUILD_ROOT%{_libdir} \
65         --with-mozilla \
66         --enable-optimize="%{rpmcflags}" \
67         --%{?debug:en}%{!?debug:dis}able-debug \
68         %{!?debug:--enable-strip} \
69         --with-pthreads \
70         --enable-ipv6
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{%{_aclocaldir},%{_pkgconfigdir}}
77
78 cd mozilla/nsprpub
79 %{__make} install \
80         NSDISTMODE=copy
81
82 install config/%{name}.m4 $RPM_BUILD_ROOT%{_aclocaldir}
83 install config/%{name}-config $RPM_BUILD_ROOT%{_bindir}
84
85 sed \
86         -e 's#libdir=.*#libdir=%{_libdir}#g' \
87         -e 's#includedir=.*#includedir=%{_includedir}#g' \
88         -e 's#VERSION#%{version}#g' \
89         %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc
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 %{_pkgconfigdir}/*.pc
107
108 %files static
109 %defattr(644,root,root,755)
110 %attr(644,root,root) %{_libdir}/lib*.a
This page took 0.036046 seconds and 3 git commands to generate.