Membuat spec src.rpm

Dari IGNwiki
Langsung ke: navigasi, cari
Name:           aplikasiku
Version:        1.0
Release:        1%{?dist}
Summary:        aplikasiku untuk...

Group:          System Environment/Base
License:        GPL+

Source0:        %{name}_%{version}.tar.gz

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires:       coreutils
Requires:       GConf2

BuildArch:      noarch

%description
These scripts do setup tasks.

These are of no use on an already installed system.

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/
tar -xvf %{SOURCE0} -C $RPM_BUILD_ROOT%{_datadir}/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_datadir}/%{name}_%{version}/

 
%changelog
* Sat Jul 31 2010
- Initial release