[mlton] Clean up auto dependencies
Adam Goode
agoode at fedoraproject.org
Fri Aug 12 16:30:13 UTC 2011
commit 8ad6fd4de0190ea9404e0bf197093d4e138286df
Author: Adam Goode <adam at spicenitz.org>
Date: Fri Aug 12 12:29:56 2011 -0400
Clean up auto dependencies
mlton.spec | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/mlton.spec b/mlton.spec
index b9429fa..71dcde6 100644
--- a/mlton.spec
+++ b/mlton.spec
@@ -2,7 +2,7 @@
Name: mlton
Version: 20100608
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Optimizing compiler for Standard ML
Group: Development/Languages
@@ -26,6 +26,16 @@ ExclusiveArch: %{ix86} x86_64 %{arm} ppc
Requires: gmp-devel gcc
+# filter out false dependencies
+%{?filter_setup:
+%filter_provides_in %{_docdir}
+%filter_requires_in %{_docdir}
+%filter_provides_in %{_libdir}/mlton/sml
+%filter_requires_in %{_libdir}/mlton/sml
+%filter_setup
+}
+
+
# description taken from the Debian package by Stephen Weeks
%description
MLton is a whole-program optimizing compiler for Standard ML. MLton
@@ -50,16 +60,6 @@ sed -i 's/\(^lib=\).*$/\1\$MLTON_BOOTSTRAP_DIR\/lib\/mlton/g' \
usr/bin/mlton
%endif
-# Filter unwanted Requires:
-cat << \EOF > %{name}-req
-#!/bin/sh
-%{__perl_requires} $* |\
- sed -e '/perl(mltex.thm)/d'
-EOF
-
-%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
-chmod +x %{__perl_requires}
-
%build
%if %{mlton_bootstrap}
@@ -80,7 +80,6 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/mlton/sml/ckit-lib/regression
%files
-%defattr(-,root,root,-)
%doc %{_docdir}/%{name}-%{version}
%{_bindir}/ml*
%{_libdir}/mlton
@@ -88,6 +87,9 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/mlton/sml/ckit-lib/regression
%changelog
+* Fri Aug 12 2011 Adam Goode <adam at spicenitz.org> - 20100608-5
+- Clean up auto dependences
+
* Fri Mar 11 2011 Dan Horák <dan[at]danny.cz> - 20100608-4
- set ExclusiveArch
More information about the scm-commits
mailing list