仮想な背中さんの VMware Command Line Tools の rpm

あるかなーと思ってさくっとググってみたけど見当たらなかったんで spec を書いてみました。

書いた後にふと「spec」でググるとどうなんだと思ったら id:woremacx さんのレポジトリがヒット(→http://worepo.woremacx.com/trac/browser/trunk/pkgs/vmw/vmw.spec)しました。ガーン。

でもちょい流儀がちがうんでいいやと思い,恥をしのんで公開します。woremacx さんのほうがミニマムでカコイイんですが。

%define name	vmw
%define reldate	060510
%define release	1

%define install_bin_opts -c -p -m 755

Summary:	VMware Command Line Tools
Name:		%{name}
Version:	20%{reldate}
Release:	%{release}
Source:		%{name}-%{reldate}.tar.gz
License:	Public Domain
Group:		Application/System
Url:		http://chitchat.at.infoseek.co.jp/vmware/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
This package contains:

  * vmw: command line utility program with the following functions:
    - Call VMware virtual machine's APM functions directly, bypassing the
      APM BIOS inside the guest.
    - Copy and paste text between guest and host.
    - Get and/or set mouse cursor location.
    - Get connectable virtual device information such as floppy and CD.
    - Connect and/or disconnect connectable virtual devices.
    - Get and/or set VMware GUI option settings such as availability of
      the copy & paste function and mouse cursor grab / release settings.
    - Get virtual machine and host machine information, such as virtual
      hardware version, memory size, processor speed and screen size.
    - Call VMware guest-to-host RPC functions such as virtual disk shrinking
      and log message output.
    - Get the host's system time and/or synchronize the guest's clock with
      the host.

  * vmshrink: shrink virtual disks from command line in a VMware guest.

  * vmftp: FTP client-like user interface program to exchange files
           between host and guest through VMware Shared Folders

%prep
%setup -q -n %{name}

%build
cd src
%{__make} all

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
cd src
install %{install_bin_opts} vmw      $RPM_BUILD_ROOT/%{_bindir}/
install %{install_bin_opts} vmshrink $RPM_BUILD_ROOT/%{_bindir}/
install %{install_bin_opts} vmftp    $RPM_BUILD_ROOT/%{_bindir}/

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc *.TXT *.txt
%{_bindir}/*

%changelog
* Fri Jul 20 2007 ITO Nobuaki <daydream.trippers@gmail.com> 20060510-1
- first public beta

ライセンスが不明だったんで文脈から Public Domain にしたんですが違ったらすいません>作者さま。一部 GPL みたいなこと書いてあるんで GPL にしようかとも思ったんですが。