# Spec file to build Gauche RPM package # # We no longer build RPM files regularly. This file is provided to # help RPM builders. # # The files lists, rpmfiles*.txt, are generated by 'make rpmfiles' from # the installed Gauche. You have to first build and install Gauche locally, # then run 'make rpmfiles', then run rpm build. # # In order to build different encoding-specific packages (like # Gauche-euc-jp, etc) from a single source rpm, the actual package # is created as a subpackage. The command # # rpm -ba Gauche.spec # # builds three packages: # Gauche-VERS.ARCH.rpm ;; dummy package (no use; discard it) # Gauche-ENC-VERS.ARCH.rpm ;; binary package with encoding ENC # Gauche-VERS.src.rpm ;; source package %define version @GAUCHE_VERSION@ %define abi_version @GAUCHE_ABI_VERSION@ %define encoding utf8 %define threads pthreads Summary: Scheme script engine with multibyte character handling Name: Gauche Version: %{version} Release: 3 Source: Gauche-%{version}.tgz License: revised BSD Group: Development/Languages Packager: Shiro Kawai (shiro@acm.org) Buildroot: %{_tmppath}/rpm URL: https://practical-scheme.net/gauche/ #Prefix: /usr %description Gauche is a Scheme engine conforming Revised^7 Report on Algorithmic Language Scheme. It is designed for rapid development of daily tools like system management and text processing. It can handle multibyte character strings natively. %package %{encoding} Summary: Scheme script engine with multibyte character handling Group: Development/Languages Provides: Gauche libgauche.so License: revised BSD Requires: Gauche-common %description %{encoding} Gauche is a Scheme engine conforming Revised^7 Report on Algorithmic Language Scheme. It is designed for rapid development of daily tools like system management and text processing. It can handle multibyte character strings natively. This package is compiled with %{encoding} as the native character encoding. %package common Summary: Scheme script engine with multibyte character handling Group: Development/Languages License: revised BSD %description common Gauche is a Scheme engine conforming Revised^7 Report on Algorithmic Language Scheme. It is designed for rapid development of daily tools like system management and text processing. It can handle multibyte character strings natively. This package includes common part that is independent from any native character encoding. You need either Gauche-eucjp or Gauche-utf8 package as well. %package gdbm-%{encoding} Summary: gdbm binding for Gauche Scheme system Group: Development/Languages License: GPL Provides: Gauche-gdbm BuildRequires: gdbm-devel >= 1.8.0 Requires: gdbm >= 1.8.0, Gauche-%{encoding} %description gdbm-%{encoding} This package adds gdbm binding to the Gauche Scheme system. %prep %setup %build ./configure --prefix=/usr --mandir='${prefix}/share/man' --infodir='${prefix}/share/info' --enable-threads=%{threads} --enable-multibyte=%{encoding} %ifarch i386 make OPTFLAGS="-fomit-frame-pointer" %else make %endif %install # These dirs are not cleared after rpm -ba --clean. To ensure clean # install, we remove them. rm -rf ${RPM_BUILD_ROOT}/usr/lib/gauche-%{abi_version} rm -rf ${RPM_BUILD_ROOT}/usr/share/gauche-%{abi_version} rm -rf ${RPM_BUILD_ROOT}/usr/share/man/man1 mkdir -p ${RPM_BUILD_ROOT}/usr make DESTDIR=${RPM_BUILD_ROOT}/ install-pkg make DESTDIR=${RPM_BUILD_ROOT}/ install-doc %clean %post %post %{encoding} # creates slib catalog, if possible. /usr/bin/gosh -u slib -e "(require 'logical)" -e "(exit 0)" > /dev/null 2>&1 || echo %files common -f rpmfiles-common.txt %defattr(-,root,root) %doc COPYING ChangeLog INSTALL.in Gauche.spec /usr/share/info/ /usr/share/man/man1/ /usr/share/gauche-%{abi_version}/site /usr/share/aclocal/gauche.m4 %files %{encoding} -f rpmfiles-encoding.txt %defattr(-,root,root) /usr/bin/gosh /usr/bin/gauche-config /usr/bin/gauche-cesconv /usr/bin/gauche-install /usr/bin/gauche-package /usr/lib/libgauche-%{abi_version}.so /usr/lib/libgauche-%{abi_version}.so.0 /usr/lib/libgauche-%{abi_version}.so.0.* /usr/lib/gauche-%{abi_version}/site/ %files gdbm-%{encoding} -f rpmfiles-gdbm.txt %defattr(-,root,root) %changelog * Sat Dec 10 2020 Shiro Kawai - Gauche release 0.9.10 * Sat Dec 14 2019 Shiro Kawai - Gauche release 0.9.9 * Tue Jun 15 2019 Shiro Kawai - Gauche release 0.9.8 * Tue Dec 20 2018 Shiro Kawai - Gauche release 0.9.7 * Tue Jul 3 2018 Shiro Kawai - Gauche release 0.9.6 * Tue May 8 2018 Takahiro Kudou - 0.9.5-3 - The package of gdbm-devel was assigned to be required for build. * Mon May 7 2018 Takahiro Kudou - 0.9.5-2 - Fixed the description of incorrect day names of week in the changelog section. - The description of files was modified to avoid the error of file not found. - The doc file list was updated to match the packaged files. * Sat Oct 8 2016 Shiro Kawai - Gauche release 0.9.5. * Sat Jul 19 2014 Shiro Kawai - Gauche release 0.9.4. * Wed May 9 2012 Shiro Kawai - Gauche release 0.9.3. * Fri Aug 5 2011 Shiro Kawai - Gauche release 0.9.2. * Sat Dec 11 2010 Shiro Kawai - Gauche release 0.9.1. * Mon Jan 4 2010 Shiro Kawai - Fix missing micro version of libgauche.so in %files section. * Sat Nov 21 2009 Shiro Kawai - Gauche release 0.9. * Mon Oct 6 2008 Shiro Kawai - Gauche release 0.8.14. * Wed Feb 13 2008 Shiro Kawai - Gauche release 0.8.13. * Mon Oct 29 2007 Shiro Kawai - Gauche release 0.8.12. * Thu Aug 16 2007 Shiro Kawai - Gauche release 0.8.11. * Wed Apr 18 2007 Shiro Kawai - Gauche release 0.8.10. * Wed Jan 17 2007 Shiro Kawai - Gauche release 0.8.9. * Sat Nov 11 2006 Shiro Kawai - Gauche release 0.8.8. * Wed Apr 12 2006 Shiro Kawai - Gauche release 0.8.7. * Fri Nov 4 2005 Shiro Kawai - Gauche release 0.8.6. * Thu Jun 30 2005 Shiro Kawai - Gauche release 0.8.5. * Tue May 31 2005 Shiro Kawai - Gauche release 0.8.4. * Thu Dec 2 2004 Shiro Kawai - Gauche release 0.8.3. * Mon Nov 29 2004 Shiro Kawai - Gauche release 0.8.2. * Mon Aug 2 2004 Shiro Kawai - Gauche release 0.8.1. * Sat May 22 2004 Shiro Kawai - Gauche release 0.8. * Thu Feb 26 2004 Shiro Kawai - Gauche release 0.7.4.2. * Wed Feb 4 2004 Shiro Kawai - Gauche release 0.7.4.1. * Tue Feb 3 2004 Shiro Kawai - Gauche release 0.7.4. * Tue Dec 16 2003 Shiro Kawai - Gauche release 0.7.3. * Wed Oct 22 2003 Shiro Kawai - Fix gdbm package license * Tue Oct 21 2003 Shiro Kawai - include aclocal/gauche.m4 in common rpm * Sat Oct 4 2003 Shiro Kawai - Gauche release 0.7.2. Splitted into common, encoding-dependent part, and gdbm package. * Wed Jul 23 2003 Shiro Kawai - Gauche release 0.7.1 * Fri May 30 2003 Shiro Kawai - Gauche release 0.7 * Sun Mar 30 2003 Shiro Kawai - Gauche release 0.6.8 * Fri Feb 7 2003 Shiro Kawai - Gauche release 0.6.7.1 * Thu Feb 6 2003 Shiro Kawai - Gauche release 0.6.7 * Sat Dec 14 2002 Shiro Kawai - Gauche release 0.6.6 * Fri Nov 15 2002 Shiro Kawai - Gauche release 0.6.5 * Mon Oct 14 2002 Shiro Kawai - Gauche release 0.6.4 * Sun Sep 22 2002 Shiro Kawai - Gauche release 0.6.3 * Mon Sep 2 2002 Shiro Kawai - Gauche release 0.6.2 * Wed Jul 31 2002 Shiro Kawai - Gauche release 0.6.1 * Thu Jul 18 2002 Shiro Kawai - Gauche release 0.6 * Sun Jun 30 2002 Shiro Kawai - Gauche release 0.5.7 * Fri Jun 14 2002 Shiro Kawai - Gauche release 0.5.6 * Mon May 27 2002 Shiro Kawai - Gauche release 0.5.5 * Sun May 5 2002 Shiro Kawai - Gauche release 0.5.4 * Mon Apr 15 2002 Shiro Kawai - Gauche release 0.5.3 * Thu Mar 7 2002 Shiro Kawai - first package release