# TODO:
# - move translations into a separate, noarch package
+# - duplicate files
#
%bcond_without shared # static or shared version
%bcond_without distributable # distributable or not
Summary(pl): Najszybsza przegl±darka WWW na ¶wiecie
Name: opera
Version: %{ver}%{fix}%{?with_snap:.%{rel}}
-Release: 1
+Release: 1.1
Epoch: 2
License: Distributable for PLD until 31 Dec 2006 - http://distribute.opera.com/ (otherwise restricted, see file LICENSE)
Group: X11/Applications/Networking
ExclusiveArch: %{ix86} ppc sparc sparc64
Requires: freetype >= 2
Requires: openmotif >= 2
+BuildRequires: sed >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _plugindir %{_libdir}/opera/plugins
install -d $RPM_BUILD_ROOT{/etc,%{_mandir}/man1,%{_pixmapsdir},%{_desktopdir}}
-cat install.sh | sed 's|/etc|$RPM_BUILD_ROOT%{_sysconfdir}|' > install2.sh
-mv install2.sh install.sh
+sed -i -e 's|/etc|$RPM_BUILD_ROOT%{_sysconfdir}|' install.sh
echo y |\
sh install.sh \
install man/opera.1 $RPM_BUILD_ROOT%{_mandir}/man1
# wrapper correction
-sed s#$RPM_BUILD_ROOT## > $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
-mv $RPM_BUILD_ROOT%{_bindir}/opera2 $RPM_BUILD_ROOT%{_bindir}/opera
+sed -i -e "s#$RPM_BUILD_ROOT##" $RPM_BUILD_ROOT%{_bindir}/opera
# install in kde etc.
install images/opera.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
%defattr(644,root,root,755)
%doc LICENSE bugreport
%attr(755,root,root) %{_bindir}/*
-%{_datadir}/opera
%dir %{_libdir}/opera
%dir %{_libdir}/opera/bin
%attr(755,root,root) %{_libdir}/opera/bin/*
%dir %{_plugindir}
%attr(755,root,root) %{_plugindir}/*
+# XXX duplicate files
+%{_datadir}/opera
%dir %{_datadir}/opera/locale
%{_datadir}/opera/locale/en
%{_datadir}/opera/locale/english.lng