]>
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 |
d1f9eaf9 | 34 | BuildRequires: xulrunner-devel >= 1.9.2 |
20d7f6c1 PZ |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | Lightspark is a modern, free, open-source flash player implementation. | |
39 | ||
40 | %package -n browser-plugin-%{name} | |
41 | Summary: Browser plugin for Flash rendering | |
42 | Group: X11/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: browser-plugins >= 2.0 | |
45 | Requires: browser-plugins(%{_target_base_arch}) | |
46 | Provides: browser(flash) | |
47 | ||
48 | %description -n browser-plugin-%{name} | |
49 | Browser plugin for rendering Flash content using Lightspark. | |
50 | ||
51 | %prep | |
52 | %setup -q | |
bc2fc667 ER |
53 | |
54 | install -d build | |
20d7f6c1 PZ |
55 | |
56 | %build | |
bc2fc667 ER |
57 | cd build |
58 | %cmake \ | |
9033b462 | 59 | -DAUDIO_BACKEND=pulse \ |
20d7f6c1 PZ |
60 | -DCOMPILE_PLUGIN=1 \ |
61 | -DLIB_INSTALL_DIR=%{_lib} \ | |
62 | -DPLUGIN_DIRECTORY=%{_browserpluginsdir} \ | |
63 | .. | |
64 | ||
65 | %{__make} | |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
bc2fc667 | 69 | %{__make} -C build install \ |
20d7f6c1 | 70 | DESTDIR=$RPM_BUILD_ROOT |
20d7f6c1 PZ |
71 | |
72 | %find_lang %{name} --all-name | |
73 | ||
6e463686 ER |
74 | # rename because we need only SONAME being available |
75 | mv $RPM_BUILD_ROOT%{_libdir}/lightspark/liblightspark.so.{0.4.*,0.4} | |
76 | rm $RPM_BUILD_ROOT%{_libdir}/lightspark/liblightspark.so | |
77 | ||
78 | # weird size | |
79 | rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/20x20 | |
80 | rm -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps/lightspark.svg | |
81 | ||
20d7f6c1 PZ |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %post -n browser-plugin-%{name} | |
89 | %update_browser_plugins | |
90 | ||
91 | %postun -n browser-plugin-%{name} | |
92 | if [ "$1" = 0 ]; then | |
93 | %update_browser_plugins | |
94 | fi | |
95 | ||
96 | %files -f %{name}.lang | |
97 | %defattr(644,root,root,755) | |
98 | %doc ChangeLog README TODO | |
99 | %attr(755,root,root) %{_bindir}/lightspark | |
100 | %attr(755,root,root) %{_bindir}/tightspark | |
6e463686 | 101 | |
20d7f6c1 | 102 | %dir %{_libdir}/lightspark |
20d7f6c1 | 103 | %attr(755,root,root) %{_libdir}/lightspark/liblightspark.so.*.* |
6e463686 ER |
104 | |
105 | %dir %{_libdir}/lightspark/plugins | |
106 | %attr(755,root,root) %{_libdir}/lightspark/plugins/liblightsparkpulseplugin.so | |
107 | ||
20d7f6c1 PZ |
108 | %{_datadir}/lightspark |
109 | %{_mandir}/man1/lightspark.1* | |
6e463686 ER |
110 | %{_desktopdir}/lightspark.desktop |
111 | %{_iconsdir}/hicolor/*/apps/lightspark.png | |
20d7f6c1 PZ |
112 | |
113 | %files -n browser-plugin-%{name} | |
114 | %defattr(644,root,root,755) | |
115 | %attr(755,root,root) %{_browserpluginsdir}/liblightsparkplugin.so |