[chicken] Initial import (#960664)
Ricky Elrod
codeblock at fedoraproject.org
Wed May 8 17:55:57 UTC 2013
commit 6069c07d1c1303e1cb33be6745c4fae2a8a211dd
Author: Ricky Elrod <ricky at elrod.me>
Date: Wed May 8 13:53:25 2013 -0400
Initial import (#960664)
.gitignore | 1 +
chicken.spec | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 106 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..addd646 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/chicken-4.8.0.3.tar.gz
diff --git a/chicken.spec b/chicken.spec
new file mode 100644
index 0000000..7c4e9ce
--- /dev/null
+++ b/chicken.spec
@@ -0,0 +1,104 @@
+%global bootstrap 1
+
+Name: chicken
+Version: 4.8.0.3
+Release: 1%{?dist}
+Summary: A practical and portable Scheme system
+
+Group: Development/Languages
+License: BSD
+URL: http://call-cc.org
+Source0: http://code.call-cc.org/releases/4.8.0/%{name}-%{version}.tar.gz
+BuildRequires: hostname chrpath
+
+%description
+CHICKEN is a compiler for the Scheme programming language.
+CHICKEN produces portable, efficient C, supports almost all of the R5RS
+Scheme language standard, and includes many enhancements and extensions.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%package doc
+Summary: Documentation files for CHICKEN scheme.
+
+%description doc
+Documentation for CHICKEN (chicken-scheme).
+
+%build
+%if %{bootstrap} == 0
+
+# This removes all C code from the repo, and leaves us only with Scheme code.
+# Otherwise, it will try to compile C, defeating the point of bootstrapping.
+make PLATFORM=linux spotless
+
+# The above command nukes a necessary buildtag file, and there's no way that
+# I can find to regenerate it - so instead we just generate it ourselves.
+echo "#define C_BUILD_TAG \"compiled $(date '+%Y-%m-%d') on $(hostname)\"" > buildtag.h
+
+%endif
+
+make CFLAGS="%{optflags}" \
+ PREFIX=%{_prefix} \
+ BINDIR=%{_bindir} \
+ LIBDIR=%{_libdir} \
+ DATADIR=%{_datadir}/chicken \
+ INCLUDEDIR=%{_includedir}/chicken \
+ INFODIR=%{_infodir}/chicken \
+ TOPMANDIR=%{_mandir} \
+ DOCDIR=%{_docdir}/chicken \
+ PLATFORM=linux
+
+%install
+make CFLAGS="%{optflags}" \
+ PREFIX=%{_prefix} \
+ BINDIR=%{_bindir} \
+ LIBDIR=%{_libdir} \
+ DATADIR=%{_datadir}/chicken \
+ INCLUDEDIR=%{_includedir}/chicken \
+ INFODIR=%{_infodir}/chicken \
+ TOPMANDIR=%{_mandir} \
+ DOCDIR=%{_docdir}/chicken \
+ DESTDIR=%{buildroot} \
+ PLATFORM=linux install
+
+rm -f %{buildroot}/%{_docdir}/%{name}/LICENSE %{buildroot}/%{_docdir}/%{name}/README
+
+find %{buildroot} -name \*.so -exec chrpath --delete \{\} \;
+find %{buildroot} -name \*.a -exec rm \{\} \;
+chrpath --delete %{buildroot}/%{_bindir}/*
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc README LICENSE
+%dir %{_datadir}/chicken
+%{_datadir}/chicken/setup.defaults
+%{_bindir}/chicken*
+%{_bindir}/csc
+%{_bindir}/csi
+%dir %{_includedir}/chicken
+%{_includedir}/chicken/chicken-config.h
+%{_includedir}/chicken/chicken.h
+%{_libdir}/libchicken.so
+%{_libdir}/libchicken.so.6
+%dir %{_libdir}/chicken
+%dir %{_libdir}/chicken/6
+%{_libdir}/chicken/6/*
+%{_mandir}/man1/*
+
+%files doc
+%{_docdir}/chicken/manual
+
+%changelog
+* Sun May 05 2013 Ricky Elrod <codeblock at fedoraproject.org> 4.8.0.3-1
+- Clean spec file up a lot.
+- Bump to latest upstream release.
+
+* Thu May 03 2012 J R Jones <fedora at zaniyah.org> 4.7.0-2
+- Separated into separate sub-packages
+
+* Thu May 03 2012 J R Jones <fedora at zaniyah.org> 4.7.0-1
+- Specfile created.
diff --git a/sources b/sources
index e69de29..78d517a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bd680e2956c272facb58de1c7bd87b99 chicken-4.8.0.3.tar.gz
More information about the scm-commits
mailing list