wiki:SpecTemplates/PlainPackage
%define pkg_version <バージョン番号>
%define pkg_release 1%{?_dist_release}

Summary:     <short summary of package in english>
Summary(ja): <日本語のパッケージの簡単な説明>
Name:        <パッケージ名>
Version:     %{pkg_version}
Release:     %{pkg_release}
Source0:     %{name}-%{version}.tar.bz2
Patch0:      %{name}-hogehoge.patch
License:     <GPL|GPL2|BSD|MIT|...>
Group: 
URL: 

Requires: 
BuildRequires: 
BuildRoot: %{_tmppath}/%{name}-%{version}-root

Vendor: Project Vine
Distribution: Vine Linux
Packager: <メンテナの id>


%description
package descriptions in english

%description -l ja
日本語の説明


%prep
%setup -q
%patch0 -p1 -b .hogehoge


%build
%configure
%{__make} %{?_smp_mflags}


%install
%{__rm} -rf ${RPM_BUILD_ROOT}
%{__make} install DESTDIR=${RPM_BUILD_ROOT}

%find_lang %{name}


%clean
%{__rm} -rf ${RPM_BUILD_ROOT}


%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYING ChangeLog NEWS README
%{_bindir}/*
%{_libdir}/*
%{_datadir}/*
%{_mandir}/man?/*
%{_sysconfdir}/*


%changelog
* Sun Jan 23 2008 Your Name <name@yours.example.com> VERSION-1
- initial build for Vine Linux


# end of file

spec テンプレート一覧へ