Re: Example spec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 17, 2003 at 01:34:27AM -0800, Patrick Nelson wrote:

> Anyone have an example rpm spec file that would demonstrate to me the
> install of a script (perl, tcl, or bash, etc.) app that doesn't need
> compiling?  Got the RPM Guide ordered...

Well if it's just one script, something like this (standard stuff
omitted here):


Source: yourscript.pl

...

%prep
# do not unpack %SOURCE0, but create build directory
# (not sure of this is needed at all)
%setup -c -T

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %SOURCE0 %{buildroot}%{_bindir}/yourscript

%files
%defattr(-,root,root)
%{_bindir}/yourscript

%clean
rm -rf %{buildroot}


Cheers,

-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux