Bug 88

Summary: changes to make gigedit CVS be buildable as an rpm
Product: gigedit Reporter: Devin Anderson <devin>
Component: gigeditAssignee: Andreas Persson <andreas56>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: SVN Trunk   
Hardware: PC   
OS: Linux   
Attachments: gigedit.spec.in
configure.ac diff

Description Devin Anderson 2008-04-22 04:41:51 CEST
Here's a working (though minimal) gigedit.spec.in that works for me on Fedora
Core 8:



%define name    @PACKAGE@
%define version @VERSION@
%define release 10
%define prefix  @prefix@

Summary:        instrument editor for Gigasampler files
Name:           %{name}
Version:        %{version}
Release:        %{release}
Prefix:         %{prefix}
License:        GPL
Group:          Sound
Source0:        %{name}-%{version}.tar.bz2
URL:            http://www.linuxsampler.org/
BuildRoot:      /var/tmp/%{name}-%{version}-buildroot

%description
instrument editor for Gigasampler files

%prep

%setup
if [ -f Makefile.cvs ]; then make -f Makefile.cvs; fi

%build
./configure --prefix=%{prefix}
make

%install
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
mkdir -p $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%clean
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi

%files
%defattr(-,root,root)
%{prefix}/bin/*
%{prefix}/lib/gigedit/libgigedit.*
%{prefix}/lib/linuxsampler/plugins/libgigeditlinuxsamplerplugin.*
%{prefix}/share/doc/gigedit/*
%{prefix}/share/gigedit/*.xpm
%{prefix}/share/locale/*

%changelog



Here's a diff against 'configure.ac' to automate the building of a spec file
during 'configure':



191c191
< AC_OUTPUT
---
> AC_OUTPUT(gigedit.spec)



Instructions for building as an rpm can be found and copied from the README of
linuxsampler or libgig.
Comment 1 Devin Anderson 2008-04-25 10:20:06 CEST
Created attachment 33 [details]
gigedit.spec.in
Comment 2 Devin Anderson 2008-04-25 10:21:35 CEST
Created attachment 34 [details]
configure.ac diff
Comment 3 Christian Schoenebeck 2008-12-14 14:22:07 CET
Marking this one as blocker, as it should be resolved before the upcoming 
release.
Comment 4 Christian Schoenebeck 2009-01-10 12:50:54 CET
Just commited it to CVS, slightly modified. As always I have no chance to test 
the rpm packaging stuff, so I just hope it's right that way.

Closing this report now. If anything's wrong, just let us know and feel to 
re-open this report if necessary.

Thanks Devin!