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