]>
Commit | Line | Data |
---|---|---|
6e463686 ER |
1 | # TODO |
2 | # - fix linking | |
20d7f6c1 PZ |
3 | Summary: Lightspark - a modern, free, open-source flash player implementation |
4 | Name: lightspark | |
e916929f LM |
5 | Version: 0.7.2 |
6 | Release: 0.1 | |
20d7f6c1 PZ |
7 | License: GPL v3 |
8 | Group: X11/Applications/Multimedia | |
e916929f LM |
9 | Source0: http://edge.launchpad.net/lightspark/trunk/lightspark-0.7.2/+download/%{name}-%{version}.tar.gz |
10 | # Source0-md5: f078d505a354fb66dc5b68ad09a2aa81 | |
20d7f6c1 | 11 | URL: http://lightspark.sourceforge.net/ |
d1f9eaf9 | 12 | BuildRequires: SDL-devel |
20d7f6c1 PZ |
13 | BuildRequires: autoconf >= 2.59-9 |
14 | BuildRequires: automake | |
d1f9eaf9 ER |
15 | BuildRequires: boost-devel |
16 | BuildRequires: cmake | |
17 | BuildRequires: curl-devel | |
20d7f6c1 | 18 | BuildRequires: ffmpeg-devel |
d1f9eaf9 | 19 | BuildRequires: fontconfig-devel |
20d7f6c1 | 20 | BuildRequires: ftgl-devel |
d1f9eaf9 ER |
21 | BuildRequires: gettext |
22 | BuildRequires: glew-devel >= 1.5.4 | |
23 | BuildRequires: gtkglext-devel | |
d9b2fba4 | 24 | BuildRequires: libstdc++-devel >= 6:4.4 |
20d7f6c1 | 25 | BuildRequires: libtool >= 2:1.5 |
d1f9eaf9 ER |
26 | BuildRequires: libxml++-devel |
27 | BuildRequires: llvm-devel >= 2.7 | |
20d7f6c1 PZ |
28 | BuildRequires: nasm |
29 | BuildRequires: pcre-cxx-devel | |
d1f9eaf9 | 30 | BuildRequires: pcre-devel |
20d7f6c1 | 31 | BuildRequires: pkgconfig |
d1f9eaf9 | 32 | BuildRequires: pulseaudio-devel |
6e463686 | 33 | BuildRequires: rpmbuild(macros) >= 1.583 |
20d7f6c1 PZ |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
5d2a9b0b LM |
36 | # Unresolved symbols found in: /usr/lib64/lightspark/liblightspark.so.0.7.2 |
37 | # rt sys av_free pt | |
38 | %define skip_post_check_so liblightspark.so.0.7 | |
39 | ||
20d7f6c1 PZ |
40 | %description |
41 | Lightspark is a modern, free, open-source flash player implementation. | |
42 | ||
43 | %package -n browser-plugin-%{name} | |
44 | Summary: Browser plugin for Flash rendering | |
45 | Group: X11/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | Requires: browser-plugins >= 2.0 | |
48 | Requires: browser-plugins(%{_target_base_arch}) | |
49 | Provides: browser(flash) | |
50 | ||
51 | %description -n browser-plugin-%{name} | |
52 | Browser plugin for rendering Flash content using Lightspark. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
bc2fc667 ER |
56 | |
57 | install -d build | |
20d7f6c1 PZ |
58 | |
59 | %build | |
bc2fc667 ER |
60 | cd build |
61 | %cmake \ | |
9033b462 | 62 | -DAUDIO_BACKEND=pulse \ |
20d7f6c1 PZ |
63 | -DCOMPILE_PLUGIN=1 \ |
64 | -DLIB_INSTALL_DIR=%{_lib} \ | |
65 | -DPLUGIN_DIRECTORY=%{_browserpluginsdir} \ | |
66 | .. | |
67 | ||
68 | %{__make} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
bc2fc667 | 72 | %{__make} -C build install \ |
20d7f6c1 | 73 | DESTDIR=$RPM_BUILD_ROOT |
20d7f6c1 PZ |
74 | |
75 | %find_lang %{name} --all-name | |
76 | ||
6e463686 ER |
77 | # rename because we need only SONAME being available |
78 | mv $RPM_BUILD_ROOT%{_libdir}/lightspark/liblightspark.so.{0.4.*,0.4} | |
79 | rm $RPM_BUILD_ROOT%{_libdir}/lightspark/liblightspark.so | |
80 | ||
81 | # weird size | |
82 | rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/20x20 | |
83 | rm -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/lightspark.svg | |
84 | ||
20d7f6c1 PZ |
85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %post -n browser-plugin-%{name} | |
92 | %update_browser_plugins | |
93 | ||
94 | %postun -n browser-plugin-%{name} | |
95 | if [ "$1" = 0 ]; then | |
96 | %update_browser_plugins | |
97 | fi | |
98 | ||
99 | %files -f %{name}.lang | |
100 | %defattr(644,root,root,755) | |
101 | %doc ChangeLog README TODO | |
102 | %attr(755,root,root) %{_bindir}/lightspark | |
103 | %attr(755,root,root) %{_bindir}/tightspark | |
6e463686 | 104 | |
20d7f6c1 | 105 | %dir %{_libdir}/lightspark |
20d7f6c1 | 106 | %attr(755,root,root) %{_libdir}/lightspark/liblightspark.so.*.* |
6e463686 ER |
107 | |
108 | %dir %{_libdir}/lightspark/plugins | |
109 | %attr(755,root,root) %{_libdir}/lightspark/plugins/liblightsparkpulseplugin.so | |
110 | ||
20d7f6c1 PZ |
111 | %{_datadir}/lightspark |
112 | %{_mandir}/man1/lightspark.1* | |
6e463686 ER |
113 | %{_desktopdir}/lightspark.desktop |
114 | %{_iconsdir}/hicolor/*/apps/lightspark.png | |
20d7f6c1 PZ |
115 | |
116 | %files -n browser-plugin-%{name} | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_browserpluginsdir}/liblightsparkplugin.so |