%global pluginroot /opt/google/talkplugin %global debug_package %{nil} Name: google-talkplugin Version: 1.4.1.0 Release: 1%{?dist} Summary: Google Talk Plugin Group: Applications/Internet License: Proprietary URL: http://www.google.com/chat/video Source0: http://dl.google.com/linux/direct/google-talkplugin_current_i386.deb Source1: http://dl.google.com/linux/direct/google-talkplugin_current_amd64.deb BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) ExclusiveArch: i586 x86_64 Requires: mozilla-filesystem BuildRequires: openssl-devel Provides: libcrypto.so.0.9.8(OPENSSL_0.9.8) Provides: libssl.so.0.9.8(OPENSSL_0.9.8) %description The Google Talk Plugin is a browser plugin that enables you to use Google voice and video chat to chat face to face with family and friends. %prep %setup -q -c -T %ifarch i586 %{__ar} xf %{SOURCE0} %endif %ifarch x86_64 %{__ar} xf %{SOURCE1} %endif %{__tar} xf data.tar.gz %build rm -rf .%{pluginroot}/cron objdump -T .%{pluginroot}/GoogleTalkPlugin | sed -n 's/.*\(OPENSSL_0\.9\.8\) \([^ ]*\)$/\.symver t_\2,\2@\1\nt_\2: jmp \2/p' \ >sslcompat.s cc -fPIC -shared -lssl -lcrypto -o .%{pluginroot}/libcrypto.so.0.9.8 sslcompat.s cc -fPIC -shared -lcrypto -o .%{pluginroot}/libssl.so.0.9.8 sslcompat.s %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{pluginroot} cp -a .%{pluginroot}/. $RPM_BUILD_ROOT%{pluginroot} install -d $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins ln -s ../../../..%{pluginroot}/libnp{googletalk,gtpo3dautoplugin}.so \ $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d echo %{pluginroot} >$RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/%{name}.conf touch -r %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/%{name}.conf %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{pluginroot} %{_libdir}/mozilla/plugins/*.so %{_sysconfdir}/ld.so.conf.d/%{name}.conf %changelog * Sat Aug 21 2010 Lubomir Rintel - 1.4.1.0-1 - Initial packaging