From: Patrick McCarty Date: Tue, 5 Mar 2013 22:48:39 +0000 (-0800) Subject: Rebase for pbzip2 1.1.13 X-Git-Tag: accepted/tizen/4.0/unified/20170816.013810~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F40%2F99240%2F1;p=platform%2Fupstream%2Fpbzip2.git Rebase for pbzip2 1.1.13 Change-Id: Ic1415371850c9819925adc798f30a6784249e010 Signed-off-by: DongHun Kwak --- diff --git a/Makefile b/Makefile index 878439a..26a3933 100644 --- a/Makefile +++ b/Makefile @@ -3,28 +3,14 @@ SHELL = /bin/sh # Compiler to use -# CXX = g++ - - -# Thread-related flags -# On some compilers -pthreads -CXXFLAGS_PTHREAD = -pthread - -# Comment out CXXFLAGS line below to disable pthread semantics in code -CXXFLAGS_PTHREAD += -D_POSIX_PTHREAD_SEMANTICS - -LDLIBS_PTHREAD = -lpthread - - -# Optimization flags -CXXFLAGS = -O2 - -#CXXFLAGS += -g -Wall -#CXXFLAGS += -ansi -#CXXFLAGS += -pedantic -#CXXFLAGS += -std=c++0x - -# Comment out CXXFLAGS line below for compatability mode for 32bit file sizes +CC = g++ +CFLAGS ?= -O2 +#CFLAGS += -g -Wall +#CFLAGS += -ansi +#CFLAGS += -pedantic +#CFLAGS += -std=c++0x + +# Comment out CFLAGS line below for compatability mode for 32bit file sizes # (less than 2GB) and systems that have compilers that treat int as 64bit # natively (ie: modern AIX) CXXFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 @@ -54,9 +40,8 @@ LDFLAGS = # External libraries -LDLIBS = -lbz2 -LDLIBS += $(LDLIBS_PTHREAD) - +LDFLAGS += -lbz2 +LDFLAGS += -lpthread # Where you want pbzip2 installed when you do 'make install' PREFIX = /usr diff --git a/packaging/pbzip2.changes b/packaging/pbzip2.changes new file mode 100644 index 0000000..dc88c50 --- /dev/null +++ b/packaging/pbzip2.changes @@ -0,0 +1,8 @@ +* Sat May 11 2013 Anas Nashif submit/tizen/20130509.182756@e5e5aeb +- Set license using %license + +* Tue Mar 05 2013 Patrick McCarty upstream/1.1.6@16bd24b +- Add packaging +- Avoid overwriting CFLAGS and LDFLAGS +- Imported Upstream version 1.1.6 + diff --git a/packaging/pbzip2.manifest b/packaging/pbzip2.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/pbzip2.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/pbzip2.spec b/packaging/pbzip2.spec new file mode 100644 index 0000000..953bd1e --- /dev/null +++ b/packaging/pbzip2.spec @@ -0,0 +1,40 @@ +Name: pbzip2 +Version: 1.1.6 +Release: 0 +Summary: Parallel implementation of bzip2 +URL: http://www.compression.ca/pbzip2/ +License: BSD +Group: Applications/Other +Source0: %{name}-%{version}.tar.gz +Source1001: pbzip2.manifest +BuildRequires: bzip2-devel +BuildRequires: gcc-c++ + +%description +PBZIP2 is a parallel implementation of the bzip2 block-sorting file +compressor that uses pthreads and achieves near-linear speedup on SMP +machines. The output of this version is fully compatible with bzip2 +v1.0.2 or newer (ie: anything compressed with pbzip2 can be +decompressed with bzip2). + +%prep +%setup -q +cp %{SOURCE1001} . + +%build +make %{?_smp_mflags} + +%install +install -Dm755 pbzip2 %{buildroot}%{_bindir}/pbzip2 +install -Dm644 pbzip2.1 %{buildroot}%{_mandir}/man1/pbzip2.1 +ln -s pbzip2 %{buildroot}%{_bindir}/pbunzip2 +ln -s pbzip2 %{buildroot}%{_bindir}/pbzcat + +%docs_package + +%files +%manifest %{name}.manifest +%license COPYING +%{_bindir}/pbzip2 +%{_bindir}/pbunzip2 +%{_bindir}/pbzcat