Added mixer rpm spec file, by Hakan Tandogan
authorSam Lantinga <slouken@lokigames.com>
Thu, 20 Jan 2000 05:44:29 +0000
changeset 38d6f9745b780b
parent 37 7e477cb285c5
child 39 2cf024600f9c
Added mixer rpm spec file, by Hakan Tandogan
Makefile.am
Makefile.in
SDL_mixer.spec.in
configure
configure.in
     1.1 --- a/Makefile.am	Tue Jan 18 03:45:51 2000 +0000
     1.2 +++ b/Makefile.am	Thu Jan 20 05:44:29 2000 +0000
     1.3 @@ -38,3 +38,12 @@
     1.4  
     1.5  playwave_LDADD = libSDL_mixer.la
     1.6  playmus_LDADD = libSDL_mixer.la
     1.7 +
     1.8 +# Rule to build tar-gzipped distribution package
     1.9 +$(PACKAGE)-$(VERSION).tar.gz: dist
    1.10 +
    1.11 +# Rule to build RPM distribution package
    1.12 +rpm: $(PACKAGE)-$(VERSION).tar.gz
    1.13 +	cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
    1.14 +	rpm -ba SDL_mixer.spec
    1.15 +
     2.1 --- a/Makefile.in	Tue Jan 18 03:45:51 2000 +0000
     2.2 +++ b/Makefile.in	Thu Jan 20 05:44:29 2000 +0000
     2.3 @@ -113,7 +113,7 @@
     2.4  playmus_LDADD = libSDL_mixer.la
     2.5  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     2.6  mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
     2.7 -CONFIG_CLEAN_FILES = 
     2.8 +CONFIG_CLEAN_FILES =  SDL_mixer.spec
     2.9  LTLIBRARIES =  $(lib_LTLIBRARIES)
    2.10  
    2.11  
    2.12 @@ -147,9 +147,9 @@
    2.13  LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
    2.14  HEADERS =  $(libSDL_mixerinclude_HEADERS)
    2.15  
    2.16 -DIST_COMMON =  README COPYING Makefile.am Makefile.in acinclude.m4 \
    2.17 -aclocal.m4 config.guess config.sub configure configure.in install-sh \
    2.18 -ltconfig ltmain.sh missing mkinstalldirs
    2.19 +DIST_COMMON =  README COPYING Makefile.am Makefile.in SDL_mixer.spec.in \
    2.20 +acinclude.m4 aclocal.m4 config.guess config.sub configure configure.in \
    2.21 +install-sh ltconfig ltmain.sh missing mkinstalldirs
    2.22  
    2.23  
    2.24  DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
    2.25 @@ -178,6 +178,8 @@
    2.26  	$(SHELL) ./config.status --recheck
    2.27  $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
    2.28  	cd $(srcdir) && $(AUTOCONF)
    2.29 +SDL_mixer.spec: $(top_builddir)/config.status SDL_mixer.spec.in
    2.30 +	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
    2.31  
    2.32  mostlyclean-libLTLIBRARIES:
    2.33  
    2.34 @@ -565,6 +567,14 @@
    2.35  mostlyclean distclean maintainer-clean
    2.36  
    2.37  
    2.38 +# Rule to build tar-gzipped distribution package
    2.39 +$(PACKAGE)-$(VERSION).tar.gz: dist
    2.40 +
    2.41 +# Rule to build RPM distribution package
    2.42 +rpm: $(PACKAGE)-$(VERSION).tar.gz
    2.43 +	cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
    2.44 +	rpm -ba SDL_mixer.spec
    2.45 +
    2.46  # Tell versions [3.59,3.63) of GNU make to not export all variables.
    2.47  # Otherwise a system limit (for SysV at least) may be exceeded.
    2.48  .NOEXPORT:
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/SDL_mixer.spec.in	Thu Jan 20 05:44:29 2000 +0000
     3.3 @@ -0,0 +1,68 @@
     3.4 +%define name @PACKAGE@
     3.5 +%define version @VERSION@
     3.6 +%define release 1
     3.7 +
     3.8 +Summary: Simple DirectMedia Layer - Sample Mixer Library
     3.9 +Name: %{name}
    3.10 +Version: %{version}
    3.11 +Release: %{release}
    3.12 +Source0: %{name}-%{version}.tar.gz
    3.13 +Copyright: LGPL
    3.14 +Group: System Environment/Libraries
    3.15 +BuildRoot: /var/tmp/%{name}-buildroot
    3.16 +Prefix: %{_prefix}
    3.17 +BuildRequires: SDL-devel
    3.18 +
    3.19 +%description
    3.20 +Due to popular demand, here is a simple multi-channel audio mixer.
    3.21 +It supports 4 channels of 16 bit stereo audio, plus a single channel
    3.22 +of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
    3.23 +libraries.
    3.24 +
    3.25 +%package devel
    3.26 +Summary: Libraries, includes and more to develop SDL applications.
    3.27 +Group: Development/Libraries
    3.28 +Requires: %{name}
    3.29 +Requires: SDL-devel
    3.30 +
    3.31 +%description devel
    3.32 +Due to popular demand, here is a simple multi-channel audio mixer.
    3.33 +It supports 4 channels of 16 bit stereo audio, plus a single channel
    3.34 +of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
    3.35 +libraries.
    3.36 +
    3.37 +%prep
    3.38 +%setup 
    3.39 +
    3.40 +%build
    3.41 +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
    3.42 +uname -a |grep -qi SMP && make -j2 || make
    3.43 +
    3.44 +%install
    3.45 +rm -rf $RPM_BUILD_ROOT
    3.46 +make install prefix=$RPM_BUILD_ROOT/%{prefix}
    3.47 +
    3.48 +%clean
    3.49 +rm -rf $RPM_BUILD_ROOT
    3.50 +
    3.51 +%files
    3.52 +%defattr(-,root,root)
    3.53 +%doc README COPYING
    3.54 +%doc mikmod/AUTHORS mikmod/README mikmod/COPYING.LESSER
    3.55 +%doc timidity/FAQ timidity/README
    3.56 +%{prefix}/bin/playmus
    3.57 +%{prefix}/bin/playwave
    3.58 +%{prefix}/lib/lib*.so.*
    3.59 +%{prefix}/lib/lib*.so
    3.60 +
    3.61 +%files devel
    3.62 +%defattr(-,root,root)
    3.63 +%{prefix}/lib/*a
    3.64 +%{prefix}/include/SDL/
    3.65 +
    3.66 +%changelog
    3.67 +* Wed Jan 19 2000 Sam Lantinga 
    3.68 +- converted to get package information from configure
    3.69 +* Sun Jan 16 2000 Hakan Tandogan <hakan@iconsult.com>
    3.70 +- initial spec file
    3.71 +
     4.1 --- a/configure	Tue Jan 18 03:45:51 2000 +0000
     4.2 +++ b/configure	Thu Jan 20 05:44:29 2000 +0000
     4.3 @@ -2424,6 +2424,7 @@
     4.4  Makefile
     4.5  mikmod/Makefile
     4.6  timidity/Makefile
     4.7 +SDL_mixer.spec
     4.8  " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     4.9  EOF
    4.10  cat >> $CONFIG_STATUS <<EOF
    4.11 @@ -2552,6 +2553,7 @@
    4.12  CONFIG_FILES=\${CONFIG_FILES-"Makefile
    4.13  mikmod/Makefile
    4.14  timidity/Makefile
    4.15 +SDL_mixer.spec
    4.16  "}
    4.17  EOF
    4.18  cat >> $CONFIG_STATUS <<\EOF
     5.1 --- a/configure.in	Tue Jan 18 03:45:51 2000 +0000
     5.2 +++ b/configure.in	Thu Jan 20 05:44:29 2000 +0000
     5.3 @@ -120,4 +120,5 @@
     5.4  Makefile
     5.5  mikmod/Makefile
     5.6  timidity/Makefile
     5.7 +SDL_mixer.spec
     5.8  ])