[MPlayer-users] RPM Spec File: Here is
Brian Healy
cuan at skynet.ie
Mon Apr 22 22:57:01 CEST 2002
Here it is,
just a few things, to get it to work, two things must be done to the
Makefile. Firstly the a variable CONFDIR must be added and initialised to
${prefix}/share . Leaving this out will cause the files included in the
share directory to be installed (during the rpm build) elsewhere (I'm
presuming /usr/share/, I didn't check this out) rather than in relation to the rpm %{buildroot}
which is /var/tmp/mplayer-root/usr/share. This also brings consistency to
the makefile as the bindir and mandir variables are set up this way.
Secondly, the symlink gmplayer must be created in relation to its
position to the mplayer executable. Not doing this will cause the rpm
build to fail and even if it didn't, the symlink would resolve to
something weird like /var/tmp/mplayer-root/usr/bin/mplayer. This second
task i don't know how to do myself. I simply deleted the symlink creation
part of the Makefile.
Also, this rpm enables the gui portion of the code. If you don't
want this to happen by default simply delete the parameter from the
configure command
below.
I hope you use it and find it useful..
Brian
####################################################
Summary: Multimedia player for linux
Name: mplayer
Version: 0.90pre1
Release: 1
URL: www.mplayerhq.hu
Source0: MPlayer-%{version}.tar.bz2
License: GPL
Group: Applications/Multimedia
BuildRoot: %{_tmppath}/%{name}-root
Prefix: /usr
%description
%prep
%setup -q -n MPlayer-%{version}
./configure --enable-gui --prefix=%{prefix}
%build
make
%install
rm -rf %{buildroot}
make prefix=%{buildroot}/%{prefix} install
%clean
rm -rf %{buildroot}
%post
%files
%defattr(-,root,root)
/usr/bin
/usr/lib
/usr/man
/usr/share
%changelog
* Mon Apr 22 2002 Brian Healy <cuan at skynet.ie>
- Added support for distrubuted bzip source files
* Sat Apr 20 2002 Brian Healy <cuan at skynet.ie>
- Initial build.
#############################################
--
###############
Brian Healy
cuan at skynet.ie
More information about the MPlayer-users
mailing list