[chicken] fix build by moving BuildRequires from subpackage to base package / also move ldconfig scriptlet cal

Michael Schwendt mschwendt at fedoraproject.org
Sun Dec 15 01:38:22 UTC 2013


commit e0bd49fca898c6960e0ff3ef73556d87592c6a47
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Sun Dec 15 02:38:25 2013 +0100

    fix build by moving BuildRequires from subpackage to base package / also move ldconfig scriptlet calls to -libs subpackage

 chicken.spec |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/chicken.spec b/chicken.spec
index e140853..d66a169 100644
--- a/chicken.spec
+++ b/chicken.spec
@@ -17,13 +17,6 @@ Requires:       chicken-libs%{?_isa} = %{version}-%{release}
 Obsoletes:      chicken-doc < 4.8.0.5-3
 Provides:       chicken-doc = %{version}-%{release}
 
-%package libs
-Summary:        Chicken Scheme runtime library
-
-%description libs
-The Chicken Scheme runtime library, linked to by programs compiled with
-Chicken.
-
 %if 0%{?rhel}
 BuildRequires:  net-tools
 %else
@@ -34,6 +27,13 @@ BuildRequires:  hostname
 BuildRequires:  chicken
 %endif
 
+%package libs
+Summary:        Chicken Scheme runtime library
+
+%description libs
+The Chicken Scheme runtime library, linked to by programs compiled with
+Chicken.
+
 %description
 CHICKEN is a compiler for the Scheme programming language.
 CHICKEN produces portable, efficient C, supports almost all of the R5RS
@@ -92,9 +92,9 @@ find %{buildroot} -name \*.so -exec chrpath --delete \{\} \;
 find %{buildroot} -name \*.a -exec rm \{\} \;
 chrpath --delete %{buildroot}/%{_bindir}/*
 
-%post -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
 
-%postun -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
 
 %files
 %doc README LICENSE


More information about the scm-commits mailing list