Skip to content

Commit

Permalink
Add musl-based patch
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuntwork committed Apr 16, 2012
1 parent ba32528 commit 7cb4d57
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions packages/patch/patch.spec
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
Summary: GNU Patch
Name: patch
Version: 2.6.1
Release: 3
Release: 1
Group: System Environment/Base
License: GPLv2
Distribution: LightCube OS
Vendor: LightCube Solutions
URL: http://savannah.gnu.org/projects/patch
Source0: ftp://ftp.gnu.org/gnu/patch/patch-2.6.1.tar.xz
Source0: http://ftp.gnu.org/gnu/patch/patch-2.6.1.tar.xz

BuildRequires: digest(sha1:%{SOURCE0}) = 8cc3485aa433b8feb70f6783efb766554230fee8
BuildRequires: ed

%description
Patch allows merging of textual changes

%prep
%setup -q
%{config_musl}

%build
export CFLAGS='-Os -pipe'
export CFLAGS='-D_GNU_SOURCE -Os'
./configure \
--prefix=/usr
--prefix=''
make %{PMFLAGS}
make check
#make check

%install
make prefix=%{buildroot}/usr mandir=%{buildroot}/usr/share/man install
make prefix=%{buildroot} mandir=%{buildroot}/share/man install
%{compress_man}
%{strip}

Expand All @@ -35,19 +35,9 @@ rm -rf %{buildroot}

%files
%defattr(-,root,root)
/usr/bin/patch
/usr/share/man/man1/patch.1.bz2
/bin/patch
/share/man/man1/patch.1.bz2

%changelog
* Wed Oct 26 2011 Jeremy Huntwork <[email protected]> - 2.6.1-3
- Optimize for size
- Remove testsuite patch since ed is available

* Sun Apr 11 2010 Jeremy Huntwork <[email protected]> - 2.6.1-2
- Add in a patch for the testsuite

* Thu Apr 01 2010 Jeremy Huntwork <[email protected]> - 2.6.1-1
- Upgrade to 2.6.1

* Fri Aug 14 2009 Jeremy Huntwork <[email protected]> -
* Mon Apr 16 2012 Jeremy Huntwork <[email protected]> - 2.6.1-1
- Initial version

0 comments on commit 7cb4d57

Please sign in to comment.