]>
Commit | Line | Data |
---|---|---|
296b61b6 ER |
1 | # |
2 | # Conditional build: | |
365b1be3 | 3 | %bcond_without gles # GLESv2 instead of ANGLE |
addc7535 JB |
4 | %bcond_without jack # JACK support |
5 | %bcond_without pulseaudio # PulseAudio support | |
365b1be3 | 6 | %bcond_without ffmpeg # ffmpeg with hardware acceleration (VA-API/VDPAU) support |
296b61b6 | 7 | |
addc7535 JB |
8 | Summary: PPAPI-host NPAPI-plugin adapter for flashplayer in NPAPI based browsers |
9 | Summary(pl.UTF-8): Przejściówka hostująca wtyczki PPAPI dla flashplayera w przeglądarkach opartych na NPAPI | |
296b61b6 | 10 | Name: freshplayerplugin |
365b1be3 | 11 | Version: 0.3.11 |
cf7659d7 | 12 | Release: 1 |
296b61b6 ER |
13 | License: MIT |
14 | Group: X11/Applications/Multimedia | |
15 | Source0: https://github.com/i-rinat/freshplayerplugin/archive/v%{version}/%{name}-%{version}.tar.gz | |
365b1be3 | 16 | # Source0-md5: c34383e281135b7d40e29444af189d34 |
296b61b6 | 17 | URL: https://github.com/i-rinat/freshplayerplugin |
365b1be3 JB |
18 | BuildRequires: OpenGL-devel |
19 | %{?with_gles:BuildRequires: OpenGLESv2-devel} | |
296b61b6 | 20 | BuildRequires: alsa-lib-devel |
365b1be3 | 21 | BuildRequires: cairo-devel |
296b61b6 | 22 | BuildRequires: cmake >= 2.8.8 |
365b1be3 JB |
23 | # libavcodec libavutil |
24 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel} | |
25 | BuildRequires: freetype-devel >= 2.0 | |
26 | BuildRequires: glib2-devel >= 2.0 | |
addc7535 | 27 | %{?with_jack:BuildRequires: jack-audio-connection-kit-devel} |
365b1be3 | 28 | BuildRequires: libdrm-devel |
296b61b6 | 29 | BuildRequires: libevent-devel |
365b1be3 | 30 | BuildRequires: libicu-devel |
296b61b6 | 31 | BuildRequires: libv4l-devel |
365b1be3 JB |
32 | %{?with_ffmpeg:BuildRequires: libva-devel} |
33 | %{?with_ffmpeg:BuildRequires: libva-x11-devel} | |
34 | %{?with_ffmpeg:BuildRequires: libvdpau-devel} | |
296b61b6 | 35 | BuildRequires: openssl-devel |
365b1be3 | 36 | BuildRequires: pango-devel |
0a12cfc5 | 37 | BuildRequires: pkgconfig |
365b1be3 JB |
38 | BuildRequires: pkgconfig(gl) |
39 | %{?with_gles:BuildRequires: pkgconfig(glesv2)} | |
addc7535 | 40 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
3c4cfcb6 | 41 | BuildRequires: ragel |
addc7535 | 42 | BuildRequires: rpmbuild(macros) >= 1.605 |
365b1be3 JB |
43 | %{?with_jack:BuildRequires: soxr-devel} |
44 | BuildRequires: xorg-lib-libX11-devel | |
296b61b6 ER |
45 | BuildRequires: xorg-lib-libXrandr-devel |
46 | BuildRequires: xorg-lib-libXrender-devel | |
47 | Requires: browser-plugins >= 2.0 | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | PPAPI-host NPAPI-plugin adapter for flashplayer in npapi based | |
52 | browsers. | |
53 | ||
addc7535 JB |
54 | %description -l pl.UTF-8 |
55 | Przejściówka hostująca wtyczki PPAPI (pod kątem flashplayera) w | |
56 | przeglądarkach opartych na NPAPI. | |
57 | ||
296b61b6 ER |
58 | %prep |
59 | %setup -q | |
60 | ||
61 | %build | |
62 | install -d build | |
63 | cd build | |
365b1be3 JB |
64 | %cmake .. \ |
65 | -DCMAKE_SKIP_RPATH=ON \ | |
66 | %{!?with_ffmpeg:-DWITH_HWDEC=OFF} \ | |
67 | %{!?with_jack:-DWITH_JACK=OFF} \ | |
68 | %{!?with_pulseaudio:-DWITH_PULSEAUDIO=OFF} | |
69 | ||
296b61b6 ER |
70 | %{__make} |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | install -d $RPM_BUILD_ROOT%{_browserpluginsdir} | |
addc7535 | 75 | |
51e9e720 | 76 | install -p build/libfreshwrapper-flashplayer.so $RPM_BUILD_ROOT%{_browserpluginsdir} |
296b61b6 ER |
77 | |
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post | |
82 | %update_browser_plugins | |
83 | ||
84 | %postun | |
85 | if [ "$1" = 0 ]; then | |
86 | %update_browser_plugins | |
87 | fi | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
365b1be3 | 91 | %doc ChangeLog LICENSE README.md data/freshwrapper.conf.example |
51e9e720 | 92 | %attr(755,root,root) %{_browserpluginsdir}/libfreshwrapper-flashplayer.so |