]> git.pld-linux.org Git - SPECS.git/blob - gplflash.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / gplflash.spec
1 Summary:        Flash animations redering library
2 Summary(pl.UTF-8):      Biblioteka renderująca animacje Flash
3 Name:           gplflash
4 Version:        0.4.13
5 Release:        8
6 License:        GPL v2+
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/gplflash/%{name}-%{version}.tar.bz2
9 # Source0-md5:  1b14c21094eb07416842ac0f5298b3f1
10 Source1:        %{name}.desktop
11 Source2:        %{name}.png
12 Patch0:         %{name}-link.patch
13 Patch1:         %{name}-c++.patch
14 URL:            http://gplflash.sourceforge.net/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  libjpeg-devel
18 BuildRequires:  libmad-devel >= 0.14.2b
19 BuildRequires:  libstdc++-devel
20 BuildRequires:  libtool
21 BuildRequires:  rpmbuild(macros) >= 1.357
22 BuildRequires:  xorg-lib-libX11-devel
23 BuildRequires:  xorg-lib-libXext-devel
24 BuildRequires:  xorg-lib-libXt-devel
25 BuildRequires:  zlib-devel >= 1.1.4
26 BuildConflicts: flash
27 Obsoletes:      flash
28 Obsoletes:      gplflash2
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 GPLFLash is based on Olivier Debons original work, which hasn't had a
33 release since June 2000. This project hope to bring GPLFlash back as a
34 free, portable and useable alternative to the Flash-decoder released
35 by Macromedia. The project contains a decoding library, a player and
36 (perhaps most importantly) a Mozilla/Netscape plugin.
37
38 %description -l pl.UTF-8
39 GPLFlash to biblioteka oparta na początkowej pracy Olivera Debonsa,
40 która nie była wydawana od czerwca 2000. Autorzy mają nadzieję, że ten
41 projekt wskrzesi GPLFlash jako wolnodostępną, przenośną i używalną
42 alternatywę dla dekodera Flasha wydawanego przez Macromedię. Projekt
43 zawiera bibliotekę dekodującą, odtwarzać i (prawdopodobnie
44 najważniejszą) wtyczkę Mozilli/Netscape'a.
45
46 %package devel
47 Summary:        Header file required to build programs using gplflash library
48 Summary(pl.UTF-8):      Pliki nagłówkowe wymagane przez programy używające gplflash
49 Group:          X11/Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51 Obsoletes:      flash-devel
52 Obsoletes:      gplflash2-devel
53
54 %description devel
55 Header files required to build programs using gplflash library.
56
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe niezbędne do kompilacji programów korzystających z
59 biblioteki gplflash.
60
61 %package static
62 Summary:        Static gplflash library
63 Summary(pl.UTF-8):      Statyczna biblioteka gplflash
64 Group:          X11/Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66 Obsoletes:      flash-static
67 Obsoletes:      gplflash2-static
68
69 %description static
70 Static gplflash library.
71
72 %description static -l pl.UTF-8
73 Statyczna biblioteka gplflash.
74
75 %package -n browser-plugin-%{name}
76 Summary:        Browser plugin for Flash rendering
77 Summary(pl.UTF-8):      Wtyczka przeglądarki wyświetlająca animacje Flash
78 Group:          X11/Libraries
79 Requires:       %{name} = %{version}-%{release}
80 Requires:       browser-plugins(%{_target_base_arch})
81 Requires:       browser-plugins >= 2.0
82 Provides:       browser(flash)
83 # Provides for migrate purposes (greedy poldek upgrade)
84 Provides:       mozilla-plugin-gplflash
85 Obsoletes:      browser-plugin-gplflash2
86 Obsoletes:      mozilla-plugin-flash
87 Obsoletes:      mozilla-plugin-gplflash
88 Obsoletes:      mozilla-plugin-gplflash2
89
90 %description -n browser-plugin-%{name}
91 Browser plugin for rendering of Flash animations based on gplflash
92 library.
93
94 %description -n browser-plugin-%{name} -l pl.UTF-8
95 Wtyczka przeglądarki wyświetlająca animacje Flash oparta na bibliotece
96 gplflash.
97
98 %prep
99 %setup -q
100 %patch0 -p1
101 %patch1 -p1
102
103 %build
104 %{__libtoolize}
105 %{__aclocal}
106 %{__autoheader}
107 %{__autoconf}
108 %{__automake}
109 %configure \
110         --with-plugin-dir=%{_browserpluginsdir} \
111         --enable-shared \
112         --enable-static
113 %{__make}
114
115 %install
116 rm -rf $RPM_BUILD_ROOT
117
118 %{__make} install \
119         DESTDIR=$RPM_BUILD_ROOT
120
121 %{__rm} $RPM_BUILD_ROOT%{_libdir}/browser-plugins/libnpflash.{la,a}
122
123 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
124 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/swfplayer.desktop
125 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/swfplayer.png
126
127 %clean
128 rm -rf $RPM_BUILD_ROOT
129
130 %post   -p /sbin/ldconfig
131 %postun -p /sbin/ldconfig
132
133 %post -n browser-plugin-%{name}
134 %update_browser_plugins
135
136 %postun -n browser-plugin-%{name}
137 if [ "$1" = 0 ]; then
138         %update_browser_plugins
139 fi
140
141 %files
142 %defattr(644,root,root,755)
143 %doc AUTHORS NEWS README TODO
144 %attr(755,root,root) %{_bindir}/swfplayer
145 %attr(755,root,root) %{_libdir}/libflash.so.*.*.*
146 %attr(755,root,root) %ghost %{_libdir}/libflash.so.0
147 %{_desktopdir}/swfplayer.desktop
148 %{_pixmapsdir}/swfplayer.png
149
150 %files devel
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_libdir}/libflash.so
153 %{_libdir}/libflash.la
154 %{_includedir}/flash.h
155
156 %files static
157 %defattr(644,root,root,755)
158 %{_libdir}/libflash.a
159
160 %files -n browser-plugin-%{name}
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_browserpluginsdir}/libnpflash.so
This page took 0.19383 seconds and 3 git commands to generate.