Author: glen Date: Mon Dec 28 21:15:20 2009 GMT Module: packages Tag: HEAD ---- Log message: - new; based on openSUSE src.rpm
---- Files affected: packages/lbzip2: lbzip2-makefile.patch (NONE -> 1.1) (NEW), lbzip2.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/lbzip2/lbzip2-makefile.patch diff -u /dev/null packages/lbzip2/lbzip2-makefile.patch:1.1 --- /dev/null Mon Dec 28 22:15:20 2009 +++ packages/lbzip2/lbzip2-makefile.patch Mon Dec 28 22:15:14 2009 @@ -0,0 +1,21 @@ +--- Makefile.orig 2009-04-06 01:39:43.000000000 +0200 ++++ Makefile 2009-04-06 01:40:21.000000000 +0200 +@@ -2,14 +2,15 @@ + .POSIX: + + CC=gcc ++OPTFLAGS=-O2 + CFLAGS=$$($(SHELL) lfs.sh CFLAGS) -D _XOPEN_SOURCE=500 -pipe -ansi -pedantic \ +- -O2 ++ $(OPTFLAGS) + + + + +-LDFLAGS=-s $$($(SHELL) lfs.sh LDFLAGS) +-LIBS=-l pthread -l bz2 $$($(SHELL) lfs.sh LIBS) ++LDFLAGS=$$($(SHELL) lfs.sh LDFLAGS) ++LIBS=-lpthread -lbz2 $$($(SHELL) lfs.sh LIBS) + + lbzip2: main.o lbzip2.o lbunzip2.o lbunzip2_single.o lacos_rbtree.o + $(CC) -o lbzip2 $(LDFLAGS) main.o lbzip2.o lbunzip2.o \ ================================================================ Index: packages/lbzip2/lbzip2.spec diff -u /dev/null packages/lbzip2/lbzip2.spec:1.1 --- /dev/null Mon Dec 28 22:15:20 2009 +++ packages/lbzip2/lbzip2.spec Mon Dec 28 22:15:14 2009 @@ -0,0 +1,61 @@ +# $Revision$, $Date$ +Summary: Parallel bzip2/bunzip2 Filter +Name: lbzip2 +Version: 0.20 +Release: 1 +Source0: http://lacos.web.elte.hu/pub/lbzip2/%{name}-%{version}.tar.gz +# Source0-md5: 9f5479de40f928e77062a62c8a74d831 +Patch1: %{name}-makefile.patch +License: GPL v2+ +Group: Applications/Archiving +URL: http://lacos.hu/ +BuildRequires: bzip2-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Lbzip2 is a Pthreads-based parallel bzip2/bunzip2 filter, passable to +GNU tar with the --use-compress-program option. + +It isn't restricted to regular files on input, nor output. Successful +splitting for decompression isn't guaranteed, just very likely +(failure is detected). Splitting in both modes and compression itself +occur with an approximate 900k block size. + +On an Athlon-64 X2 6000+, lbzip2 was 92% faster than standard bzip2 +when compressing, and 45% faster when decompressing (based on wall +clock time). + +Lbzip2 strives to be portable by requiring UNIX 98 APIs only, besides +an unmodified libbz2. + +%prep +%setup -q -n %{name} +%patch1 + +%build +%{__make} \ + CC="%{__cc}" \ + OPTFLAGS="%{optflags}" + +%install +rm -rf $RPM_BUILD_ROOT +install -D lbzip2 $RPM_BUILD_ROOT%{_bindir}/lbzip2 +install -D lbzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/lbzip2.1 + +%clean +rm -rf "$RPM_BUILD_ROOT" + +%files +%defattr(644,root,root,755) +%doc ChangeLog README +%attr(755,root,root) %{_bindir}/lbzip2 +%{_mandir}/man1/lbzip2.1* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2009/12/28 21:15:14 glen +- new; based on openSUSE src.rpm ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
