]> git.pld-linux.org Git - packages/freshplayerplugin.git/blame - freshplayerplugin.spec
- updated to 0.3.11, generalized OpenGL/OpenGLES dependencies
[packages/freshplayerplugin.git] / freshplayerplugin.spec
CommitLineData
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
8Summary: PPAPI-host NPAPI-plugin adapter for flashplayer in NPAPI based browsers
9Summary(pl.UTF-8): Przejściówka hostująca wtyczki PPAPI dla flashplayera w przeglądarkach opartych na NPAPI
296b61b6 10Name: freshplayerplugin
365b1be3 11Version: 0.3.11
cf7659d7 12Release: 1
296b61b6
ER
13License: MIT
14Group: X11/Applications/Multimedia
15Source0: https://github.com/i-rinat/freshplayerplugin/archive/v%{version}/%{name}-%{version}.tar.gz
365b1be3 16# Source0-md5: c34383e281135b7d40e29444af189d34
296b61b6 17URL: https://github.com/i-rinat/freshplayerplugin
365b1be3
JB
18BuildRequires: OpenGL-devel
19%{?with_gles:BuildRequires: OpenGLESv2-devel}
296b61b6 20BuildRequires: alsa-lib-devel
365b1be3 21BuildRequires: cairo-devel
296b61b6 22BuildRequires: cmake >= 2.8.8
365b1be3
JB
23# libavcodec libavutil
24%{?with_ffmpeg:BuildRequires: ffmpeg-devel}
25BuildRequires: freetype-devel >= 2.0
26BuildRequires: glib2-devel >= 2.0
addc7535 27%{?with_jack:BuildRequires: jack-audio-connection-kit-devel}
365b1be3 28BuildRequires: libdrm-devel
296b61b6 29BuildRequires: libevent-devel
365b1be3 30BuildRequires: libicu-devel
296b61b6 31BuildRequires: libv4l-devel
365b1be3
JB
32%{?with_ffmpeg:BuildRequires: libva-devel}
33%{?with_ffmpeg:BuildRequires: libva-x11-devel}
34%{?with_ffmpeg:BuildRequires: libvdpau-devel}
296b61b6 35BuildRequires: openssl-devel
365b1be3 36BuildRequires: pango-devel
0a12cfc5 37BuildRequires: pkgconfig
365b1be3
JB
38BuildRequires: pkgconfig(gl)
39%{?with_gles:BuildRequires: pkgconfig(glesv2)}
addc7535 40%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
3c4cfcb6 41BuildRequires: ragel
addc7535 42BuildRequires: rpmbuild(macros) >= 1.605
365b1be3
JB
43%{?with_jack:BuildRequires: soxr-devel}
44BuildRequires: xorg-lib-libX11-devel
296b61b6
ER
45BuildRequires: xorg-lib-libXrandr-devel
46BuildRequires: xorg-lib-libXrender-devel
47Requires: browser-plugins >= 2.0
48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50%description
51PPAPI-host NPAPI-plugin adapter for flashplayer in npapi based
52browsers.
53
addc7535
JB
54%description -l pl.UTF-8
55Przejściówka hostująca wtyczki PPAPI (pod kątem flashplayera) w
56przeglądarkach opartych na NPAPI.
57
296b61b6
ER
58%prep
59%setup -q
60
61%build
62install -d build
63cd 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
73rm -rf $RPM_BUILD_ROOT
74install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
addc7535 75
51e9e720 76install -p build/libfreshwrapper-flashplayer.so $RPM_BUILD_ROOT%{_browserpluginsdir}
296b61b6
ER
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%post
82%update_browser_plugins
83
84%postun
85if [ "$1" = 0 ]; then
86 %update_browser_plugins
87fi
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
This page took 0.072236 seconds and 4 git commands to generate.