google-talkplugin/google-talkplugin.spec

105 lines
3.6 KiB
RPMSpec

%define mozillaplugindir /usr/lib/mozilla/plugins
Name: google-talkplugin
Version: 5.1.5.0
Release: 1mamba
Summary: A browser plugin that enables you to use Google voice and video chat
Group: Graphical Desktop/Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://www.google.com/chat/video
Source0: google-talkplugin_current_i386.rpm
Source1: google-talkplugin_current_x86_64.rpm
License: no OSI Approved (see http://www.google.com/talk/terms.html)
BuildRequires: binutils
ExclusiveArch: %{ix86} x86_64
%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.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
This product includes cryptographic software written by Eric Young (eay@cryptsoft.com).
%prep
%setup -q -T -c -n %{name}-%{version}
gtalk_ver=$(rpm -pq --queryformat "%{VERSION}" %{S:1})
echo -e "\ngoogle talk plugins version $gtalk_ver\n"
%ifarch x86_64
rpm2cpio %{S:1} > %{name}.cpio
%else
rpm2cpio %{S:0} > %{name}.cpio
%endif
cpio -d -m -i < %{name}.cpio
rm -f %{name}.cpio
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}/opt/google/talkplugin/lib
cp ./opt/google/talkplugin/lib/*.so %{buildroot}/opt/google/talkplugin/lib/
cp ./opt/google/talkplugin/*.so %{buildroot}/opt/google/talkplugin/
cp ./opt/google/talkplugin/GoogleTalkPlugin %{buildroot}/opt/google/talkplugin/
cp ./opt/google/talkplugin/attributions.txt %{buildroot}/opt/google/talkplugin/
cp ./opt/google/talkplugin/remoting24x24.png %{buildroot}/opt/google/talkplugin/
cp ./opt/google/talkplugin/windowpicker.glade %{buildroot}/opt/google/talkplugin/
cp -R ./opt/google/talkplugin/data %{buildroot}/opt/google/talkplugin/
cp -R ./opt/google/talkplugin/locale %{buildroot}/opt/google/talkplugin/
chmod 755 %{buildroot}/opt/google/talkplugin/lib/*.so
chmod 755 %{buildroot}/opt/google/talkplugin/*.so
mkdir -p %{buildroot}%{mozillaplugindir}
cd %{buildroot}%{mozillaplugindir}
ln -s /opt/google/talkplugin/libnpgoogletalk.so libnpgoogletalk.so
ln -s /opt/google/talkplugin/libnpgtpo3dautoplugin.so libnpgtpo3dautoplugin.so
ln -s /opt/google/talkplugin/libnpo1d.so libnpo1d.so
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%dir /opt/google
%dir /opt/google/talkplugin
#
/opt/google/talkplugin/GoogleTalkPlugin
/opt/google/talkplugin/attributions.txt
/opt/google/talkplugin/remoting24x24.png
/opt/google/talkplugin/windowpicker.glade
#
/opt/google/talkplugin/libgoogletalkremoting.so
/opt/google/talkplugin/libnpgoogletalk.so
/opt/google/talkplugin/libnpgtpo3dautoplugin.so
/opt/google/talkplugin/libnpo1d.so
/opt/google/talkplugin/libppgoogletalk.so
/opt/google/talkplugin/libppo1d.so
%dir /opt/google/talkplugin/lib
/opt/google/talkplugin/lib/libCg.so
/opt/google/talkplugin/lib/libCgGL.so
#
/opt/google/talkplugin/data
/opt/google/talkplugin/locale
#
%{mozillaplugindir}/libnpgoogletalk.so
%{mozillaplugindir}/libnpgtpo3dautoplugin.so
%{mozillaplugindir}/libnpo1d.so
%changelog
* Fri Feb 28 2014 Davide Madrisan <davide.madrisan@gmail.com> 5.1.5.0-1mamba
- update to 5.1.5.0
* Mon Apr 09 2012 Davide Madrisan <davide.madrisan@gmail.com> 2.8.5.0-1mamba
- update to 2.8.5.0
- support 64-bit architectures
* Thu Nov 24 2011 Davide Madrisan <davide.madrisan@gmail.com> 1.7.0.0-1mamba
- update to 1.7.0.0
* Thu Sep 16 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.5.1-1mamba
- first build