[color=#FF0000:20rzogcq]deepin-media-player[/color:20rzogcq]
依赖于mplayer2
从命令行启动报错
Gtk-Message: Failed to load module "pk-gtk-module"
path_list_show: 'OpenDialog' object has no attribute 'scrol_btn'
path_list_show:'NoneType' object has no attribute 'load_icon'
path_list_show:'NoneType' object has no attribute 'load_icon'
打开文件的时候似乎是自己的file open dialog而没有用gnome本身的file open dialog(deepin-music-player是用的gnome本身的file open dialog),deepin-media-player的file-open-dialog好像没给文件以及文件夹排序,找文件不大方便
截图
deepin-media-player-open-2012-06-06-fedora17.png
dpkg-deb --info 'deepin-music-player_1+git20130723135520~be9da0cfa6_all.deb' control 2>/dev/null
Package: deepin-music-player
Version: 1+git20130723135520~be9da0cfa6
Architecture: all
Maintainer: Li Longyu
Installed-Size: 34121 Depends: deepin-ui (>= 1+git201209101328), python-mutagen (>= 1.8), python-gst0.10, python-pyquery, gstreamer0.10-plugins-bad-multiverse, python-cddb, gstreamer0.10-plugins-ugly, gstreamer0.10-ffmpeg, python-pycurl, python-chardet, python-keybinder
Suggests: python-mmkeys
Section: sound
Priority: extra
Homepage: http://www.linuxdeepin.com/
Description: Awesome music player with brilliant and tweakful UI
Deepin-UI based, gstreamer front-end, with features likes search music by
pinyin,quanpin, colorful lyrics supports, and more powerfull functions you
will found.
.
Just enjoy it! have fun!
dpkg-deb --info 'deepin-music-player_1+git20130723135520~be9da0cfa6_all.deb' control 2>/dev/null
Package: deepin-music-player
Version: 1+git20130723135520~be9da0cfa6
Architecture: all
Maintainer: Li Longyu
Installed-Size: 34121 Depends: deepin-ui (>= 1+git201209101328), python-mutagen (>= 1.8), python-gst0.10, python-pyquery, gstreamer0.10-plugins-bad-multiverse, python-cddb, gstreamer0.10-plugins-ugly, gstreamer0.10-ffmpeg, python-pycurl, python-chardet, python-keybinder
Suggests: python-mmkeys
Section: sound
Priority: extra
Homepage: http://www.linuxdeepin.com/
Description: Awesome music player with brilliant and tweakful UI
Deepin-UI based, gstreamer front-end, with features likes search music by
pinyin,quanpin, colorful lyrics supports, and more powerfull functions you
will found.
.
Just enjoy it! have fun!
if which pycompile >/dev/null 2>&1;then
pycompile -p deepin-ui
fi
# db_input high deepin-ui/release-note || true
# db_go
%preun
#!/bin/sh
set -e
# Automatically added by dh_python2:
if which pyclean >/dev/null 2>&1; then
pyclean -p deepin-ui
else
dpkg -L deepin-ui | grep \.py$ | while read file
do
rm -f "${file}"[co] >/dev/null
done
fi
# End automatically added section
%description
UI toolkit for Linux Deepin,Awesome and Beautiful UI libs with LinuxDeepin
(Converted from a deb package by alien version 8.88.)
%changelog
* Sat Aug 18 2012 a14331990 - 1.0.1-1
- Initial version build for fedora 17
原文件
Buildroot: /home/cc/下载/deepin-music-player-1+git20130723135520~be9da0cfa6
Name: deepin-music-player
Version: 1+git20130723135520~be9da0cfa6
Release: 2
Summary: Awesome music player with brilliant and tweakful UI
License: see /usr/share/doc/deepin-music-player/copyright
Distribution: Debian
Group: Converted/sound
cd /usr/share/deepin-music-player/tools
python2 generate_mo.py
%preun
#!/bin/sh
set -e
# Automatically added by dh_python2:
if which pyclean >/dev/null 2>&1; then
pyclean -p deepin-music-player
else
dpkg -L deepin-music-player | grep \.py$ | while read file
do
rm -f "${file}"[co] >/dev/null
done
fi
# End automatically added section
%postun
#!/bin/sh -e
case "$1" in
remove|purge)
rm /usr/share/deepin-music-player -rf
;;
esac
exit 0
%description
Deepin-UI based, gstreamer front-end, with features likes search music by
pinyin,quanpin, colorful lyrics supports, and more powerfull functions you
will found.
Just enjoy it! have fun!
(Converted from a deb package by alien version 8.88.)
修改后
Name: deepin-music-player
Version: 1.0.1
Release: 1%{?dist}
Summary: Awesome music player with brilliant and tweakful UI
License: GPL2+GPL3
Group: Applications/Multimedia
URL: http://test.packages.linuxdeepin.com/de ... ic-player/
Source: http://test.packages.linuxdeepin.com/de ... 003.tar.gz
Patch: fedora-fix.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: gstreamer-python,scipy,python-mutagen,python-pyquery,deepin-ui
%description
Deepin-UI based, gstreamer front-end, with features likes search music by
pinyin,quanpin, colorful lyrics supports, and more powerfull functions you
will found.
(简要过程
先把
pygtk2打上deepin提供的补丁10_fix_create_layout_unref.patch然后rpmbuild -bs *.spec;rpmbuild --rebuild *.src.rpm,yum reinstall *.rpm。
sudo alien --to-rpm --veryverbose --scripts -g *.deb 1>1.txt生成spec文件和rpm build root,再根据fedora的目录、命令等修改spec,注意此时的记录文件1.txt指明了deb包的Depends,我把每个deb依赖翻译成了fedora的对应包,还加了%post和%postun部分,最后rpmbuild。
deepin-music-player和deepin-media-player都是noarch的用alien转不可能出现二进制不兼容或库不匹配的问题。
整个deepin-ui只有dtk_cairo_blur.so是native code,我alien了deepin-ui_1+git20120605-3_amd64.deb并安装生成的rpm,又把deepin-ui_1+git20120605.orig.tar.gz解压运行python setup.py build把编译生成的dtk_cairo_blur.so覆盖到/usr/lib/python2.7/dist-packages/dtk_cairo_blur.so和/usr/lib/python2.7/site-packages/dtk_cairo_blur.so
总之,我在fedora17上运行deepin-music-player和deepin-media-player应该是没有区别的
)
[color=#FF0000:20rzogcq]deepin-music-player[/color:20rzogcq]
/usr/share/deepin-music-player/src/widget/lyrics_module.py
第584行左右把
去掉
还有
/usr/share/applications/deepin-music-player.desktop
在末尾加上
有个小问题
~/.config/deepin-music-player/config
里面第3行
play = false
似乎是指程序启动不自动播放
我把它改成true 下次启动时竟然又自动变为false 于是也没有自动播放
从命令行启动deepin-music-player
报错Gtk-Message: Failed to load module "pk-gtk-module"
不过这个错误是注定了的
因为fedora17里面彻底抛弃了包PackageKit-gtk-module
在fedora16的时候PackageKit-gtk3-module是PackageKit的gtk3的module
PackageKit-gtk-module是PackageKit的gtk2的module
如今fedora17只有PackageKit-gtk3-module是PackageKit的gtk3的module,没有提供兼容的PackageKit的gtk2的module
抛弃PackageKit的gtk2的module似乎是upstream(PackageKit 0.7.4)的决定,但愿deepin-music-player不会过于依赖PackageKit的gtk2的module。
运行效果
deep-music-player-2012-06-06-fedora17.png
[color=#FF0000:20rzogcq]deepin-media-player[/color:20rzogcq]
依赖于mplayer2
从命令行启动报错
Gtk-Message: Failed to load module "pk-gtk-module"
path_list_show: 'OpenDialog' object has no attribute 'scrol_btn'
path_list_show:'NoneType' object has no attribute 'load_icon'
path_list_show:'NoneType' object has no attribute 'load_icon'
打开文件的时候似乎是自己的file open dialog而没有用gnome本身的file open dialog(deepin-music-player是用的gnome本身的file open dialog),deepin-media-player的file-open-dialog好像没给文件以及文件夹排序,找文件不大方便
截图
deepin-media-player-open-2012-06-06-fedora17.png
~/.config/deepin-media-player目录下的配置文件都没有配置选项
运行效果
deep-media-player-2012-06-06-fedora17.png
[color=#FF0000:20rzogcq]感谢各位开发人员的辛勤劳动![/color:20rzogcq]
p.s.deepin的很多项目好像没有托管在github了,deepin-image-viewer是做什么的?