Mark Lane wrote:
On February 24, 2005 12:26 pm, Pete <[EMAIL PROTECTED]> wrote:
Hi :
Problem: I have 2 patch files for a package. SuSE (and other) have an rpm to install the unpatched package. Is there an 'easy' way to blend my 2 patches in the rpm?
This is not for production or so just convenience and an excercise for ME :-)
I an currently reading http://www.rpm.org/max-rpm/ch-rpm-rw-build.html but not sure if the answer is in there.
It's fairly straight forward adding patches to srpms. You place the patch file in your SOURCES directory and make minor mods to your spec file.
Here's a quick specfile created in emacs called my.spec
###### Start Spec file.
Summary: Name: my
Version: 1
Release: 1
License: Group: URL: Source0: %{name}-%{version}.tar.gz
#### Add Patch Sources here. The patches are placed in your SOURCES directory Patch1: my.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
%prep %setup -q
# Run you patches here. %patch1 -p1
%build
%install rm -rf $RPM_BUILD_ROOT
%clean rm -rf $RPM_BUILD_ROOT
%files %defattr(-,root,root,-) %doc
%changelog
* Thu Feb 24 2005 Mark <[EMAIL PROTECTED]> - - Initial build.
##### End Specfile
You can test whether you patch applies cleanly without doing the full build with "rpmbuild -bp my.spec".
Thanks Mark
It seems to work.
Peter
--
Peter Van den Wildenbergh
CriticalControl Solutions Inc. Bow Valley Square II Suite 2400 205 - 5th Avenue SW Calgary, AB T2P 2V7
T (403) 705.7500 F (403) 705.7555 W www.criticalcontrol.com
_______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

