]> git.pld-linux.org Git - packages/opera.git/blobdiff - opera.spec
- SECURITY note
[packages/opera.git] / opera.spec
index 41cbfeda5eb7ea9c167c1216049ef1584c522dc6..7cb4a7aa496757c253be799cafb8f1f9c3ea91d0 100644 (file)
@@ -1,13 +1,14 @@
+# TODO:
+# - SECURITY: http://securitytracker.com/alerts/2004/Jul/1010780.html
 #
-# There're some problems with "shared" version
-#
-%bcond_with    shared
+%bcond_without shared          # static or shared version
+%bcond_without distributable   # distributable or not
+%bcond_without incall          # include all tarballs into src.rpm (but splitted into shared/static)
+%bcond_with    snap            # snap version
 
-%define        ver             7.52
+%define        ver             7.54
 %define shver          %(echo %{ver} | tr -d .)
-%define        dirrel          20040706
-# is this snap or beta/final release?
-%define        notsnap         1
+%define        dirrel          20040803
 # type of release, usually final or beta or Preview-4 for snaps
 %define        reltype         final
 %define        x86_shared_rel          %{dirrel}.5
@@ -44,61 +45,76 @@ Summary:    World fastest web browser
 Summary(pl):   Najszybsza przegl±darka WWW na Â¶wiecie
 Name:          opera
 Version:       %{ver}.%{rel}
-Release:       0.1
-License:       Restricted, see file LICENSE
+Release:       1
+License:       Distributable for PLD until 31 Dec 2006 - http://distribute.opera.com/ (otherwise restricted, see file LICENSE)
 Group:         X11/Applications/Networking
 %if %{without shared}
-%ifarch %{ix86}
-%if %{notsnap}
+%{!?with_incall:%ifarch %{ix86}}
+%if ! %{with snap}
 Source0:       ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/i386/static/%{name}-%{ver}-%{x86_static_rel}-static-qt.i386-en.tar.bz2
+# Source0-md5: 0a7e933ef593d4b7a897041c9f87bba2
 %else
-Source0:       http://snapshot.opera.com/unix/%{ver}-%{reltype}/intel-linux/en/%{name}-%{ver}-%{x86_static_rel}-static-qt.i386-en.tar.bz2
+Source100:     http://snapshot.opera.com/unix/%{ver}-%{reltype}/intel-linux/en/%{name}-%{ver}-%{x86_static_rel}-static-qt.i386-en.tar.bz2
 %endif
-NoSource:      0
+%{!?with_distributable:NoSource:       0}
+%if ! %{with incall}
 %endif
-%ifarch sparc64 sparc
-%if %{notsnap}
+%ifarch sparc sparc64
+%endif
+%if ! %{with snap}
 Source1:       ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/sparc/static/%{name}-%{ver}-%{sparc_static_rel}-static-qt.sparc-en.tar.bz2
+# Source1-md5: 04976a6ace7a4345ce5e4cf763159939
 %else
-Source1:       http://snapshot.opera.com/unix/%{ver}-%{reltype}/sparc-linux/en/%{name}-%{ver}-%{sparc_static_rel}-static-qt.sparc-en.tar.bz2
+Source101:     http://snapshot.opera.com/unix/%{ver}-%{reltype}/sparc-linux/en/%{name}-%{ver}-%{sparc_static_rel}-static-qt.sparc-en.tar.bz2
 %endif
-NoSource:      1
+%{!?with_distributable:NoSource:       1}
+%if ! %{with incall}
 %endif
 %ifarch ppc
-%if %{notsnap}
+%endif
+%if ! %{with snap}
 Source2:       ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/ppc/static/%{name}-%{ver}-%{ppc_static_rel}-static-qt.ppc-en.tar.bz2
+# Source2-md5: c11a4c78d18bdaa4bd338b4c0dc27f38
 %else
-Source2:       http://snapshot.opera.com/unix/%{ver}-%{reltype}/ppc-linux/en/%{name}-%{ver}-%{ppc_static_rel}-static-qt.ppc-en.tar.bz2
-%endif
-NoSource:      2
+Source102:     http://snapshot.opera.com/unix/%{ver}-%{reltype}/ppc-linux/en/%{name}-%{ver}-%{ppc_static_rel}-static-qt.ppc-en.tar.bz2
 %endif
+%{!?with_distributable:NoSource:       2}
+%{!?with_incall:%endif}
 %else
