1 | # by default don't build the browser plugin |
---|
2 | # use bcond_without to change the default |
---|
3 | #%bcond_with mozilla |
---|
4 | %define PAROLE_BIN %{_libexecdir}/%{name} |
---|
5 | |
---|
6 | Name: parole |
---|
7 | Version: 0.3.0.3 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | Summary: Media player for the Xfce desktop |
---|
10 | Summary(ja): Xfce デスクトップのメディアプレーヤー |
---|
11 | |
---|
12 | Group: Applications/Multimedia |
---|
13 | License: GPLv2+ |
---|
14 | URL: http://goodies.xfce.org/projects/applications/parole |
---|
15 | Source0: http://archive.xfce.org/src/apps/parole/0.3/%{name}-%{version}.tar.bz2 |
---|
16 | Source10: parole.sh |
---|
17 | #Patch1: parole-0.2.0.6-dsofix.patch |
---|
18 | |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | |
---|
21 | BuildRequires: desktop-file-utils |
---|
22 | BuildRequires: gettext |
---|
23 | BuildRequires: gtk-doc |
---|
24 | BuildRequires: gtk2-devel >= 2.20.0 |
---|
25 | BuildRequires: glib2-devel >= 2.32.0 |
---|
26 | BuildRequires: gstreamer-devel |
---|
27 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.24 |
---|
28 | BuildRequires: dbus-devel >= 0.60 |
---|
29 | BuildRequires: dbus-glib-devel >= 0.70 |
---|
30 | BuildRequires: intltool |
---|
31 | BuildRequires: libnotify-devel >= 0.4.1 |
---|
32 | BuildRequires: libxfcegui4-devel >= 4.8.0 |
---|
33 | BuildRequires: libxfce4util-devel >= 4.8.0 |
---|
34 | BuildRequires: libxfce4ui-devel >= 4.8.0 |
---|
35 | BuildRequires: xfce4-dev-tools |
---|
36 | BuildRequires: taglib-devel >= 1.4 |
---|
37 | |
---|
38 | #%if %{with mozilla} |
---|
39 | #BuildRequires: xulrunner-devel |
---|
40 | #%endif |
---|
41 | Requires: gstreamer-plugins-good |
---|
42 | |
---|
43 | Obsoletes: %{name}-mozplugin |
---|
44 | |
---|
45 | %description |
---|
46 | Parole is a modern simple media player based on the GStreamer framework and |
---|
47 | written to fit well in the Xfce desktop. Parole features playback of local |
---|
48 | media files, DVD/CD and live streams. Parole is extensible via plugins. |
---|
49 | |
---|
50 | The project still in its early developments stage, but already contains the |
---|
51 | following features: |
---|
52 | * Audio playback |
---|
53 | * Video playback with optional subtitle |
---|
54 | * Playback of live sources |
---|
55 | |
---|
56 | %description -l ja |
---|
57 | Parole は GStreamer フレームワークに基づき Xfce デスクトップに |
---|
58 | 馴染むよう書かれたモダンでシンプルなメディアプレーヤーです。 |
---|
59 | Parole はローカルメディアファイル、DVD/CD、ライブストリームの再生を |
---|
60 | 特色とします。 |
---|
61 | Parole はプラグインを介して拡張が可能です。 |
---|
62 | |
---|
63 | このプロジェクトはまだ開発の初期段階ですが、 |
---|
64 | 既に以下の機能がふくまれています。 |
---|
65 | * オーディオの再生 |
---|
66 | * 任意のサブタイトルがあるビデオの再生 |
---|
67 | * ライブストリームの再生 |
---|
68 | |
---|
69 | |
---|
70 | %package devel |
---|
71 | Summary: Development files for %{name} |
---|
72 | Summary(ja): %{name} の開発ファイル |
---|
73 | Group: Development/Libraries |
---|
74 | Requires: %{name} = %{version}-%{release} |
---|
75 | Requires: gtk-doc |
---|
76 | |
---|
77 | %description devel |
---|
78 | The %{name}-devel package contains header files for developing plugins for |
---|
79 | %{name}. |
---|
80 | |
---|
81 | %description devel -l ja |
---|
82 | %{name}-devel パッケージ は %{name} のプラグインを開発するための |
---|
83 | ヘッダファイルを含みます。 |
---|
84 | |
---|
85 | #%if %{with mozilla} |
---|
86 | #%package mozplugin |
---|
87 | #Summary: Browser plugin for %{name} |
---|
88 | #Group: Application/Internet |
---|
89 | #Requires: %{name} = %{version}-%{release} |
---|
90 | |
---|
91 | #%description mozplugin |
---|
92 | #Parole is a modern simple media player based on the GStreamer framework and |
---|
93 | #written to fit well in the Xfce desktop. This plugin allows it to be embedded |
---|
94 | #in a web browser. |
---|
95 | #%endif |
---|
96 | |
---|
97 | %prep |
---|
98 | %setup -q |
---|
99 | #%patch1 -p1 |
---|
100 | |
---|
101 | %build |
---|
102 | %configure --disable-static --enable-gtk-doc |
---|
103 | #%if %{with mozilla} |
---|
104 | # --enable-browser-plugin |
---|
105 | #%else |
---|
106 | # --disable-browser-plugin |
---|
107 | #%endif |
---|
108 | make %{?_smp_mflags} V=1 |
---|
109 | |
---|
110 | |
---|
111 | %install |
---|
112 | rm -rf $RPM_BUILD_ROOT |
---|
113 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
114 | find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' |
---|
115 | |
---|
116 | ## wrapper install |
---|
117 | %__mkdir_p $RPM_BUILD_ROOT%{_libexecdir} |
---|
118 | %__mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{PAROLE_BIN} |
---|
119 | %{__install} -m 755 %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/%{name} |
---|
120 | |
---|
121 | |
---|
122 | %find_lang %{name} |
---|
123 | |
---|
124 | desktop-file-install \ |
---|
125 | --delete-original \ |
---|
126 | --dir=%{buildroot}%{_datadir}/applications \ |
---|
127 | %{buildroot}/%{_datadir}/applications/%{name}.desktop |
---|
128 | |
---|
129 | |
---|
130 | %clean |
---|
131 | rm -rf $RPM_BUILD_ROOT |
---|
132 | |
---|
133 | |
---|
134 | %post |
---|
135 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
136 | update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
137 | |
---|
138 | |
---|
139 | %postun |
---|
140 | if [ $1 -eq 0 ] ; then |
---|
141 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
142 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
143 | fi |
---|
144 | update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
145 | |
---|
146 | |
---|
147 | %posttrans |
---|
148 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
149 | |
---|
150 | |
---|
151 | %files -f %{name}.lang |
---|
152 | %defattr(-,root,root,-) |
---|
153 | %doc AUTHORS COPYING README TODO THANKS |
---|
154 | %{PAROLE_BIN} |
---|
155 | %{_bindir}/%{name} |
---|
156 | %dir %{_libdir}/%{name}-0/ |
---|
157 | %{_libdir}/%{name}-0/*.so |
---|
158 | %{_datadir}/applications/%{name}.desktop |
---|
159 | %{_datadir}/icons/hicolor/* |
---|
160 | %{_datadir}/%{name}/ |
---|
161 | |
---|
162 | |
---|
163 | %files devel |
---|
164 | %defattr(-,root,root,-) |
---|
165 | %doc %{_datadir}/gtk-doc/html/Parole-Plugins/ |
---|
166 | %{_includedir}/%{name}/ |
---|
167 | |
---|
168 | |
---|
169 | #%if %{with mozilla} |
---|
170 | #%files mozplugin |
---|
171 | #%defattr(-,root,root,-) |
---|
172 | #%{_libexecdir}/%{name}-media-plugin |
---|
173 | #%{_libdir}/mozilla/plugins/%{name}-player.so |
---|
174 | #%endif |
---|
175 | |
---|
176 | %changelog |
---|
177 | * Fri Aug 24 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.3.0.3-1 |
---|
178 | - new upstream release |
---|
179 | - deleted Patch1 |
---|
180 | - added BuildRequires: xfce4-dev-tools, libxfce4ui-devel >= 4.8.0 |
---|
181 | - changed BuildRequires |
---|
182 | - gtk2-devel >= 2.16.0 to 2.20.0 |
---|
183 | - glib2-devel >= 2.16.0 to 2.32.0 |
---|
184 | - gstreamer-plugins-base-devel >= 0.10.11 to 0.10.24 |
---|
185 | - libxfcegui4-devel >= 4.6.0 to 4.8.0 |
---|
186 | - libxfce4util-devel >= 4.6.0 to 4.8.0 |
---|
187 | |
---|
188 | * Fri Jun 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.0.6-3 |
---|
189 | - rebuilt with new libxfce4util |
---|
190 | |
---|
191 | * Sat May 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.0.6-2 |
---|
192 | - added Obsoletes tag: %%{name}-mozplugin |
---|
193 | - added wrapper script to detect nonfree package installed |
---|
194 | |
---|
195 | * Fri Sep 30 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.0.6-1 |
---|
196 | - new upstream release |
---|
197 | - obsoleted -mozplugin package |
---|
198 | |
---|
199 | * Tue Jan 26 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.0.2-1 |
---|
200 | - new upstream release |
---|
201 | |
---|
202 | * Sun Jan 17 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.0.1-2 |
---|
203 | - new upstream release |
---|
204 | |
---|
205 | * Tue Jan 5 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.0-1 |
---|
206 | - new upstream release |
---|
207 | - added BuildRequires: glib2-devel >= 2.16.0, libxfce4util-devel >= 4.6.0 |
---|
208 | |
---|
209 | * Wed Dec 23 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.99-1 |
---|
210 | - new upstream release |
---|
211 | - added BuildRequires: gstreamer-devel |
---|
212 | - splitted mozplugin package |
---|
213 | |
---|
214 | * Sun Nov 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.91-1 |
---|
215 | - new upstream release |
---|
216 | - dropt all pathces |
---|
217 | |
---|
218 | * Thu Oct 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.90-1 |
---|
219 | - initial build for VineSeed |
---|
220 | |
---|
221 | * Thu Oct 08 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.90-2 |
---|
222 | - BuildRequire taglib-devel and fix libnotify requirement |
---|
223 | |
---|
224 | * Wed Oct 07 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.90-1 |
---|
225 | - Update to 0.1.90 |
---|
226 | - Loads of additional translations |
---|
227 | |
---|
228 | * Fri Sep 18 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.1-0.1 |
---|
229 | - Initial package |
---|