X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=crash.spec;h=13d064a8df2352ccd6bfd3a8d015a03bf9d12dca;hb=HEAD;hp=9fd5ddb28c8d7dd95d95b4198a74016083c792fc;hpb=c4854bf0a0801bd9c17958da661522cf3c3a46fe;p=packages%2Fcrash.git diff --git a/crash.spec b/crash.spec index 9fd5ddb..77106f4 100644 --- a/crash.spec +++ b/crash.spec @@ -25,16 +25,20 @@ exit 1 Summary: Core Analysis Suite Summary(pl.UTF-8): Zestaw narzędzi do analizy zrzutów pamięci Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel} -Version: 7.0.9 +Version: 8.0.5 Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}} License: GPL v2+ Group: Libraries -Source0: http://people.redhat.com/anderson/%{pname}-%{version}.tar.gz -# Source0-md5: 34b881a9ca148d81ff1fd4fdc16b5909 -# git clone https://code.google.com/p/eppic +Source0: https://github.com/crash-utility/crash/archive/%{version}/%{pname}-%{version}.tar.gz +# Source0-md5: b1976b20980a179572bd4d709cc5f209 +# git clone -b v5.0 https://github.com/lucchouina/eppic Source1: eppic.tar.xz -# Source1-md5: a9f80ad71de9d6f5b77534a7ebdbed8e -URL: http://people.redhat.com/anderson/ +# Source1-md5: a04143f6eb0d72c33cd53329dc1b4803 +Source2: https://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.xz +# Source2-md5: c044b7146903ec51c9d2337a29aee93b +Patch0: %{pname}-x32.patch +Patch1: only-patch-gdb.patch +URL: https://github.com/crash-utility/crash BuildRequires: rpmbuild(macros) >= 1.701 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}} %if %{with userspace} @@ -43,7 +47,7 @@ BuildRequires: readline-devel BuildRequires: xz-devel BuildRequires: zlib-devel %endif -ExclusiveArch: %{ix86} %{x8664} alpha arm ia64 ppc64 s390 s390x +ExclusiveArch: %{ix86} %{x8664} x32 alpha arm ia64 ppc64 s390 s390x BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -112,7 +116,9 @@ Ten pakiet zawiera sterownik pamięci /dev/crash do sesji crash na\ %{?with_kernel:%{expand:%create_kernel_packages}} %prep -%setup -q -a1 -n %{pname}-%{version} +%setup -q -a1 -a2 -n %{pname}-%{version} +%patch0 -p1 +%patch1 -p1 %{__mv} eppic extensions @@ -121,7 +127,12 @@ Ten pakiet zawiera sterownik pamięci /dev/crash do sesji crash na\ %if %{with userspace} export CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" -%{__make} -j1 all extensions \ +%{__make} \ + ARCH="%{_target_cpu}" \ + CC="%{__cc}" \ + CFLAGS="%{rpmcflags} -I/usr/include/ncurses" + +%{__make} -j1 extensions \ ARCH="%{_target_cpu}" \ CC="%{__cc}" \ CFLAGS="%{rpmcflags} -I/usr/include/ncurses" @@ -161,7 +172,6 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/crash/extensions/echo.so %attr(755,root,root) %{_libdir}/crash/extensions/eppic.so %attr(755,root,root) %{_libdir}/crash/extensions/snap.so -%attr(755,root,root) %{_libdir}/crash/extensions/trace.so %{_mandir}/man8/crash.8* %files devel