[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RPM segfaults - the attachements



As ususal, I forgot the attchements...here are the specfiles for AR and
RP.
# Browser plugin doesn't work with stripped binaries/libs
%define         debug_package %{nil}

Name:           acrobat-reader
Version:        5.0.8
Release:        0.fdr.1
Epoch:          0
ExclusiveArch:	i386
Summary:        Adobe Acrobat Reader.
Group:         	Applications/Publishing
License:        Commercial
URL:            http://www.adobe.com
Source0:        ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/linux-508.tar.gz
Source1:	acroread.desktop
Source2:	acroread.png
Patch1:		acroread-lang.patch
Patch2:		acroread-appdefaults.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:       XFree86
BuildRequires:	sed

%description
Adobe Acrobat Reader.

%package 	plugin
Summary:	Acrobat Reader browser plugin.
Group:		Applications/Internet
Requires:	%{name} = %{epoch}:%{version}-%{release}

%description	plugin
Acrobat Reader browser plugin. Works with Mozilla and derivates,
as well as Netscape and Konqueror.

%prep
%setup -c -q 

%build

%install
rm -rf $RPM_BUILD_ROOT

# The guts
mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}
tar -C $RPM_BUILD_ROOT%{_libdir}/%{name} -xf COMMON.TAR
tar -C $RPM_BUILD_ROOT%{_libdir}/%{name} -xf LINUXRDR.TAR

# Startup script
mkdir -p $RPM_BUILD_ROOT%{_bindir}
# Insert installation dir into startup script and
# add workaround for missing UTF-8 support
sed 's/REPLACE_ME/\%{_prefix}\/lib\/%{name}\/Reader\nLANG=C/g' < \
	$RPM_BUILD_ROOT%{_libdir}/%{name}/bin/acroread.sh \
	> $RPM_BUILD_ROOT%{_bindir}/acroread
# Make executable
chmod 755 $RPM_BUILD_ROOT%{_bindir}/acroread 

# Patch Xresources to make it look a little better and
# fix version string in window title
patch -p0 $RPM_BUILD_ROOT%{_libdir}/%{name}/Reader/intellinux/app-defaults/AcroRead < %{PATCH2}

# Install browser plugin
mkdir -p $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
install -m755 $RPM_BUILD_ROOT%{_libdir}/%{name}/Browsers/intellinux/nppdf.so \
	$RPM_BUILD_ROOT%{_libdir}/mozilla/plugins

# Move documentation
mv $RPM_BUILD_ROOT%{_libdir}/%{name}/Reader/license.txt .
mv $RPM_BUILD_ROOT%{_libdir}/%{name}/Resource/LICFONT.TXT .

# Clean up unused files
rm -fr $RPM_BUILD_ROOT%{_libdir}/%{name}/bin 
rm -fr $RPM_BUILD_ROOT%{_libdir}/%{name}/Browsers
rm -fr $RPM_BUILD_ROOT%{_infodir}/dir

# Desktop file
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor fedora \
        --dir $RPM_BUILD_ROOT/%{_datadir}/applications  \
        --add-category X-Fedora                     \
        --add-category Application                  \
	--add-category Graphics \
	%{SOURCE1}

# Icon
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps

# Fix permissions. FIXME: Is this really needed?
find $RPM_BUILD_ROOT%{_libdir}/%{name} -type d -exec chmod 755 {} \;
find $RPM_BUILD_ROOT%{_libdir}/%{name} -name "*.so.*" -exec chmod 755 {} \;

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root,-)
%doc README license.txt LICFONT.TXT
%{_bindir}/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*

