From c937af781b71f61cd6ca42e8cc8994a2303b3923 Mon Sep 17 00:00:00 2001 From: darkeye Date: Sun, 2 Sep 2001 12:46:05 +0000 Subject: [PATCH] added RPM package creation scripts --- darkice/trunk/TODO | 1 - darkice/trunk/rpm/darkice.spec | 133 +++++++++++++++++++++++++++++++++ darkice/trunk/rpm/lame.spec | 133 +++++++++++++++++++++++++++++++++ 3 files changed, 266 insertions(+), 1 deletion(-) create mode 100644 darkice/trunk/rpm/darkice.spec create mode 100644 darkice/trunk/rpm/lame.spec diff --git a/darkice/trunk/TODO b/darkice/trunk/TODO index 81799d8..b98d2cc 100644 --- a/darkice/trunk/TODO +++ b/darkice/trunk/TODO @@ -3,5 +3,4 @@ o make a master config file, and a small one ? o add support for VBR encoding o reconnect to server if connection is dropped o add support for multiple servers for one stream ? -o create RPMs o libtoolize ? diff --git a/darkice/trunk/rpm/darkice.spec b/darkice/trunk/rpm/darkice.spec new file mode 100644 index 0000000..1e7501b --- /dev/null +++ b/darkice/trunk/rpm/darkice.spec @@ -0,0 +1,133 @@ +#------------------------------------------------------------------------------- +# +# Copyright (c) 2000 Tyrell Corporation. All rights reserved. +# +# Tyrell DarkIce +# +# File : darkice.spec +# Version : $Revision$ +# Author : $Author$ +# Location : $Source$ +# +# Abstract : +# +# Specification file to build RPM packages of DarkIce +# +# Copyright notice: +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +#------------------------------------------------------------------------------- + +# ===================================================================== preamble +Summary : DarkIce live IceCast streamer +Name: darkice +Vendor: Tyrell Hungary +Packager: Akos Maroy +Version: 0.4 +Release: 1 +Copyright: GPL +Group: Applications/Multimedia +Source: ftp://darkice.sourceforge.net/pub/darkice/darkice-%{version}.tar.gz +URL: http://darkice.sourceforge.net/ +Provides: darkice +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Prefix: /usr + +%description +DarkIce is an IceCast live audio streamer. It takes audio input from a sound +card, encodes it into mp3, and sends the stream to an IceCast server. + + +# =========================================================== static sub-package +%package static +Summary: %{summary} static version +Group: Applications/Multimedia + +%description static +DarkIce is an IceCast live audio streamer. It takes audio input from a sound +card, encodes it into mp3, and sends the stream to an IceCast server. + +This is the statically linked version + + +# =================================================================== prep stage +%prep +%setup + + +# ================================================================== build stage +%build +# first build the static executable +%configure --enable-static +make all + +mv src/darkice src/darkice.static + +# there is no need to clean, as the object files are the same for the static +# and dynamic builds +#make distclean + +# secondly build the dynamic executable +%configure +make all + + +# ================================================================ install stage +%install +%makeinstall + +# copy the static executable as well +cp src/darkice.static $RPM_BUILD_ROOT/%{_bindir} + + +# ========================================================== pre-install scripts +%pre + + +# ========================================================= post-install scripts +%post + + +# ======================================================================== clean +%clean +rm -rf $RPM_BUILD_ROOT +make clean + + +# =========================================================== main package files +%files +%defattr (-, root, root) +%doc COPYING ChangeLog README TODO +%{_bindir}/darkice +%{_mandir}/man1/darkice.1* + + +# ===================================================== static sub-package files +%files static +%defattr (-, root, root) +%doc COPYING ChangeLog README TODO +%{_bindir}/darkice.static +%{_mandir}/man1/darkice.1* + + +# =================================================================== change log +# +# $Log$ +# Revision 1.1 2001/09/02 12:46:05 darkeye +# added RPM package creation scripts +# +# + diff --git a/darkice/trunk/rpm/lame.spec b/darkice/trunk/rpm/lame.spec new file mode 100644 index 0000000..aab22f8 --- /dev/null +++ b/darkice/trunk/rpm/lame.spec @@ -0,0 +1,133 @@ +#------------------------------------------------------------------------------- +# +# Copyright (c) 2000 Tyrell Corporation. All rights reserved. +# +# Tyrell DarkIce +# +# File : lame.spec +# Version : $Revision$ +# Author : $Author$ +# Location : $Source$ +# +# Abstract : +# +# Specification file to build RPM packages of lame. +# Builds a proper lame executable on a RedHat 7.1 system. +# Based on the official lame RPM spec file by +# cefiar +# +# Copyright notice: +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +#------------------------------------------------------------------------------- + +# ================================================================= local macros +%define name lame +%define ver 3.89 +%define quality beta +%define rel 1 +%define prefix /usr + + +# ===================================================================== preamble +Summary : LAME Ain't an MP3 Encoder +Name: %{name} +Version: %{ver}%{quality} +Release: %{rel} +Copyright: LGPL +Vendor: The LAME Project +Packager: Akos Maroy +URL: http://www.mp3dev.org/mp3/ +Group: Applications/Multimedia +Source: ftp://lame.sourceforge.net/pub/lame/src/%{name}%{ver}%{quality}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{ver}-root +Prefix: %{prefix} +Provides: lame + +%description +LAME is an educational tool to be used for learning about MP3 encoding. The +goal of the LAME project is to use the open source model to improve the +psycho acoustics, noise shaping and speed of MP3. Another goal of the LAME +project is to use these improvements for the basis of a patent free audio +compression codec for the GNU project. + + +# ============================================================ devel sub-package +%package devel +Summary: Shared and static libraries for LAME. +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +LAME is an educational tool to be used for learning about MP3 encoding. +This package contains both the shared and the static libraries from the +LAME project. + +You will also need to install the main lame package in order to install +these libraries. + + +# =================================================================== prep stage +%prep +%setup -n %{name}-%{ver} + + +# ================================================================== build stage +%build +export CC=kgcc +%configure +make + + +# ================================================================ install stage +%install +%makeinstall + + +# ======================================================================== clean +%clean +rm -rf $RPM_BUILD_ROOT +make clean + + +# =========================================================== main package files +%files +%defattr (-,root,root) +%doc LICENSE USAGE COPYING TODO README* +%doc doc/html +%{_bindir}/lame +%{_mandir}/man1/lame.1* +%{_libdir}/libmp3lame.so.* + + +# ====================================================== devel sub-package files +%files devel +%defattr (-,root,root) +%doc API HACKING STYLEGUIDE +%{_includedir}/lame/lame.h +%{_libdir}/libmp3lame.la +%{_libdir}/libmp3lame.a +%{_libdir}/libmp3lame.so + + +# =================================================================== change log +# +# $Log$ +# Revision 1.1 2001/09/02 12:46:05 darkeye +# added RPM package creation scripts +# +# +