]> git.pld-linux.org Git - packages/adobe-flash.git/blame - adobe-flash.spec
- multiple CVE notes
[packages/adobe-flash.git] / adobe-flash.spec
CommitLineData
e9cc6da3 1#
aa3cbbce 2# Conditional build:
3%bcond_with license_agreement # generates package
e9cc6da3 4#
7c54dc02 5%define ver_major 10
5e11dd18 6%define ver_minor 0
6fa8c0e6
BZ
7%define ver_patch 12
8%define ver_serial 36
fdeb48aa 9%define base_name adobe-flash
6fa8c0e6 10%define rel 1
53f15d83 11Summary: Flash plugin for Netscape-compatible WWW browsers
989db712 12Summary(pl.UTF-8): Wtyczka Flash dla przeglądarek WWW zgodnych z Netscape
aa3cbbce 13%if %{with license_agreement}
14Name: %{base_name}
15%else
16Name: %{base_name}-installer
17%endif
5e11dd18
ER
18Version: %{ver_major}.%{ver_minor}.%{ver_patch}.%{ver_serial}
19Release: %{rel}%{?with_license_agreement:wla}
53f15d83 20License: Free to use, non-distributable
01b5e1fb 21Group: X11/Applications/Multimedia
aa3cbbce 22%if %{with license_agreement}
6fa8c0e6
BZ
23Source0: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
24# NoSource0-md5: 4777665a6149af11233d8a000b89ffb1
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 30BuildRequires: rpmbuild(macros) >= 1.357
5f855dbc 31BuildRequires: sed >= 4.0
df79ad5e 32Requires: browser-plugins >= 2.0
15b3da69 33# dlopened by player
e8872bc1 34Requires: libasound.so.2
8fb522d2 35Requires: libcurl.so.4
94ae04b2 36%else
f68af2cb 37Requires: rpm-build-tools
533db319 38%endif
bcccd50e 39Provides: browser(flash)
5f855dbc 40Provides: macromedia-flash
533db319 41Obsoletes: flash-plugin
533db319 42Obsoletes: konqueror-plugin-macromedia-flash
5891b1a0 43Obsoletes: macromedia-flash
a00d2cc2
ER
44Obsoletes: mozilla-firefox-plugin-macromedia-flash
45Obsoletes: mozilla-plugin-macromedia-flash
01b5e1fb
PG
46ExclusiveArch: %{ix86}
47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
ed1085d2
ER
49%define _sysconfdir /etc/adobe
50
0fa08e0e
ER
51# So that building package on AC system won't write package name dep that Th system can't understand (libstdc++4)
52%define _noautoreqdep libstdc++.so.6
53
1fe30e9c
ER
54# No debuginfo to be stored
55%define _enable_debug_packages 0
56
01b5e1fb 57%description
65fff478 58Adobe(R) Flash(R) Player for Linux - the next-generation client
e338620c 59runtime for engaging with Flash content and applications on Linux.
53f15d83 60
5f2286aa
JR
61%description -l pl.UTF-8
62Adobe(R) Flash(R) Player - środowisko nowej generacji do obsługi
63treści i aplikacji we Flashu pod Linuksem.
53f15d83 64
01b5e1fb 65%prep
aa3cbbce 66%if %{with license_agreement}
5e11dd18 67%setup -q -n install_flash_player_%{ver_major}_linux
aa3cbbce 68%endif
01b5e1fb
PG
69
70%install
71rm -rf $RPM_BUILD_ROOT
ed1085d2 72%if %{without license_agreement}
aa3cbbce 73install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
74
18284157
ER
75sed -e '
76 s/@BASE_NAME@/%{base_name}/g
77 s/@TARGET_CPU@/%{_target_cpu}/g
78 s-@VERSION@-%{version}-g
79 s-@RELEASE@-%{release}-g
80 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
6b6413ed 81' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
aa3cbbce 82
83install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
84
85%else
86
ed1085d2
ER
87install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_browserpluginsdir}}
88cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/mms.cfg
89# http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=16701594
e953e2c9 90# http://www.adobe.com/devnet/flashplayer/articles/flash_player_admin_guide.html
ed1085d2
ER
91AutoUpdateDisable=1
92AutoUpdateInterval=0
be05c7b7 93# OverrideGPUValidation=true
ed1085d2 94EOF
df79ad5e 95install *.so $RPM_BUILD_ROOT%{_browserpluginsdir}
aa3cbbce 96%endif
97
01b5e1fb
PG
98%clean
99rm -rf $RPM_BUILD_ROOT
100
df79ad5e 101%if %{without license_agreement}
ae33c71b 102%post
18284157 103%{_bindir}/%{base_name}.install
533db319 104%else
df79ad5e
ER
105%post
106%update_browser_plugins
533db319 107
df79ad5e
ER
108%postun
109if [ "$1" = 0 ]; then
110 %update_browser_plugins
111fi
533db319
ER
112%endif
113
aa3cbbce 114%files
115%defattr(644,root,root,755)
df79ad5e 116%if %{without license_agreement}
aa3cbbce 117%attr(755,root,root) %{_bindir}/%{base_name}.install
118%{_datadir}/%{base_name}
aa3cbbce 119%else
ed1085d2
ER
120%dir %{_sysconfdir}
121%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mms.cfg
df79ad5e 122%attr(755,root,root) %{_browserpluginsdir}/*.so
aa3cbbce 123%endif
This page took 0.073923 seconds and 4 git commands to generate.