- Small spec file cleanup

- Disable testsuite as it is not reliable in OBS

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=45
This commit is contained in:
Martin Pluskal 2016-07-08 18:09:42 +00:00 committed by Git OBS Bridge
parent bfdeb82b50
commit afd86ca06f
2 changed files with 9 additions and 12 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 8 18:05:38 UTC 2016 - mpluskal@suse.com
- Small spec file cleanup
- Disable testsuite as it is not reliable in OBS
-------------------------------------------------------------------
Thu Apr 28 07:17:22 UTC 2016 - idonmez@suse.com

View File

@ -28,7 +28,7 @@ Source1: http://samba.org/ftp/%{name}/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
BuildRequires: xz
BuildRequires: zlib-devel
Provides: distcc:/usr/bin/ccache
Provides: distcc:%{_bindir}/ccache
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -44,7 +44,7 @@ again. Supported languages are C, C++, Objective-C and Objective-C++.
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot} %{?_smp_mflags}
%make_install
# create the compat symlinks into /usr/libdir/ccache
mkdir -p %{buildroot}/%{_libdir}/%{name}
@ -52,20 +52,11 @@ cd %{buildroot}/%{_libdir}/%{name}
ln -sf ../../bin/%{name} gcc
ln -sf ../../bin/%{name} g++
%check
%ifarch i586
# On i586 use only quick minimal testsuite, full one fails
# (https://bugzilla.samba.org/show_bug.cgi?id=11109)
# We disable the full test-suite on x86-64 too because
# "readonly" testsuite takes forever on OBS.
make quicktest %{?_smp_mflags}
%endif
%files
%defattr(-,root,root,-)
%doc AUTHORS.* GPL-3.0.txt LICENSE.* MANUAL.* NEWS.* README.*
%doc %{_mandir}/man1/%{name}.1%{ext_man}
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_mandir}/man1/%{name}.1%{ext_man}
%changelog