]> git.pld-linux.org Git - packages/nspr.git/blobdiff - nspr.spec
- updated Source0 URL to one that gives reliable results (ftp does not)
[packages/nspr.git] / nspr.spec
index f06794b2b847c5a3b2b2caf1877880efe233073a..df0556554783926f952b6129862fc3fd10add508 100644 (file)
--- a/nspr.spec
+++ b/nspr.spec
@@ -1,19 +1,19 @@
+
+%define                _snap   20030517
+
 Summary:       Netscape Portable Runtime (NSPR)
 Summary(pl):   Przeno¶ne biblioteki uruchomieniowe Netscape
 Name:          nspr
-Version:       4.1.2
-Release:       2
+Version:       4.3
+Release:       2.%{_snap}
+Epoch:         1
 License:       GPL
 Group:         Libraries
-Group(de):     Libraries
-Group(es):     Bibliotecas
-Group(fr):     Librairies
-Group(pl):     Biblioteki
-Group(pt_BR):  Bibliotecas
-Group(ru):     âÉÂÌÉÏÔÅËÉ
-Group(uk):     â¦Â̦ÏÔÅËÉ
-Source0:       ftp://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
-Patch0:                %{name}-moz0.9.6.patch.gz
+#Source0:      http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
+Source0:       %{name}-%{_snap}.tar.gz
+# Source0-md5: 3392849244f60ce772ec91c0a5d92546
+BuildRequires: autoconf
+Obsoletes:     nspr-pthreads
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -27,14 +27,8 @@ Biblioteki z wieloplatformow
 Summary:       NSPR library header files for development
 Summary(pl):   Pliki nag³ówkowe bibliotek NSPR
 Group:         Development/Libraries
-Group(de):     Entwicklung/Libraries
-Group(es):     Desarrollo/Bibliotecas
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Group(pt_BR):  Desenvolvimento/Bibliotecas
-Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
-Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
+Obsoletes:     nspr-pthreads-devel
 
 %description devel
 Header files for the NSPR library from Netscape.
@@ -46,14 +40,8 @@ Pliki nag
 Summary:       Static NSPR library
 Summary(pl):   Statyczna biblioteka NSPR
 Group:         Development/Libraries
-Group(de):     Entwicklung/Libraries
-Group(es):     Desarrollo/Bibliotecas
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Group(pt_BR):  Desenvolvimento/Bibliotecas
-Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
-Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}
+Obsoletes:     nspr-pthreads-static
 
 %description static
 Static NSPR library.
@@ -62,30 +50,31 @@ Static NSPR library.
 Statyczna biblioteka NSPR.
 
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -c mozilla
 
 %build
 cd mozilla/nsprpub
-autoconf
+%{__autoconf}
+# don't use "--disable-strip" - it will cause stripping
 %configure \
        --with-dist-prefix=$RPM_BUILD_ROOT%{_prefix} \
        --with-mozilla \
        --enable-optimize="%{rpmcflags}" \
-       --disable-debug \
-       --enable-strip \
+       --%{?debug:en}%{!?debug:dis}able-debug \
+       %{!?debug:--enable-strip} \
        --with-pthreads \
        --enable-ipv6
 
-%{__make}      
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_aclocaldir}
+
 cd mozilla/nsprpub
 %{__make} install \
        NSDISTMODE=copy
 
-install -d $RPM_BUILD_ROOT%{_aclocaldir}
 install config/%{name}.m4 $RPM_BUILD_ROOT%{_aclocaldir}
 install config/%{name}-config $RPM_BUILD_ROOT%{_bindir}
 
This page took 0.071917 seconds and 4 git commands to generate.