Name: chicken-scheme Version: 4.7.0 Release: 2%{?dist} Summary: CHICKEN is a compiler for the Scheme programming language. Group: Development/Languages License: BSD URL: http://call-cc.org Source0: http://code.call-cc.org/releases/%{version}/chicken-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %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. CHICKEN runs on Linux, MacOS X, Windows, and many Unix flavours. %prep %setup -q -n chicken-%{version} %package devel Summary: Development files for CHICKEN scheme. Provides: chicken-scheme-static = %{version}-%{release} %description devel 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. CHICKEN runs on Linux, MacOS X, Windows, and many Unix flavours. %package doc Summary: Documentation files for CHICKEN scheme. Provides: chicken-scheme-doc = %{version}-%{release} %description doc 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. CHICKEN runs on Linux, MacOS X, Windows, and many Unix flavours. %build # The Chicken Scheme maintainers don't currently use autoconf, so we won't # call configure. 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 %{__rm} -rf %{buildroot} 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 # Clean up documentation files that we already installed rm -f %{buildroot}/%{_docdir}/chicken/LICENSE %{buildroot}/%{_docdir}/chicken/README %check # Unfortunately the "make check" does not work within mock. It is a known # chicken bug. You can't "make check" unless you've already done "make # install". %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc README LICENSE ChangeLog* %dir %{_datadir}/chicken %{_datadir}/chicken/setup.defaults %{_bindir}/chicken %{_bindir}/chicken-bug %{_bindir}/chicken-install %{_bindir}/chicken-profile %{_bindir}/chicken-status %{_bindir}/chicken-uninstall %{_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/chicken-bug.1.gz %{_mandir}/man1/chicken-install.1.gz %{_mandir}/man1/chicken-profile.1.gz %{_mandir}/man1/chicken-status.1.gz %{_mandir}/man1/chicken-uninstall.1.gz %{_mandir}/man1/chicken.1.gz %{_mandir}/man1/csc.1.gz %{_mandir}/man1/csi.1.gz %files devel %{_libdir}/libchicken.a %files doc %{_docdir}/chicken/manual %changelog * Thu May 03 2012 J R Jones 4.7.0-2 - Separated into separate sub-packages * Thu May 03 2012 J R Jones 4.7.0-1 - Specfile created.