[1306] | 1 | %define with_my_japo 1 |
---|
| 2 | |
---|
| 3 | %define _kde4_bindir %{_bindir} |
---|
| 4 | %define _kde4_iconsdir %{_datadir}/icons |
---|
| 5 | %define _kde4_datadir %{_datadir} |
---|
| 6 | %define _kde4_docdir %{_datadir}/doc |
---|
| 7 | %define _kde4_appsdir %{_datadir}/kde4/apps |
---|
| 8 | |
---|
| 9 | %define _qt4_qmake %{_libdir}/qt4/bin/qmake |
---|
| 10 | |
---|
| 11 | Name: k9copy |
---|
| 12 | Version: 2.3.5 |
---|
| 13 | Release: 1%{?_dist_release} |
---|
| 14 | Summary: Video DVD backup and creation program |
---|
| 15 | Summary(ja): ビデオDVDバックアップと作成プログラム |
---|
| 16 | Group: Applications/Multimedia |
---|
| 17 | License: GPLv2+ |
---|
| 18 | URL: http://k9copy.sourceforge.net/ |
---|
| 19 | Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.gz |
---|
| 20 | |
---|
| 21 | ## vine |
---|
| 22 | %if %{with_my_japo} |
---|
| 23 | Source100: k9copy-2.3.5-ja.po |
---|
| 24 | %endif |
---|
| 25 | |
---|
| 26 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 27 | |
---|
| 28 | # upstreamable patches |
---|
| 29 | Patch51: k9copy-2.3.5-dso.patch |
---|
| 30 | Patch52: k9copy-2.3.5-mimetype.patch |
---|
| 31 | |
---|
| 32 | BuildRequires: qt4-devel |
---|
| 33 | BuildRequires: cmake |
---|
| 34 | BuildRequires: desktop-file-utils |
---|
| 35 | ##BuildRequires: ffmpeg-devel |
---|
| 36 | BuildRequires: gettext |
---|
| 37 | BuildRequires: hal-devel |
---|
| 38 | BuildRequires: kdelibs4-devel >= 4.4.3 |
---|
| 39 | BuildRequires: libdvdread-devel |
---|
| 40 | ##BuildRequires: libmpeg2-devel |
---|
| 41 | BuildRequires: pkgconfig |
---|
| 42 | BuildRequires: xine-lib-devel |
---|
| 43 | |
---|
| 44 | Requires: dvd+rw-tools |
---|
| 45 | Requires: dvdauthor |
---|
| 46 | Requires: kdebase-runtime >= 4.4.3 |
---|
| 47 | |
---|
| 48 | ### Optional, not *strictly* required: |
---|
| 49 | ##Requires(hint): mencoder |
---|
| 50 | ##Requires(hint): mplayer |
---|
| 51 | |
---|
| 52 | # Vine |
---|
| 53 | # BuildRequires: self-build-ffmpeg |
---|
| 54 | # BuildRequires: self-build-libmpeg2 |
---|
| 55 | # Requires: self-build-mplayer |
---|
| 56 | |
---|
| 57 | Obsoletes: self-build-k9copy < 2.0.0 |
---|
| 58 | Obsoletes: k9copy < 2.0.0 |
---|
| 59 | |
---|
| 60 | %description |
---|
| 61 | Video DVD backup and creation program, features include: |
---|
| 62 | * Video stream compression for fit onto a single layer 4.7GB DVD |
---|
| 63 | * DVD Burning |
---|
| 64 | * Creation of ISO images |
---|
| 65 | * Audio tracks and subtitle selection |
---|
| 66 | * Video title preview |
---|
| 67 | * Preservation of the original menus |
---|
| 68 | |
---|
| 69 | %description -l ja |
---|
| 70 | ビデオDVDバックアップと作成プログラム。 |
---|
| 71 | 特徴は: |
---|
| 72 | * 片面一層4.7GB DVDへ収めるためのビデオストリーム圧縮 |
---|
| 73 | * DVD書き込み |
---|
| 74 | * ISOイメージの作成 |
---|
| 75 | * オーディオトラックとサブタイトル選択 |
---|
| 76 | * ビデオタイトルプレビュー |
---|
| 77 | * オリジナルのメニューの保存 |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %prep |
---|
| 81 | %setup -q -n %{name}-%{version}-Source |
---|
| 82 | |
---|
| 83 | %patch51 -p1 -b .dso |
---|
| 84 | %patch52 -p1 -b .mimetype |
---|
| 85 | |
---|
| 86 | %if %{with_my_japo} |
---|
| 87 | ## vine |
---|
| 88 | %__install -m644 %{SOURCE100} po/ja.po |
---|
| 89 | %endif |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %build |
---|
| 93 | %__mkdir -p %{_target_platform} |
---|
| 94 | pushd %{_target_platform} |
---|
| 95 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
| 96 | %__cmake \ |
---|
| 97 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 98 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
---|
| 99 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 100 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 101 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 102 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 103 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 104 | -DQT_QMAKE_EXECUTABLE=%_qt4_qmake \ |
---|
| 105 | -DAVCODEC_INCLUDE_DIR=$(pkg-config libavcodec --variable=includedir) \ |
---|
| 106 | -DAVFORMAT_INCLUDE_DIR=$(pkg-config libavformat --variable=includedir) \ |
---|
| 107 | -DFFMPEGSCALE_INCLUDE_DIR=$(pkg-config libswscale --variable=includedir) \ |
---|
| 108 | .. |
---|
| 109 | popd |
---|
| 110 | |
---|
| 111 | %__make %{?_smp_mflags} -C %{_target_platform} |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | %install |
---|
| 115 | %__rm -rf %{buildroot} |
---|
| 116 | |
---|
| 117 | %__make install/fast DESTDIR=%{buildroot} -C %{_target_platform} |
---|
| 118 | |
---|
| 119 | %find_lang %{name} |
---|
| 120 | |
---|
| 121 | |
---|
| 122 | %check |
---|
| 123 | desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/k9copy.desktop |
---|
| 124 | desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/k9copy_assistant.desktop |
---|
| 125 | |
---|
| 126 | |
---|
| 127 | %clean |
---|
| 128 | %__rm -rf %{buildroot} |
---|
| 129 | |
---|
| 130 | |
---|
| 131 | %post |
---|
| 132 | touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: |
---|
| 133 | |
---|
| 134 | %posttrans |
---|
| 135 | gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: |
---|
| 136 | |
---|
| 137 | %postun |
---|
| 138 | if [ $1 -eq 0 ] ; then |
---|
| 139 | touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||: |
---|
| 140 | gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||: |
---|
| 141 | fi |
---|
| 142 | |
---|
| 143 | |
---|
| 144 | %files -f %{name}.lang |
---|
| 145 | %defattr(-,root,root,-) |
---|
| 146 | %doc COPYING |
---|
| 147 | %{_kde4_bindir}/k9copy |
---|
| 148 | %{_kde4_bindir}/k9play |
---|
| 149 | %{_kde4_bindir}/k9xineplayer |
---|
| 150 | %{_kde4_appsdir}/k9copy/ |
---|
| 151 | %{_kde4_appsdir}/solid/actions/*.desktop |
---|
| 152 | %{_kde4_datadir}/applications/kde4/k9copy.desktop |
---|
| 153 | %{_kde4_datadir}/applications/kde4/k9copy_assistant.desktop |
---|
| 154 | %{_kde4_docdir}/HTML/en/k9copy/ |
---|
| 155 | %{_kde4_iconsdir}/hicolor/*/*/* |
---|
| 156 | |
---|
| 157 | |
---|
| 158 | %changelog |
---|
| 159 | * Sat Jul 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.5-1 |
---|
| 160 | - new upstream release |
---|
| 161 | - added Requires: kdebase-runtime |
---|
| 162 | - added k9copy-2.3.5-ja.po |
---|
| 163 | |
---|
| 164 | * Mon Apr 19 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2.3.4-1 |
---|
| 165 | - built based on RPM Fusion development |
---|
| 166 | |
---|
| 167 | * Wed Dec 23 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.4-1 |
---|
| 168 | - k9copy-2.3.4 |
---|
| 169 | |
---|
| 170 | * Sat Aug 29 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.3-1 |
---|
| 171 | - k9copy-2.3.3 |
---|
| 172 | |
---|
| 173 | * Wed May 27 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.2-1 |
---|
| 174 | - k9copy-2.3.2 |
---|
| 175 | |
---|
| 176 | * Mon Apr 06 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.1-1 |
---|
| 177 | - k9copy-2.3.1 |
---|
| 178 | - optimize scriptlets |
---|
| 179 | |
---|
| 180 | * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 2.3.0-2 |
---|
| 181 | - rebuild for new F11 features |
---|
| 182 | |
---|
| 183 | * Thu Mar 12 2009 Rex Dieter <rdieter@fedoraproject.org> 2.3.0-1 |
---|
| 184 | - k9copy-2.3.0 |
---|
| 185 | |
---|
| 186 | * Fri Feb 20 2009 Rex Dieter <rdieter@fedoraproject.org> 2.2.0-1 |
---|
| 187 | - k9copy-2.2.0 |
---|
| 188 | |
---|
| 189 | * Thu Oct 30 2008 Rex Dieter <rdieter@fedoraproject.org> 2.1.0-2 |
---|
| 190 | - ExcludeArch: ppc ppc64 (still fails) |
---|
| 191 | |
---|
| 192 | * Thu Oct 30 2008 Rex Dieter <rdieter@fedoraproject.org> 2.1.0-1 |
---|
| 193 | - k9copy-2.1.0 |
---|
| 194 | |
---|
| 195 | * Fri Sep 19 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-4 |
---|
| 196 | - drop Requires: libdvdcss |
---|
| 197 | |
---|
| 198 | * Thu Sep 18 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-3 |
---|
| 199 | - use pkg-config to query ffmpeg includedir(s) |
---|
| 200 | |
---|
| 201 | * Tue Sep 16 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-2 |
---|
| 202 | - ffmpeg patch |
---|
| 203 | |
---|
| 204 | * Mon Jun 16 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.2-1 |
---|
| 205 | - k9copy-2.0.2 |
---|
| 206 | |
---|
| 207 | * Sat Jun 14 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.1-1 |
---|
| 208 | - k9copy-2.0.1 |
---|
| 209 | |
---|
| 210 | * Fri Jun 06 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-5 |
---|
| 211 | - gcc43 patch (forward port malloc patch from fedoraforum) |
---|
| 212 | |
---|
| 213 | * Fri Jun 06 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-4 |
---|
| 214 | - License: GPLv2+ , %%doc COPYING |
---|
| 215 | - minor libdvdread dl'ing patch |
---|
| 216 | |
---|
| 217 | * Tue Jun 03 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-3 |
---|
| 218 | - ExcludeArch: ppc ppc64 |
---|
| 219 | |
---|
| 220 | * Tue Jun 03 2008 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-2 |
---|
| 221 | - use %%find_lang |
---|
| 222 | - use %%_kde4_* macros |
---|
| 223 | |
---|
| 224 | * Mon Jun 02 2008 Leigh Scott <leigh123linux@googlemail.com> 2.0.0-1 |
---|
| 225 | - bump to 2.0.0 release |
---|
| 226 | |
---|
| 227 | * Sun Jan 06 2008 Ian Chapman <packages[AT]amiga-hardware.com> 1.2.2-1 |
---|
| 228 | - Upgrade to 1.2.2 |
---|
| 229 | - Added patch to fix buffer overflows (Thanks to Gustavo Maciel Dias Vieira) |
---|
| 230 | |
---|
| 231 | * Mon Nov 12 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.2.0-1 |
---|
| 232 | - Upgrade to 1.2.0 |
---|
| 233 | |
---|
| 234 | * Tue Oct 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.3-2 |
---|
| 235 | - d-f-i: s/Mimetypes/MimeTypes/ typo |
---|
| 236 | |
---|
| 237 | * Tue Oct 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.1.3-1 |
---|
| 238 | - k9copy-1.1.3 |
---|
| 239 | |
---|
| 240 | * Sun Jul 08 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1.1-2.rerel3 |
---|
| 241 | - Various minor fixes to the spec file |
---|
| 242 | - Changed release to work around upstreams 'odd' suffix |
---|
| 243 | - Use desktop-file-install for the desktop file |
---|
| 244 | |
---|
| 245 | * Tue Jun 05 2007 Ian Chapman <packages[AT]amiga-hardware.com> 1.1.1-1 |
---|
| 246 | - Initial release |
---|