Skip to content

Commit 1c143a5

Browse files
committed
Some small spec updates to make things build in mock.
1 parent 19af2a4 commit 1c143a5

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

nspr/mingw32-nspr.spec

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Summary: MinGW Windows port of the Netscape Portable Runtime (NSPR)
88
Name: mingw32-nspr
99
Version: 4.8
10-
Release: 1%{?dist}
10+
Release: 2%{?dist}
1111
License: MPLv1.1 or GPLv2+ or LGPLv2+
1212
URL: http://www.mozilla.org/projects/nspr/
1313
Group: System Environment/Libraries
@@ -25,10 +25,14 @@ Source2: nspr-config-vars.in
2525
Patch1: nspr-config-pc.patch
2626
Patch1000: mingw32-nspr-4.7.2-build.patch
2727
Patch1001: mingw32-nspr-4.7.2-extra-build.patch
28+
Patch1002: nspr-configure-fedora-cross.patch
2829

2930
BuildRequires: mingw32-filesystem >= 33
3031
BuildRequires: mingw32-gcc
32+
BuildRequires: mingw32-gcc-c++
3133
BuildRequires: mingw32-binutils
34+
# XXX not sure if this is really required
35+
BuildRequires: mingw32-dlfcn
3236

3337
Requires: pkgconfig
3438

@@ -62,6 +66,7 @@ cp ./mozilla/nsprpub/config/nspr-config.in ./mozilla/nsprpub/config/nspr-config-
6266
pushd ./mozilla/nsprpub
6367
%patch1000 -p0
6468
%patch1001 -p0
69+
%patch1002 -p4
6570
popd
6671

6772
cp %{SOURCE2} ./mozilla/nsprpub/config/
@@ -159,6 +164,9 @@ popd
159164
#%{_mingw32_libdir}/libplds4_s.a
160165

161166
%changelog
167+
* Sun Jan 31 2010 Amorilia <amorilia@users.sourceforge.net> - 4.8-2
168+
- Another fix for build inside mock.
169+
162170
* Fri Oct 9 2009 Amorilia <amorilia@users.sourceforge.net> - 4.8-1
163171
- Update to 4.8
164172
- Fix for libplds4.dll.a import library
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
diff --git a/nspr-4.8/mozilla/nsprpub/configure b/nspr-4.8/mozilla/nsprpub/configure
2+
index 542542d..7512a24 100755
3+
--- a/nspr-4.8/mozilla/nsprpub/configure
4+
+++ b/nspr-4.8/mozilla/nsprpub/configure
5+
@@ -2599,6 +2599,9 @@ else
6+
CROSS_COMPILE=
7+
fi
8+
9+
+# amorilia: this hack fixes the fedora build in mock (don't ask why)
10+
+CROSS_COMPILE=
11+
+
12+
echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6
13+
echo "configure:2604: checking for gcc -pipe support" >&5
14+
if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then
15+
diff --git a/nspr-4.8/mozilla/nsprpub/configure.in b/nspr-4.8/mozilla/nsprpub/configure.in
16+
index 40310c0..0004251 100644
17+
--- a/nspr-4.8/mozilla/nsprpub/configure.in
18+
+++ b/nspr-4.8/mozilla/nsprpub/configure.in
19+
@@ -525,6 +525,9 @@ else
20+
CROSS_COMPILE=
21+
fi
22+
23+
+# amorilia: this hack fixes the fedora build in mock (don't ask why)
24+
+CROSS_COMPILE=
25+
+
26+
dnl ========================================================
27+
dnl Check for gcc -pipe support
28+
dnl ========================================================

0 commit comments

Comments
 (0)