|
@@ -1,10 +1,11 @@
|
|
|
# by default don't build the browser plugin
|
|
|
# use bcond_without to change the default
|
|
|
#%bcond_with mozilla
|
|
|
+%define PAROLE_BIN %{_libexecdir}/%{name}
|
|
|
|
|
|
Name: parole
|
|
|
Version: 0.2.0.6
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
Summary: Media player for the Xfce desktop
|
|
|
Summary(ja): Xfce デスクトップのメディアプレーヤー
|
|
|
|
|
@@ -12,6 +13,7 @@ Group: Applications/Multimedia
|
|
|
License: GPLv2+
|
|
|
URL: http://goodies.xfce.org/projects/applications/parole
|
|
|
Source0: http://archive.xfce.org/src/apps/parole/0.2/%{name}-%{version}.tar.bz2
|
|
|
+Source10: parole.sh
|
|
|
Patch1: parole-0.2.0.6-dsofix.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
@@ -37,6 +39,8 @@ BuildRequires: intltool
|
|
|
BuildRequires: gtk-doc
|
|
|
Requires: gstreamer-plugins-good
|
|
|
|
|
|
+Obsoletes: %{name}-mozplugin
|
|
|
+
|
|
|
%description
|
|
|
Parole is a modern simple media player based on the GStreamer framework and
|
|
|
written to fit well in the Xfce desktop. Parole features playback of local
|
|
@@ -108,6 +112,12 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
|
|
|
|
+## wrapper install
|
|
|
+%__mkdir_p $RPM_BUILD_ROOT%{_libexecdir}
|
|
|
+%__mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{PAROLE_BIN}
|
|
|
+%{__install} -m 755 %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/%{name}
|
|
|
+
|
|
|
+
|
|
|
%find_lang %{name}
|
|
|
|
|
|
desktop-file-install \
|
|
@@ -140,6 +150,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
%files -f %{name}.lang
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc AUTHORS COPYING README TODO THANKS
|
|
|
+%{PAROLE_BIN}
|
|
|
%{_bindir}/%{name}
|
|
|
%dir %{_libdir}/%{name}-0/
|
|
|
%{_libdir}/%{name}-0/*.so
|
|
@@ -162,6 +173,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
#%endif
|
|
|
|
|
|
%changelog
|
|
|
+* Sat May 26 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.0.6-2
|
|
|
+- added Obsoletes tag: %%{name}-mozplugin
|
|
|
+- added wrapper script to detect nonfree package installed
|
|
|
+
|
|
|
* Fri Sep 30 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.0.6-1
|
|
|
- new upstream release
|
|
|
- obsoleted -mozplugin package
|