Difference between revisions of "Build rpm packages with the rpmbuild command"
From Linuxintro
imported>ThorstenStaerk (Created page with "First, create a SPEC file: <pre> Summary: krep allows you to filter text Name: krep Version: 1.0 Release: 1 License: GPL Group: Applications/Sound Source: http://www.staerk.de/f...") |
imported>ThorstenStaerk |
||
Line 18: | Line 18: | ||
%prep | %prep | ||
− | + | %setup | |
− | |||
%build | %build | ||
Line 26: | Line 25: | ||
%install | %install | ||
make install | make install | ||
+ | mkdir -p /usr/src/packages/BUILDROOT/krep-1.0-1.i386/usr/local/bin | ||
+ | cp /usr/local/bin/krep /usr/src/packages/BUILDROOT/krep-1.0-1.i386/usr/local/bin/krep | ||
− | %files | + | %files |
+ | %doc README | ||
+ | %defattr(-, root, root) | ||
/usr/local/bin/krep | /usr/local/bin/krep | ||
</pre> | </pre> |
Revision as of 10:56, 6 February 2011
First, create a SPEC file:
Summary: krep allows you to filter text Name: krep Version: 1.0 Release: 1 License: GPL Group: Applications/Sound Source: http://www.staerk.de/files/krep.tar.gz URL: http://www.staerk.de/thorsten/krep Distribution: SUSE Linux Vendor: - Packager: Thorsten Staerk %description krep lets you filter text by regular expressions %prep %setup %build make %install make install mkdir -p /usr/src/packages/BUILDROOT/krep-1.0-1.i386/usr/local/bin cp /usr/local/bin/krep /usr/src/packages/BUILDROOT/krep-1.0-1.i386/usr/local/bin/krep %files %doc README %defattr(-, root, root) /usr/local/bin/krep