new gxtar.spec.in 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 gxtar.spec.in, 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/Makefile.am Wed Mar 10 21:27:11 1999
--- Makefile.am 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 \
!              gxtar.spec.in
! 
! dist-hook:
!       cp gxtar.spec $(distdir)
  
  sysdir = $(datadir)/gnome/apps/Utilities
  sys_DATA = gxtar.desktop
*** ../../cvs/gxtar/configure.in        Thu Mar 11 08:33:45 1999
--- configure.in        Mon Apr 19 11:34:09 1999
***************
*** 25,31 ****
    fi
  fi
  
! AC_OUTPUT(Makefile)
  
  echo
  echo configure complete, now type \'make\'
--- 25,33 ----
    fi
  fi
  
! AC_OUTPUT([
! gxtar.spec
! Makefile])
  
  echo
  echo configure complete, now type \'make\'


----- new gxtar.spec.in -----
%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

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

%prep
%setup

%build
./configure
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
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 \
  $RPM_BUILD_ROOT/%{prefix}/bin/gxtar
install -m 644 gxtar.keys \
  $RPM_BUILD_ROOT/%{prefix}/share/mime-info/gxtar.keys
install -m 644 gxtar.desktop \
  $RPM_BUILD_ROOT/%{prefix}/share/gnome/apps/Utilities/gxtar.desktop

%files
%defattr(-, root, root)

%doc README COPYING ChangeLog
%{prefix}/bin/gxtar
%{prefix}/share/mime-info/gxtar.keys
%{prefix}/share/gnome/apps/Utilities/gxtar.desktop
----- end gxtar.spec.in -----


         Erik Walthinsen <omega@cse.ogi.edu> - Staff Programmer @ OGI
        Quasar project - http://www.cse.ogi.edu/DISC/projects/quasar/
   Video4Linux Two drivers and stuff - http://www.cse.ogi.edu/~omega/v4l2/
        __
       /  \             SEUL: Simple End-User Linux - http://www.seul.org/
      |    | 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]