%define name k9copy
%define version 1.1.3
%define release 0vlmp2

%define vampsversion 0.99.2

Summary: Video DVD backup tool
Summary(ja): DVD ShrinkのようなDVDリッピングツール
Name: %{name}
Version: %{version}
Release: %{release}
Source: http://dl.sf.net/k9copy/%{name}-%{version}.tar.gz
Source1: http://dl.sf.net/vamps/vamps-%{vampsversion}.tar.gz
Source11: k9copy.desktop
Source12: k9copy.png
License: GPL
Group: Applications/Multimedia
URL: http://k9copy.sourceforge.net/

Prereq: ldconfig, desktop-file-utils
Requires: XOrg, XOrg-gl, kdelibs, qt, libdvdread
Requires: libjpeg, libpng, dbus, hal
Requires: mplayer, dvd+rw-tools, dvdauthor
BuildRequires: XOrg-devel, XOrg-gl-devel
BuildRequires: kdelibs-devel, qt-devel, libdvdread-devel
BuildRequires: libjpeg-devel, libpng-devel, dbus-devel, hal-devel
BuildRequires: arts-devel, fam-devel, libart_lgpl-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

Vendor: none
Distribution: none
Packager: hiroyuki <hiroyuki12@gmail.com>

k9copy is a DVD backup utility which allows copying of one or more titles
from a 9.6 GB DVD to a normal DVD.

%desctiption -l ja

%{__rm} -rf %{buildroot}

#%setup -q -a 1 -c %{name}-%{version}
%setup -q -a 1

source /etc/profile.d/qt.sh
%{__make} -C vamps-%{vampsversion} %{?_smp_mflags} \
    PREFIX="%{_prefix}" CFLAGS="%{optflags} -DHAVE_BUILTIN_EXPECT"
%{__make} %{?_smp_mflags}

%{__rm} -rf %{buildroot}
source /etc/profile.d/qt.sh
%{__make} install -C vamps-%{vampsversion} PREFIX="%{buildroot}%{_prefix}"
%{__make} install DESTDIR="%{buildroot}"
%find_lang %{name}

# for Gnome menu
install -d %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE11} %{buildroot}%{_datadir}/applications/
install -d %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE12} %{buildroot}%{_datadir}/pixmaps/

%{_bindir}/update-desktop-database %{_datadir}/applications >& /dev/null ||:

%{_bindir}/update-desktop-database %{_datadir}/applications >& /dev/null ||:

%{__rm} -rf %{buildroot}

%files -f %{name}.lang
%defattr(-, root, root, 0755)
%doc %{_docdir}/HTML/*/k9copy/
%exclude %{_includedir}
%config (missingok) %{_datadir}/applications/k9copy.desktop

* Sun Sep 30 2007 hiroyuki <hiroyuki12@gmail.com> 1.1.3-0vlmp3
- add BuildRequires: arts-devel, fam-devel, libart_lgpl-devel

* Sat Aug 25 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.1.3-0vlmp2
- add Requires: mplayer, dvd+rw-tools, dvdauthor

* Thu Aug 16 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.1.3-0vlmp1
- new upstream release

* Mon Aug 6 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.1.2-0vlmp1
- new upstream release

* Sat Jun 30 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.1.1-3vlmp2
- add k9copy.desktop for Gnome
- depend Prereq: ldconfig, desktop-file-utils

* Sat Jun 23 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.1.1-3vlmp1
- initial build for Vine Linux 4.1

# Fedora Core 7
* Sat May 19 2007 Gustavo Maciel Dias Vieira <gustavo@sagui.org> - 1.1.1-3-1
- First version.

# Fedora Core !?
* Sun Mar 11 2007 Dag Wieers <dag@wieers.com> - 1.1.0-1
- Initial package. (using DAR)


ヘルプ / FAQ もご覧ください。