kopia lustrzana https://gitlab.com/sane-project/website
239 wiersze
8.2 KiB
HTML
239 wiersze
8.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: RPM build file</TITLE>
|
|
<META NAME="Author" CONTENT="Dave Hill (dave@minnie.demon.co.uk)">
|
|
<META NAME="Subject" CONTENT="Re: RPM build file">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: RPM build file</H1>
|
|
<!-- received="Thu Feb 24 00:13:02 2000" -->
|
|
<!-- isoreceived="20000224081302" -->
|
|
<!-- sent="Thu, 24 Feb 2000 08:02:33 +0000" -->
|
|
<!-- isosent="20000224080233" -->
|
|
<!-- name="Dave Hill" -->
|
|
<!-- email="dave@minnie.demon.co.uk" -->
|
|
<!-- subject="Re: RPM build file" -->
|
|
<!-- id="38B4E599.D8791C2E@minnie.demon.co.uk" -->
|
|
<!-- inreplyto="200002240156.JAA22571@minerva.ee.uwa.edu.au" -->
|
|
<STRONG>From:</STRONG> Dave Hill (<A HREF="mailto:dave@minnie.demon.co.uk?Subject=Re:%20RPM%20build%20file&In-Reply-To=<38B4E599.D8791C2E@minnie.demon.co.uk>"><EM>dave@minnie.demon.co.uk</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Thu Feb 24 2000 - 00:02:33 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0323.html">Peter Hackenberg: "Permissions of /dev/sg* and xsane, xscanimage (was Re: Report on , last CVS snapshot)"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0321.html">David Cantrell: "Re: HP ScanJet 3C...it's working now"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0318.html">Petter Reinholdtsen: "Re: RPM build file"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0352.html">Petter Reinholdtsen: "Re: RPM build file"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#322">[ date ]</A>
|
|
<A HREF="index.html#322">[ thread ]</A>
|
|
<A HREF="subject.html#322">[ subject ]</A>
|
|
<A HREF="author.html#322">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Petter Reinholdtsen wrote:
|
|
<BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> I don't get it. Why can you not compile it with the normal prefix and
|
|
</EM><BR>
|
|
<EM>> install it with your new prefix, like this:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> make all
|
|
</EM><BR>
|
|
<EM>> make install prefix="$RPM_BUILD_ROOT"
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> That way the bineries are compiled with the prefix given by configure,
|
|
</EM><BR>
|
|
<EM>> and the programs are installed with prefix=$DESTDIR when copied into
|
|
</EM><BR>
|
|
<EM>> place.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> This way no changes need to be done to the makefiles. If this is the
|
|
</EM><BR>
|
|
<EM>> case, please send an updated RPM-spec and I'll put it in the
|
|
</EM><BR>
|
|
<EM>> distribution.
|
|
</EM><BR>
|
|
<P>D'oh! You're right (but you need to set sysconfdir and datadir
|
|
<BR>
|
|
as well). What well-written Makefiles sane has!
|
|
<BR>
|
|
<P>In that case, you still need part of the makefile patch, since,
|
|
<BR>
|
|
by default, find-scanner does not get installed.
|
|
<BR>
|
|
<P>Dave
|
|
<BR>
|
|
<P><PRE>
|
|
--
|
|
Dave Hill, Kempston, Bedford UK <A HREF="mailto:dave@minnie.demon.co.uk?Subject=Re:%20RPM%20build%20file&In-Reply-To=<38B4E599.D8791C2E@minnie.demon.co.uk>">dave@minnie.demon.co.uk</A>
|
|
Sicth munce ago, I cutn't evun spel enjuneer, and now I are one!
|
|
|
|
</PRE>
|
|
<P>
|
|
Summary: Scanner Access Now Easy
|
|
%define name sane
|
|
%define version 1.0.1.20000220
|
|
Name: %{name}
|
|
Version: %{version}
|
|
Release: 1
|
|
Group: Applications/Multimedia
|
|
Source: <A HREF="ftp://ftp.mostang.com/pub/sane/%{name}-%{version}.tar.gz">ftp://ftp.mostang.com/pub/sane/%{name}-%{version}.tar.gz</A>
|
|
Copyright: GPL
|
|
BuildRoot: /var/tmp/%{name}-%{version}-root
|
|
Packager: Dave Hill <<A HREF="mailto:dave@minnie.demon.co.uk?Subject=Re:%20RPM%20build%20file&In-Reply-To=<38B4E599.D8791C2E@minnie.demon.co.uk>">dave@minnie.demon.co.uk</A>>
|
|
URL: <A HREF="http://www.mostang.com/sane">http://www.mostang.com/sane</A>
|
|
<P>%description
|
|
SANE - Scanner Access Now Easy.
|
|
<P>SANE stands for "Scanner Access Now Easy" and is an application
|
|
programming interface (API) that provides standardized access to any
|
|
raster image scanner hardware (flatbed scanner, hand-held scanner,
|
|
video- and still-cameras, frame-grabbers, etc.).
|
|
<P>This package contains the SANE backends (drivers for scanners etc), the
|
|
API itself and some frontends (user programs) for using SANE.
|
|
<P>If you want to build additional applications against SANE, you will also
|
|
need to install the sane-devel package.
|
|
<P>%package devel
|
|
Summary: Development files for applications which use SANE.
|
|
Group: Development/Libraries
|
|
Requires: sane = %{version}
|
|
<P>%description devel
|
|
This package contains the SANE C libraries and header files. These
|
|
development files will simplify the process of writing programs which
|
|
use SANE.
|
|
<P>This package should be installed if you want to develop or build
|
|
programs that need the SANE C libraries and header files.
|
|
<P>%prep
|
|
%setup -q
|
|
<P>%build
|
|
# Debug version
|
|
#CFLAGS="-g $RPM_OPT_FLAGS" ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share/sane
|
|
# non-debug version
|
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share/sane
|
|
make
|
|
<P>%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
<P>make install prefix=$RPM_BUILD_ROOT/usr datadir=$RPM_BUILD_ROOT/usr/share/sane sysconfdir=$RPM_BUILD_ROOT/etc
|
|
<P># Build documentation for the %doc directive so that we don't end up
|
|
# with everything in one directory.
|
|
<P>rm -rf .doc
|
|
mkdir .doc
|
|
mkdir .doc/frontend
|
|
cp frontend/xcam.README .doc/frontend
|
|
mkdir .doc/tools
|
|
cp tools/README .doc/tools
|
|
mkdir .doc/backend
|
|
cp backend/*.desc .doc/backend
|
|
cp backend/GUIDE .doc/backend
|
|
cp backend/djpeg.README .doc/backend
|
|
cp backend/hp.README .doc/backend
|
|
cp backend/hp.TODO .doc/backend
|
|
cp backend/umax.BUGS .doc/backend
|
|
cp backend/umax.CHANGES .doc/backend
|
|
cp backend/umax.FAQ backend/umax.TODO .doc/backend
|
|
cp -r doc .doc/doc
|
|
rm -f .doc/doc/*.man
|
|
rm -f .doc/doc/*.5
|
|
rm -f .doc/doc/*.1
|
|
rm -f .doc/doc/Makefile*
|
|
rm -rf .doc/doc/CVS
|
|
<P>%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
<P>%post
|
|
ldconfig
|
|
<P>%postun
|
|
ldconfig
|
|
<P>%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ChangeLog LEVEL2 LICENSE NEWS PROBLEMS PROJECTS
|
|
%doc README TODO
|
|
# Copy our prepared doc directories.
|
|
%doc .doc/frontend
|
|
%doc .doc/backend
|
|
%doc .doc/doc
|
|
<P>/usr/bin/find-scanner
|
|
/usr/bin/scanimage
|
|
/usr/bin/xcam
|
|
/usr/bin/xscanimage
|
|
/usr/sbin/saned
|
|
%dir /usr/lib/sane
|
|
/usr/lib/*.so*
|
|
/usr/lib/sane/*.so*
|
|
/usr/man/man1/*
|
|
/usr/man/man5/*
|
|
%dir /usr/share/sane
|
|
/usr/share/sane/sane-style.rc
|
|
%dir /etc/sane.d
|
|
%config /etc/sane.d/*
|
|
<P>%files devel
|
|
%defattr(-,root,root)
|
|
/usr/bin/sane-config
|
|
%dir /usr/include/sane
|
|
/usr/include/sane/*
|
|
/usr/lib/*.a
|
|
/usr/lib/sane/*.a
|
|
# Are these needed?
|
|
#/usr/lib/*.la
|
|
#/usr/lib/sane/*.la
|
|
<P>
|
|
<P>
|
|
--- sane-devel-20000123.orig/tools/Makefile.in Fri Jan 7 13:44:28 2000
|
|
+++ sane-devel-20000123/tools/Makefile.in Wed Jan 26 15:37:20 2000
|
|
@@ -64,8 +66,9 @@
|
|
|
|
all: $(DESTINATIONS)
|
|
|
|
-install: sane-config
|
|
- $(INSTALL_PROGRAM) sane-config $(bindir)/sane-config
|
|
+install: all
|
|
+ $(INSTALL_PROGRAM) sane-config $(bindir)/sane-config
|
|
+ $(INSTALL_PROGRAM) find-scanner $(bindir)/find-scanner
|
|
|
|
sane-config: sane-config.in $(top_builddir)/config.status
|
|
cd $(top_builddir) \
|
|
<P><P><P><PRE>
|
|
--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20RPM%20build%20file&In-Reply-To=<38B4E599.D8791C2E@minnie.demon.co.uk>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0323.html">Peter Hackenberg: "Permissions of /dev/sg* and xsane, xscanimage (was Re: Report on , last CVS snapshot)"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0321.html">David Cantrell: "Re: HP ScanJet 3C...it's working now"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0318.html">Petter Reinholdtsen: "Re: RPM build file"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0352.html">Petter Reinholdtsen: "Re: RPM build file"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#322">[ date ]</A>
|
|
<A HREF="index.html#322">[ thread ]</A>
|
|
<A HREF="subject.html#322">[ subject ]</A>
|
|
<A HREF="author.html#322">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Thu Feb 24 2000 - 00:18:55 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|