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