-%ifarch %{ix86}
-%if %{notsnap}
+%{!?with_incall:%ifarch %{ix86}}
+%if ! %{with snap}
 Source20:      ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/i386/shared/%{name}-%{ver}-%{x86_shared_rel}-shared-qt.i386-en.tar.bz2
+# Source20-md5:        0e407a050f3aa4559011a3cea707cd20
 %else
-Source20:      http://snapshot.opera.com/unix/%{ver}-%{reltype}/intel-linux/en/%{name}-%{ver}-%{x86_shared_rel}-shared-qt.i386-en.tar.bz2
+Source1020:    http://snapshot.opera.com/unix/%{ver}-%{reltype}/intel-linux/en/%{name}-%{ver}-%{x86_shared_rel}-shared-qt.i386-en.tar.bz2
 %endif
-NoSource:      20
+%{!?with_distributable:NoSource:       20}
+%if ! %{with incall}
 %endif
 %ifarch sparc sparc64
-%if %{notsnap}
+%endif
+%if ! %{with snap}
 Source21:      ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/sparc/shared/gcc-2.95/%{name}-%{ver}-%{sparc_shared_rel}-shared-qt.sparc-en.tar.bz2
+# Source21-md5:        d8635013dac0c98c680997fcc9dd66c4
 %else
-Source21:      http://snapshot.opera.com/unix/%{ver}-%{reltype}/sparc-linux/en/%{name}-%{ver}-%{sparc_shared_rel}-shared-qt.sparc-en.tar.bz2
+Source1021:    http://snapshot.opera.com/unix/%{ver}-%{reltype}/sparc-linux/en/%{name}-%{ver}-%{sparc_shared_rel}-shared-qt.sparc-en.tar.bz2
 %endif
-NoSource:      21
+%{!?with_distributable:NoSource:       21}
+%if ! %{with incall}
 %endif
 %ifarch ppc
-%if %{notsnap}
+%endif
+%if ! %{with snap}
 Source22:      ftp://ftp.opera.com/pub/opera/linux/%{shver}/%{reltype}/en/ppc/shared/gcc-2.95/%{name}-%{ver}-%{ppc_shared_rel}-shared-qt.ppc-en.tar.bz2
+# Source22-md5:        516992e68c5a710d795a1ecc791c7f4d
 %else
-Source22:      http://snapshot.opera.com/unix/%{ver}-%{reltype}/ppc-linux/en/%{name}-%{ver}-%{ppc_shared_rel}-shared-qt.ppc-en.tar.bz2
-%endif
-NoSource:      22
+Source1022:    http://snapshot.opera.com/unix/%{ver}-%{reltype}/ppc-linux/en/%{name}-%{ver}-%{ppc_shared_rel}-shared-qt.ppc-en.tar.bz2
 %endif
+%{!?with_distributable:NoSource:       22}
 %endif
-Source3:       ftp://ftp.opera.com/pub/opera/unix/lng/721/pl/ou721_480pl.lng
+%{!?with_incall:%endif}
+Source3:       ftp://ftp.opera.com/pub/opera/unix/lng/752/pl/ou752_727pl.lng
+# Source3-md5: 48bfd8a0d541698c70e151c81ab61408
 Source4:       %{name}.desktop
 URL:           http://www.opera.com/
 ExclusiveArch: %{ix86} ppc sparc sparc64
@@ -124,13 +140,13 @@ statycznie skonsolidowana z qt.
 
 %prep
 %ifarch %{ix86}
-%setup -q %{?with_shared:-T -b 20} -n %{name}-%{ver}-%{rel}-%{type}-qt.i386-en
+%setup -q %{?with_shared:-T -b %{?with_snap:10}20} -n %{name}-%{ver}-%{rel}-%{type}-qt.i386-en
 %endif
 %ifarch sparc sparc64
-%setup -q -T -b %{?with_shared:2}1 -n %{name}-%{ver}-%{rel}-%{type}-qt.sparc-en
+%setup -q -T -b %{?with_snap:10}%{?with_shared:2}1 -n %{name}-%{ver}-%{rel}-%{type}-qt.sparc-en
 %endif
 %ifarch ppc
-%setup -q -T -b %{?with_shared:2}2 -n %{name}-%{ver}-%{rel}-%{type}-qt.ppc-en
+%setup -q -T -b %{?with_snap:10}%{?with_shared:2}2 -n %{name}-%{ver}-%{rel}-%{type}-qt.ppc-en
 %endif
 
 %install
This page took 0.115875 seconds and 4 git commands to generate.