source: spec/trunk/SPECS/patch.spec@ 17

Last change on this file since 17 was 17, checked in by Yuri Dario, 15 years ago

spec: fixed suffix extensions for patched files.

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1Summary: Utility for modifying/upgrading files
2Name: patch
3Version: 2.6.1
4Release: 1
5License: GPLv2+
6URL: http://www.gnu.org/software/patch/patch.html
7Group: Development/Tools
8
9Source: ftp://ftp.gnu.org/gnu/patch/patch-%{version}.tar.gz
10Patch1: patch-2.6.1-os2.diff
11#Patch2: patch-get-arg.patch
12Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14#BuildRequires: libselinux-devel
15#BuildRequires: ed
16
17%description
18The patch program applies diff files to originals. The diff command
19is used to compare an original to a changed file. Diff lists the
20changes made to the file. A person who has the original file can then
21use the patch command with the diff file to add the changes to their
22original file (patching the file).
23
24Patch should be installed because it is a common way of upgrading
25applications.
26
27%prep
28%setup -q
29
30# Avoid os2 patch
31%patch1 -p1 -b .os2~
32
33%build
34CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
35%ifarch sparcv9
36CFLAGS=`echo $CFLAGS|sed -e 's|-fstack-protector||g'`
37%endif
38LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp"; export LDFLAGS
39%configure \
40 "--cache-file=%{_topdir}/cache/%{name}.cache"
41
42make %{?smp_mflags}
43
44#%check
45#make check
46
47%install
48rm -rf $RPM_BUILD_ROOT
49%makeinstall
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
54%files
55%defattr(-,root,root,-)
56%doc COPYING NEWS README
57%{_bindir}/*
58%{_mandir}/*/*
59
60%changelog
Note: See TracBrowser for help on using the repository browser.