unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* rpm spec for 1.4.1
@ 2002-05-16 22:33 Dmitry Morozhnikov
  0 siblings, 0 replies; only message in thread
From: Dmitry Morozhnikov @ 2002-05-16 22:33 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

hello.

yesterday i create quick'n'dirty spec for 1.4.1 along with small patch for
path correction. may be it will be usefull for someone.

-- 
DM, Dmitry Morozhnikov, PGPKEY 0xB6C14D95,
music at http://mp3.com/DMIceman

[-- Attachment #2: guile-fix-path.patch --]
[-- Type: application/octet-stream, Size: 1847 bytes --]

--- libguile/Makefile.am.orig	Sat Feb  2 04:06:27 2002
+++ libguile/Makefile.am	Sat Feb  2 04:13:50 2002
@@ -159,13 +159,13 @@
 #    guile-procedures.txt guile.texi
 
 ## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds.
-libpath.h: $(srcdir)/Makefile.in  $(top_builddir)/config.status
+libpath.h: @srcdir@/Makefile.in  @top_srcdir@/config.status
 	@echo "Generating libpath.h..."
 	@rm -f libpath.tmp
 	@echo '/* generated by Makefile */' > libpath.tmp
-	@echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp
-	@echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$(VERSION)"'>>libpath.tmp
-	@echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp
+	@echo '#define SCM_PKGDATA_DIR "@datadir@/@PACKAGE@"' >> libpath.tmp
+	@echo '#define SCM_LIBRARY_DIR "@datadir@/@PACKAGE@/$(VERSION)"'>>libpath.tmp
+	@echo '#define SCM_SITE_DIR "@datadir@/@PACKAGE@/site"' >> libpath.tmp
 	@echo '#define SCM_BUILD_INFO { \' >> libpath.tmp
 	@echo '	{ "srcdir", "'"`cd @srcdir@; pwd`"'" }, \' >> libpath.tmp
 	@echo '	{ "top_srcdir", "'"`cd @top_srcdir@; pwd`"'" }, \' \
@@ -183,9 +183,9 @@
 	@echo '	{ "infodir",	   "@infodir@" }, \' >> libpath.tmp
 	@echo '	{ "mandir",	   "@mandir@" }, \' >> libpath.tmp
 	@echo '	{ "includedir",	   "@includedir@" }, \' >> libpath.tmp
-	@echo '	{ "pkgdatadir",	   "$(datadir)/@PACKAGE@" }, \' >> libpath.tmp
-	@echo '	{ "pkglibdir",	   "$(libdir)/@PACKAGE@" }, \' >> libpath.tmp
-	@echo '	{ "pkgincludedir", "$(includedir)/@PACKAGE@" }, \' \
+	@echo '	{ "pkgdatadir",	   "@datadir@/@PACKAGE@" }, \' >> libpath.tmp
+	@echo '	{ "pkglibdir",	   "@libdir@/@PACKAGE@" }, \' >> libpath.tmp
+	@echo '	{ "pkgincludedir", "@includedir@/@PACKAGE@" }, \' \
 		>> libpath.tmp
 	@echo '	{ "guileversion", "@GUILE_VERSION@" }, \' >> libpath.tmp
 	@echo '	{ "libguileinterface", "@LIBGUILE_INTERFACE@" }, \' \

[-- Attachment #3: guile-1.4.1.spec --]
[-- Type: application/octet-stream, Size: 1758 bytes --]

%define name		guile
%define version		1.4.1
%define release		1
%define prefix		/usr

%define builddir	$RPM_BUILD_DIR/%{name}

Summary: Guile scheme dialect
Name: %{name}
Version: %{version}
Release: %{release}
Prefix: %{prefix}
Copyright: GPL
Group: System Environment/Libraries
Source: %{name}-%{version}.tar.gz
Patch0: guile-fix-path.patch
URL: http://www.glug.org
Packager: Dmitry Morozhnikov <dmiceman@mail.ru>
BuildRoot: /var/tmp/%{name}-root

%description
Guile scheme dialect.

%package devel
Summary: Guile scheme dialect
Group: Development/Libraries
Requires: guile = %{version}

%description devel
Guile scheme dialect. This package contain headers, static libraries and some documentation for development with guile.

%define configure { ./configure --prefix=/usr --exec-prefix=/usr --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir} }

%prep
rm -rf %{builddir}

%setup -n %{name}-%{version}
%patch0 -p0

%build
%configure --enable-deprecated=yes --with-threads --enable-shared
make

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT
%makeinstall
pushd `pwd`
    cd guile-readline
    %makeinstall
popd

%files
%defattr(-,root,root)
%doc COPYING ChangeLog README THANKS NEWS HACKING AUTHORS ANON-CVS
%{_bindir}/guile
%{_libdir}/lib*.so.*
%{_datadir}/guile/%{version}/
%{_datadir}/guile/guile-procedures.txt

%files devel
%defattr(-,root,root)
%doc devel/
%{_bindir}/guile-*
%{_includedir}/
%{_libdir}/lib*.so
%{_libdir}/*a
%{_datadir}/aclocal
%{_infodir}/*.gz

%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{builddir}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-16 22:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-16 22:33 rpm spec for 1.4.1 Dmitry Morozhnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).