new and build changes

I'm going through the GNOME CVS repository and fixing build problems as I
see them.  At random, I snagged gxtar first, and want to make sure you
know what I'm up to.  I have a new spec file that fixes a number of
things, including making it follow the prefix rule, making it relocatable,
and a few other minor things.

Also, the spec file in CVS should be named, not
gxtar-0.1.0-1.spec.  That means it can be autogenerated by autoconf, so
the version listed in the spec file created in the tarball matches the
real version.  Patches below.

If there are no objections, I'll check these in.

(note: cut and paste means the below will not apply, but they do work)
*** ../../cvs/gxtar/ Wed Mar 10 21:27:11 1999
--- Mon Apr 19 11:35:58 1999
*** 14,20 ****
  bz2.h           gz.h            tar.h           zip.h
! EXTRA_DIST = ChangeLog README INSTALL TODO gxtar.desktop gxtar.keys
  sysdir = $(datadir)/gnome/apps/Utilities
  sys_DATA = gxtar.desktop
--- 14,24 ----
  bz2.h           gz.h            tar.h           zip.h
! EXTRA_DIST = ChangeLog README INSTALL TODO gxtar.desktop gxtar.keys \
! dist-hook:
!       cp gxtar.spec $(distdir)
  sysdir = $(datadir)/gnome/apps/Utilities
  sys_DATA = gxtar.desktop
*** ../../cvs/gxtar/        Thu Mar 11 08:33:45 1999
---        Mon Apr 19 11:34:09 1999
*** 25,31 ****
! AC_OUTPUT(Makefile)
  echo configure complete, now type \'make\'
--- 25,33 ----
! gxtar.spec
! Makefile])
  echo configure complete, now type \'make\'

----- new -----
%define ver     @VERSION@
%define rel     SNAP
%define prefix  /usr

Summary: Gnome frontend to common archive programs.
Name: gxtar
Version: %ver
Release: %rel
Copyright: GPL
Group: Utilities/Archiving
Source: gxtar-%{ver}.tar.gz
BuildRoot: /var/tmp/gxter-%{ver}-root
Prefix: %prefix

gxTar is a Gnome/Gtk front-end to common archive utilities
under unix.  Currently zip, gzip, tar, bzip2, and arj are supported. 



mkdir -p $RPM_BUILD_ROOT/%{prefix}/bin
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/mime-info
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/gnome/apps/Utilities
install -s -m 755 gxtar \
install -m 644 gxtar.keys \
install -m 644 gxtar.desktop \

%defattr(-, root, root)

----- end -----

         Erik Walthinsen <> - Staff Programmer @ OGI
        Quasar project -
   Video4Linux Two drivers and stuff -
       /  \             SEUL: Simple End-User Linux -
      |    | M E G A           Helping Linux become THE choice
      _\  /_                          for the home or office user

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]