[6725] | 1 | Name: dragon |
---|
| 2 | Summary: KDE simple video player |
---|
| 3 | Summary(ja): KDE 向けのシンプルなビデオプレーヤー |
---|
[6797] | 4 | Version: 4.9.1 |
---|
[6725] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | |
---|
| 7 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
| 8 | |
---|
| 9 | License: GPLv2+ |
---|
| 10 | Group: Applications/Multimedia |
---|
| 11 | URL: http://www.kde.org/ |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | |
---|
| 15 | BuildRequires: kdelibs4-devel |
---|
| 16 | BuildRequires: soprano-devel |
---|
| 17 | |
---|
| 18 | Requires: kdelibs4 >= %{version} |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | Dragon Player is a very simple Phonon-based media player. It was originally |
---|
| 22 | developed by Max Howell and called Codeine. I ported it to KDE 4.0 and on |
---|
| 23 | Max's suggestion renamed it to Video Player (probably, I might still |
---|
| 24 | rename it.) |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | %prep |
---|
| 28 | %setup -q |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | %build |
---|
| 32 | mkdir -p %{_target_platform} |
---|
| 33 | pushd %{_target_platform} |
---|
| 34 | %cmake \ |
---|
| 35 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 36 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 37 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 38 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 39 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 40 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 41 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 42 | .. |
---|
| 43 | popd |
---|
| 44 | |
---|
| 45 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | rm -rf $RPM_BUILD_ROOT |
---|
| 49 | make install/fast DESTDIR=%{buildroot} -C %{_target_platform} |
---|
| 50 | |
---|
| 51 | %clean |
---|
| 52 | rm -rf $RPM_BUILD_ROOT |
---|
| 53 | |
---|
| 54 | %post |
---|
| 55 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 56 | touch --no-create %{_datadir}/icons/oxygen &> /dev/null ||: |
---|
| 57 | |
---|
| 58 | %posttrans |
---|
| 59 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 60 | gtk-update-icon-cache %{_datadir}/icons/oxygen &> /dev/null ||: |
---|
| 61 | update-desktop-database -q &> /dev/null ||: |
---|
| 62 | |
---|
| 63 | %postun |
---|
| 64 | if [ $1 -eq 0 ] ; then |
---|
| 65 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 66 | touch --no-create %{_datadir}/icons/oxygen &> /dev/null ||: |
---|
| 67 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null ||: |
---|
| 68 | gtk-update-icon-cache %{_datadir}/icons/oxygen &> /dev/null ||: |
---|
| 69 | update-desktop-database -q &> /dev/null ||: |
---|
| 70 | fi |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %files |
---|
| 74 | %defattr(-,root,root) |
---|
| 75 | %{_bindir}/dragon |
---|
| 76 | %{_libdir}/kde4/dragonpart.so |
---|
| 77 | %{_datadir}/applications/kde4/dragonplayer.desktop |
---|
| 78 | %{_datadir}/config/dragonplayerrc |
---|
| 79 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 80 | %{_datadir}/icons/oxygen/*/*/* |
---|
| 81 | %{_datadir}/kde4/apps/dragonplayer |
---|
| 82 | %{_datadir}/kde4/apps/solid/actions/dragonplayer-opendvd.desktop |
---|
| 83 | %{_datadir}/kde4/services/* |
---|
| 84 | %{_docdir}/HTML/en/dragonplayer/ |
---|
| 85 | %{_mandir}/man1/%{name}.1.gz |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %changelog |
---|
[6797] | 89 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
| 90 | - new upstream release |
---|
| 91 | |
---|
[6725] | 92 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
| 93 | - initial build |
---|