%files plugin
%defattr(-,root,root,-)
%{_libdir}/mozilla/plugins/*

%changelog
* Fri May 03 2003 Your Name <you[AT]your.domain> - epoch:version-release
- Initial RPM release.
%define 	srcdir 		RealPlayer-8.0-1
#%define 	debug_package 	%{nil}

Summary: 	Real Player (R) 8.0
Name: 		realplayer
Version: 	8.0.3.421
Release: 	0.fdr.1
Epoch:		0
License: 	Commercial
ExclusiveArch: 	i386 
Group: 		Applications/Multimedia
Source0: 	rp8_linux20_libc6_i386_cs2_rpm
Source1: 	rv9_libc6_i386_cs2.tgz
Source2: 	realplayer.desktop
Source3:	realplayer.png
Url: 		http://forms.real.com/real/player/unix/unix.html
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	fedora-rpmdevtools
Requires: 	XFree86

%description
Real Player (R) 8.0.

%package 	plugin
Summary: 	Real Player (R) plugin for Mozilla/Konqueror/Opera.
Requires: 	%{name} = %{epoch}:%{version}-%{release}
Group: 		Applications/Networking

%description plugin
Real Player (R) plugin for Mozilla/Konqueror/Opera.

%prep
%setup -cT
/usr/bin/fedora-unrpm %{SOURCE0} &> /dev/null || :
tar xf %{SOURCE1}

%build
# Empty build section

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_bindir} \
	$RPM_BUILD_ROOT%{_libdir}/%{name} \
	$RPM_BUILD_ROOT%{_libdir}/mozilla/plugins \
	$RPM_BUILD_ROOT%{_datadir}/applications \
	$RPM_BUILD_ROOT%{_datadir}/pixmaps

# The guts. HTML documentations goes here, since
# it's hard linked in the About menu entry. 
cp -a 	%{srcdir}%{_libdir}/RealPlayer8/Codecs \
	%{srcdir}%{_libdir}/RealPlayer8/Common \
	%{srcdir}%{_libdir}/RealPlayer8/Help \
	%{srcdir}%{_libdir}/RealPlayer8/Plugins \
	%{srcdir}%{_libdir}/RealPlayer8/*.rm \
	$RPM_BUILD_ROOT%{_libdir}/%{name}

# Fix permissions
find $RPM_BUILD_ROOT%{_libdir}/%{name} -type f -exec chmod 644 {} \;
find $RPM_BUILD_ROOT%{_libdir}/%{name} -type d -exec chmod 755 {} \;
find $RPM_BUILD_ROOT%{_libdir}/%{name} -name "*.so.*" -exec chmod 755 {} \;

# RV9 codecs
install -m755 rv9/codecs/drv4.so.6.0 rv9/codecs/rv40.so.6.0 \
	$RPM_BUILD_ROOT%{_libdir}/%{name}/Codecs

# Install binary in lib dir 
install -m755 %{srcdir}%{_bindir}/X11/realplay \
	$RPM_BUILD_ROOT%{_libdir}/%{name}/realplay.bin  

# Startup script with NTPL workaround
echo "#!/bin/sh" >> realplay 
echo "export LD_ASSUME_KERNEL=2.2.5" >> realplay 
echo "%{_libdir}/%{name}/realplay.bin \$* &" >> realplay 
install -m755 realplay $RPM_BUILD_ROOT%{_bindir}

# RPM installation marker
touch $RPM_BUILD_ROOT%{_libdir}/%{name}/rpminstalled

# Browser plugin
install -m755 %{srcdir}%{_libdir}/netscape/plugins/rpnp.so \
	$RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
install -m644 %{srcdir}%{_libdir}/netscape/plugins/raclass.zip \
	$RPM_BUILD_ROOT%{_libdir}/mozilla/plugins

# Icon
install -m644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/pixmaps

# Desktop file
desktop-file-install --vendor fedora \
        --dir $RPM_BUILD_ROOT/%{_datadir}/applications \
        --add-category X-Fedora \
        --add-category Application \
        --add-category AudioVideo \
        %{SOURCE2}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc %{srcdir}%{_libdir}/RealPlayer8/LICENSE 
%doc %{srcdir}%{_libdir}/RealPlayer8/README
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*

%files plugin
%defattr(-, root, root)
%{_libdir}/mozilla/plugins/*

%changelog
* Fri May 30 2003 Peter Backlund <peter backlund home se>
- Initial packaging.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]