[perl-Crypt-Cracklib] Fix the conditions
Petr Pisar
ppisar at fedoraproject.org
Mon Jun 11 14:13:31 UTC 2012
commit d9c61008fed0db8733c26a078a3a9625b2a18661
Author: Petr Písař <ppisar at redhat.com>
Date: Mon Jun 11 16:06:23 2012 +0200
Fix the conditions
The (0%{?fedora} <= 14) matches any RHEL and vice versa. The conditions were
wrong.
perl-Crypt-Cracklib.spec | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/perl-Crypt-Cracklib.spec b/perl-Crypt-Cracklib.spec
index 3ab07d4..36e289f 100644
--- a/perl-Crypt-Cracklib.spec
+++ b/perl-Crypt-Cracklib.spec
@@ -1,16 +1,7 @@
-%if 0%{?fedora} <=14
+%if (0%{?fedora} <= 14) && !(0%{?rhel})
%define auto %{perl_archlib}/auto
%define archlib %{perl_archlib}
-%endif
-%if 0%{?fedora} >= 15
-%define auto %{perl_vendorarch}/auto
-%define archlib %{perl_vendorarch}
-%endif
-%if 0%{?rhel} <= 5
-%define auto %{perl_vendorarch}/auto
-%define archlib %{perl_vendorarch}
-%endif
-%if 0%{?rhel} >= 6
+%else
%define auto %{perl_vendorarch}/auto
%define archlib %{perl_vendorarch}
%endif
@@ -83,6 +74,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Jun 11 2012 Petr Pisar <ppisar at redhat.com> - 1.7-5
- Perl 5.16 rebuild
+- Fix dependencies
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list