Re: Yet another newbie
- From: Yuzo Kawata <ygkc tau bekkoame ne jp>
- To: bob kehs ksd org
- CC: gnome-list gnome org
- Subject: Re: Yet another newbie
- Date: Mon, 08 Feb 1999 03:41:19 +0900
I wrote the adjucted "template.spec.in" to make rpms packages from the
CVS
source tree, all you have to do is:
*Edit the file according to the packages needs.
*Rename it and copy it into the source tree.
*Put 'CONFIG_FILES=package.spec ./config.status' at the end of
autogen.sh without
the quotes, or let "configure" take care of it.
and every time you run autogen.sh, you will have a new specfile
Since the CVS-source is a development-tree, is a good idea to install
everything,
so this specfile will create just one rpm for package with almost
everythings you
need.
Hope this help, and thanks to the developers for the good job.
bob@kehs.ksd.org wrote:
> I understand that the developers dont have time for this. The thing I am
> talking about is that the specs, for the most part are already there. Who
> ever builds the tarballs just needs to check on them.
>
> It only takes a second to fix up the specs. Once the rpms are made, there
> will be a far greater number of users using/testing gnome. More users
> meen more bug reports. More bug reports meens a better gnome 1.0
>
> As for the developers, Good job. I thank you for all your hard work. Even
> now, it is really something to see. Of all the people I have shown, they
> all are blown away...
>
Summary: # put a brief description of the package here #
Name: @PACKAGE@
Version: @VERSION@
Release: 1
Copyright: # COPYRIGHT #
Group: # rpm database location eg. /Libraries /X11 #
Source: @PACKAGE@-@VERSION@.tar.gz
BuildRoot: /var/tmp/@PACKAGE@-root
%description
# description of the package#
%prep
%setup -q
%build
CFLAGS="@CFLAGS@" \
./configure --prefix=@prefix@ \
--sysconfdir=@sysconfdir@ \
--localstatedir=@localstatedir@ \
--enable-maintainer-mode
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT@prefix@ \
sysconfdir=$RPM_BUILD_ROOT@sysconfdir@ \
localstatedir=$RPM_BUILD_ROOT@localstatedir@ \
install
cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/list.@PACKAGE@
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/list.@PACKAGE@
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/list.@PACKAGE@
%clean
rm -rf $RPM_BUILD_ROOT
%post
echo "Remember to add '@prefix@/lib' in the /etc/ld.so.conf file if '@prefix@/lib' isn't a standart library path"
echo "and run /sbin/ldconfig again"
/sbin/ldconfig
%postun
echo "Remove '@prefix@/lib' from /etc/ld.so.conf if you have nothing in there"
echo "and run /sbin/ldconfig again"
/sbin/ldconfig
%files -f ../list.@PACKAGE@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]