SHA256
3
0
forked from pool/xz

Accepting request 55070 from Base:System

Accepted submit request 55070 from user elvigia

OBS-URL: https://build.opensuse.org/request/show/55070
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xz?expand=0&rev=22
This commit is contained in:
Marcus Rückert 2010-12-08 13:26:46 +00:00 committed by Git OBS Bridge
commit c5d205347f
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Dec 7 18:47:04 UTC 2010 - cristian.rodriguez@opensuse.org
- Use compiler profile information, makes xz marginally faster
(around 1-2 secs)
-------------------------------------------------------------------
Sat Oct 30 20:17:49 UTC 2010 - jengelh@medozas.de

14
xz.spec
View File

@ -80,11 +80,23 @@ compiling programs using the LZMA library.
%build
AUTOPOINT=true autoreconf -fiv
%if %{do_profiling}
profiledir=$(mktemp -d)
trap "rm -rf $profiledir" EXIT
export CFLAGS="%optflags %{cflags_profile_generate}=$profiledir"
%endif
%configure --libdir=/%{_lib} --disable-static --with-pic --docdir=%_docdir/%name
make %{?_smp_mflags}
%if %{do_profiling}
time make check
make clean
export CFLAGS="%optflags %{cflags_profile_feedback}=$profiledir"
%configure --libdir=/%{_lib} --disable-static --with-pic --docdir=%_docdir/%name
make %{?_smp_mflags}
%endif
%check
LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
time make check
%install
make install DESTDIR=$RPM_BUILD_ROOT