⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 freeamp-rh5x.spec

📁 这是一个mp3的源代码
💻 SPEC
字号:
#
# NOTES: This script is intended for building rpms for redhat 5.x 
#        systems. Automatic depedency checking has been turned off for
#        this script becuase the rpm will check to see if ALSA/ESD
#        are installed on the system automatically. If we let
#        rpm determine the dependecies automatically it will complain
#        to anyone who does not have ALSA/ESD installed.
#
#        To update this script, remove the Requires line and set
#        AutoReqProv to yes. Then build the RPM, and copy the 
#        Requires line that it spits out and paste it where the
#        Requires line is. Make sure to remove references to
#        libesd, libasound, and libncurses, as the install
#        script below will handle them correctly. Finally,
#        Turn AutoReqProv back on and then build the rpm.
#

Summary: MP3 audio player with streaming support
Name: freeamp
Version: 1.3.1
Release: 1
Copyright: GPL
Group: Applications/Multimedia
Source: www.freeamp.org:/pub/freeamp/freeamp-1.3.1-linux-x86-glibc2.tar.gz

# Please read note above
AutoReqProv: No
Requires: ld-linux.so.2 libc.so.6 libdl.so.2 libm.so.6 libnsl.so.1 libpthread.so.0 libX11.so.6 libXext.so.6 libXpm.so.4

%description
This program plays MP3 (MPEG-1 audio layer 3) files and streams. The
player will run on Windows, Linux and Solaris.

%prep
%setup
%build
%install

prefix=/usr/local

bindir="$prefix/bin"
libdir="$prefix/lib"
fadir="$libdir/freeamp"
plugdir="$fadir/plugins"

# We could use mkdir -p, but not all unix systems' mkdir's support -p
for dir in "$bindir" "$libdir" "$fadir" "$plugdir"; do
    if [ \! -d "$dir" ]; then
	echo "mkdir $dir"
	mkdir "$dir"
	echo "chown root $dir"
	chown root "$dir"
	echo "chmod 755 $dir"
	chmod 755 "$dir"
    fi
done

install -c -m 755 freeamp "$bindir"
echo "$bindir/freeamp" > installed.files
for file in plugins/*.*; do
    enable=f
    case "$file" in
    	*/alsa-*.pmo)
	      if ldconfig -p | grep 'libasound\.so' > /dev/null; then
	      	enable=t
	      else
	      	enable=f
		      rm -f "$fadir/$file"
	      fi
	   ;;
    	*/esound-*.pmo)
	      if ldconfig -p | grep 'libesd\.so' > /dev/null; then
	      	enable=t
	      else
	      	enable=f
		      rm -f "$fadir/$file"
	      fi
	   ;;
    	*/ncurses-*.ui)
	      if ldconfig -p | grep 'libncurses\.so' > /dev/null; then
	      	enable=t
	      else
	      	enable=f
		      rm -f "$fadir/$file"
	      fi
	   ;;
	   *)
	   enable=t
	   ;;
    esac
    if [ "$enable" = t ]; then
        install -c -o root -m 644 "$file" "$plugdir"
        echo $fadir/$file >> installed.files
    fi
done

%files -f installed.files
%dir /usr/local/lib/freeamp 
%dir /usr/local/lib/freeamp/plugins
%doc AUTHORS CHANGES COPYING ChangeLog INSTALL NEWS README

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -