]> git.pld-linux.org Git - packages/adobe-flash.git/blame - adobe-flash.spec
solves CVE-2007-5275, CVE-2007-6243, CVE-2007-6637, CVE-2007-6019, CVE-2007-0071...
[packages/adobe-flash.git] / adobe-flash.spec
CommitLineData
e9cc6da3 1#
aa3cbbce 2# Conditional build:
3%bcond_with license_agreement # generates package
e9cc6da3 4#
29d8201b 5%define _ver_major 9
b68eb59b 6%define _ver_minor 0
e73d8fbe 7%define _ver_patch 124
43f0f735 8%define _ver_serial 0
fdeb48aa 9%define base_name adobe-flash
53f15d83 10Summary: Flash plugin for Netscape-compatible WWW browsers
989db712 11Summary(pl.UTF-8): Wtyczka Flash dla przeglądarek WWW zgodnych z Netscape
aa3cbbce 12%if %{with license_agreement}
13Name: %{base_name}
14%else
15Name: %{base_name}-installer
16%endif
08bdb019 17%define _rel 1
a00d2cc2 18Version: %{_ver_major}.%{_ver_minor}.%{_ver_patch}.%{_ver_serial}
d628a757 19Release: %{_rel}%{?with_license_agreement:wla}
53f15d83 20License: Free to use, non-distributable
01b5e1fb 21Group: X11/Applications/Multimedia
aa3cbbce 22%if %{with license_agreement}
f1e0b648 23Source0: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz
e73d8fbe 24# NoSource0-md5: a311fd97aa6c214f63dc089a20cf7a39
18284157 25%else
6b6413ed 26Source1: license-installer.sh
aa3cbbce 27%endif
ba9bcac5 28URL: http://www.adobe.com/products/flashplayer/
b68eb59b 29%if %{with license_agreement}
df79ad5e
ER
30BuildRequires: rpmbuild(macros) >= 1.357
31Requires: browser-plugins >= 2.0
e8872bc1
ER
32# apparently dlopened by player
33Requires: libasound.so.2
94ae04b2 34%else
f68af2cb 35Requires: rpm-build-tools
533db319 36%endif
0b0dcf20 37Provides: macromedia-flash
bcccd50e 38Provides: browser(flash)
533db319 39Obsoletes: flash-plugin
533db319 40Obsoletes: konqueror-plugin-macromedia-flash
5891b1a0 41Obsoletes: macromedia-flash
a00d2cc2
ER
42Obsoletes: mozilla-firefox-plugin-macromedia-flash
43Obsoletes: mozilla-plugin-macromedia-flash
01b5e1fb
PG
44ExclusiveArch: %{ix86}
45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
ed1085d2
ER
47%define _sysconfdir /etc/adobe
48
01b5e1fb 49%description
e338620c
JB
50Adobe(R) Flash(R) Player 9 for Linux - the next-generation client
51runtime for engaging with Flash content and applications on Linux.
53f15d83 52
5f2286aa
JR
53%description -l pl.UTF-8
54Adobe(R) Flash(R) Player - środowisko nowej generacji do obsługi
55treści i aplikacji we Flashu pod Linuksem.
53f15d83 56
01b5e1fb 57%prep
aa3cbbce 58%if %{with license_agreement}
08bdb019 59%setup -q -n install_flash_player_%{_ver_major}_linux
aa3cbbce 60%endif
01b5e1fb
PG
61
62%install
63rm -rf $RPM_BUILD_ROOT
ed1085d2 64%if %{without license_agreement}
aa3cbbce 65install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
66
18284157
ER
67sed -e '
68 s/@BASE_NAME@/%{base_name}/g
69 s/@TARGET_CPU@/%{_target_cpu}/g
70 s-@VERSION@-%{version}-g
71 s-@RELEASE@-%{release}-g
72 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
6b6413ed 73' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
aa3cbbce 74
75install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
76
77%else
78
ed1085d2
ER
79install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_browserpluginsdir}}
80cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/mms.cfg
81# http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=16701594
82AutoUpdateDisable=1
83AutoUpdateInterval=0
84EOF
df79ad5e 85install *.so $RPM_BUILD_ROOT%{_browserpluginsdir}
01b5e1fb 86
aa3cbbce 87%endif
88
01b5e1fb
PG
89%clean
90rm -rf $RPM_BUILD_ROOT
91
df79ad5e 92%if %{without license_agreement}
ae33c71b 93%post
18284157 94%{_bindir}/%{base_name}.install
533db319 95%else
df79ad5e
ER
96%post
97%update_browser_plugins
533db319 98
df79ad5e
ER
99%postun
100if [ "$1" = 0 ]; then
101 %update_browser_plugins
102fi
533db319
ER
103%endif
104
aa3cbbce 105%files
106%defattr(644,root,root,755)
df79ad5e 107%if %{without license_agreement}
aa3cbbce 108%attr(755,root,root) %{_bindir}/%{base_name}.install
109%{_datadir}/%{base_name}
aa3cbbce 110%else
ed1085d2
ER
111%dir %{_sysconfdir}
112%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mms.cfg
df79ad5e 113%attr(755,root,root) %{_browserpluginsdir}/*.so
aa3cbbce 114%endif
This page took 0.108939 seconds and 4 git commands to generate.