[pth] Use %_isa in -devel package dependency. Use %_libdir not %ifarch in %check section.
Michael Schwendt
mschwendt at fedoraproject.org
Fri Sep 16 19:51:43 UTC 2011
commit 9448cabfe31bec6be4d06cbe7b707bd7d566e3ba
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date: Fri Sep 16 21:51:31 2011 +0200
Use %_isa in -devel package dependency.
Use %_libdir not %ifarch in %check section.
pth.spec | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/pth.spec b/pth.spec
index 1b57df6..5bded79 100644
--- a/pth.spec
+++ b/pth.spec
@@ -1,7 +1,7 @@
Summary: The GNU Portable Threads library
Name: pth
Version: 2.0.7
-Release: 10
+Release: 11%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gnu.org/software/pth/
@@ -22,7 +22,7 @@ stack, signal mask and errno variable.
%package devel
Summary: Development headers and libraries for GNU Pth
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development headers and libraries for GNU Pth.
@@ -65,9 +65,9 @@ make %{?_smp_mflags}
%check
make test
l=$($(pwd)/pth-config --libdir)
-%ifarch x86_64 ppc64
+if [ "%{_libdir}" == "/usr/lib64" ]; then
[ "$l" == "/usr/lib64" ]
-%endif
+fi
%install
@@ -102,6 +102,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Sep 16 2011 Michael Schwendt <mschwendt at fedoraproject.org> - 2.0.7-11
+- Use %%_isa in -devel package dependency.
+- Use %%_libdir not %%ifarch in %%check section.
+
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.7-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list