]> git.pld-linux.org Git - packages/nspr.git/blobdiff - nspr.spec
- updated to 4.6.5
[packages/nspr.git] / nspr.spec
index 6b0b9f018d1fb9dd890f085dbfc220a45317f207..4a2b6e102b5ba12ba227cd723eac1ee029cb944f 100644 (file)
--- a/nspr.spec
+++ b/nspr.spec
@@ -1,16 +1,17 @@
 Summary:       Netscape Portable Runtime (NSPR)
 Summary(pl):   Przeno¶ne biblioteki uruchomieniowe Netscape
 Name:          nspr
-Version:       4.6
-Release:       2
+Version:       4.6.5
+Release:       1
 Epoch:         1
 License:       MPL v1.1 or GPL v2+ or LGPL v2.1+
 Group:         Libraries
-Source0:       http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
-# Source0-md5: a37c3cde875502e05576429312452465
+Source0:       ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
+# Source0-md5: 9bf15436496cb6bd96c1939f3ffb839f
 Source1:       %{name}-mozilla-nspr.pc
 Patch0:                %{name}-am18.patch
 Patch1:                %{name}-acfix.patch
+URL:           http://www.mozilla.org/projects/nspr/
 BuildRequires: autoconf >= 2.12
 BuildRequires: automake
 BuildRequires: sed >= 4.0
@@ -67,6 +68,9 @@ cp -f /usr/share/automake/config.sub build/autoconf
        --with-dist-prefix=$RPM_BUILD_ROOT%{_prefix} \
        --with-dist-libdir=$RPM_BUILD_ROOT%{_libdir} \
        --with-mozilla \
+%ifarch %{x8664} ppc64
+       --enable-64bit \
+%endif
        --enable-optimize="%{rpmcflags}" \
        --%{?debug:en}%{!?debug:dis}able-debug \
        %{!?debug:--enable-strip} \
@@ -92,6 +96,11 @@ sed \
        -e 's#VERSION#%{version}#g' \
        %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nspr.pc
 
+ln -s mozilla-nspr.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/nspr.pc
+
+# let rpm find deps
+chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -111,4 +120,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %files static
 %defattr(644,root,root,755)
-%attr(644,root,root) %{_libdir}/lib*.a
+%{_libdir}/lib*.a
This page took 0.039693 seconds and 4 git commands to generate.