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".

-- 
Mark Lane, CET -- mailto:[EMAIL PROTECTED]
Sales Manager -- Hard Data Ltd -- http://www.harddata.com
T: 01-780-456-9771 -- F: 01-780-456-9772
11060 - 166 Avenue Edmonton, AB, Canada, T5X 1Y3
--> Ask me about our New Dual and 4 Way Blade Servers <--

_______________________________________________
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

Reply via email to