Accepting request 177106 from openSUSE:Tools
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/177106 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/build?expand=0&rev=77
This commit is contained in:
commit
78897cee32
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 17 09:44:35 UTC 2013 - adrian@suse.de
|
||||||
|
|
||||||
|
- fix build for non-SUSE rpm distros
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 17 09:24:49 UTC 2013 - adrian@suse.de
|
Fri May 17 09:24:49 UTC 2013 - adrian@suse.de
|
||||||
|
|
||||||
|
@ -109,14 +109,19 @@ chroot or a secure virtualized
|
|||||||
%setup -q -n obs-build-%version
|
%setup -q -n obs-build-%version
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
# initvm
|
||||||
make CFLAGS="$RPM_BUILD_FLAGS" initvm-all
|
make CFLAGS="$RPM_BUILD_FLAGS" initvm-all
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# initvm
|
# initvm
|
||||||
|
%if 0%{?suse_version}
|
||||||
make DESTDIR=$RPM_BUILD_ROOT initvm-install
|
make DESTDIR=$RPM_BUILD_ROOT initvm-install
|
||||||
strip $RPM_BUILD_ROOT/usr/lib/build/initvm.*
|
strip $RPM_BUILD_ROOT/usr/lib/build/initvm.*
|
||||||
export NO_BRP_STRIP_DEBUG="true"
|
export NO_BRP_STRIP_DEBUG="true"
|
||||||
chmod 0644 $RPM_BUILD_ROOT/usr/lib/build/initvm.*
|
chmod 0644 $RPM_BUILD_ROOT/usr/lib/build/initvm.*
|
||||||
|
%endif
|
||||||
|
|
||||||
# main
|
# main
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
@ -140,7 +145,9 @@ test -e default.conf
|
|||||||
/usr/lib/build
|
/usr/lib/build
|
||||||
%config(noreplace) /usr/lib/build/emulator/emulator.sh
|
%config(noreplace) /usr/lib/build/emulator/emulator.sh
|
||||||
%{_mandir}/man1/build.1*
|
%{_mandir}/man1/build.1*
|
||||||
|
%if 0%{?suse_version}
|
||||||
%exclude /usr/lib/build/initvm.*
|
%exclude /usr/lib/build/initvm.*
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1120 || ! 0%{?suse_version}
|
%if 0%{?suse_version} > 1120 || ! 0%{?suse_version}
|
||||||
%exclude /usr/lib/build/mkbaselibs
|
%exclude /usr/lib/build/mkbaselibs
|
||||||
@ -159,8 +166,10 @@ test -e default.conf
|
|||||||
/usr/lib/build/mkdrpms
|
/usr/lib/build/mkdrpms
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?suse_version}
|
||||||
%files initvm-%{initvm_arch}
|
%files initvm-%{initvm_arch}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
/usr/lib/build/initvm.*
|
/usr/lib/build/initvm.*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user