Hello community,

here is the log from the commit of package cargo for openSUSE:Factory checked 
in at 2016-11-10 13:18:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cargo (Old)
 and      /work/SRC/openSUSE:Factory/.cargo.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cargo"

Changes:
--------
--- /work/SRC/openSUSE:Factory/cargo/cargo.changes      2016-10-31 
09:55:10.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.cargo.new/cargo.changes 2016-11-10 
13:18:46.000000000 +0100
@@ -1,0 +2,5 @@
+Thu Nov  3 18:36:00 UTC 2016 - [email protected]
+
+- Update to 0.13.0
+
+-------------------------------------------------------------------

Old:
----
  cargo-0.11.0.tar.xz

New:
----
  cargo-0.13.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cargo.spec ++++++
--- /var/tmp/diff_new_pack.RrWOga/_old  2016-11-10 13:18:49.000000000 +0100
+++ /var/tmp/diff_new_pack.RrWOga/_new  2016-11-10 13:18:49.000000000 +0100
@@ -1,6 +1,7 @@
 #
 # spec file for package cargo
 #
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2016 Michal Vyskocil, [email protected]
 # Copyright (c) 2016 Kristoffer Gronlund, [email protected]
 #
@@ -16,13 +17,18 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
+%bcond_without bootstrap_tarball
+
+%define rust_target %(rustc -vV | grep 'host: ' | sed 's/host: //')
+
 Name:           cargo
-Version:        0.11.0
-Release:        1
-License:        MIT or Apache-2.0
+Version:        0.13.0
+Release:        0
 Summary:        The Rust package manager
-Url:            https://github.com/rust-lang/cargo
+License:        MIT or Apache-2.0
 Group:          Development/Languages/Other
+Url:            https://github.com/rust-lang/cargo
 
 # See README.packager for instructions on generating
 # the source archives
@@ -30,13 +36,16 @@
 Source1:        vendor.tar.xz
 Source2:        README.packager
 
-BuildRequires:  rustc-stable >= 1.10.0
-BuildRequires:  cargo-bootstrap
+BuildRequires:  cargo >= 0.10.0
+BuildRequires:  cmake
+BuildRequires:  curl
+BuildRequires:  git
+BuildRequires:  libcurl-devel
 BuildRequires:  libopenssl-devel
 BuildRequires:  libssh-devel
+BuildRequires:  rustc-stable >= 1.10.0
 BuildRequires:  zlib-devel
-BuildRequires:  cmake
-BuildRequires:  git
+Requires:       rustc
 
 Conflicts:      cargo-bootstrap
 
@@ -45,6 +54,16 @@
 %description
 Cargo downloads your Rust project’s dependencies and compiles your project.
 
+%if %{with bootstrap_tarball}
+%package bootstrap-tarball
+Summary:        Bootstrap tarball with cargo binaries
+Group:          Development/Languages/Other
+
+%description bootstrap-tarball
+This subpackage provides tarball with rust binaries used for cargo-bootstrap
+package.
+%endif
+
 %prep
 %setup -q
 %setup -q -D -T -a 1
@@ -66,7 +85,11 @@
 popd
 
 %build
-CARGO_HOME=cargo-home cargo build --release
+CARGO_HOME=cargo-home cargo build --target=%{rust_target} --release 
%{?_smp_mflags}
+%if %{with bootstrap_tarball}
+./configure --target=%{rust_target}
+CARGO_HOME=cargo-home make %{?_smp_mflags} dist
+%endif
 
 %install
 mkdir build
@@ -77,6 +100,11 @@
 install -Dm0644 src/etc/man/cargo*.1 %{buildroot}%{_mandir}/man1/
 install -Dm0644 src/etc/cargo.bashcomp.sh 
%{buildroot}%{_sysconfdir}/bash_completion.d/cargo.sh
 
+%if %{with bootstrap_tarball}
+mkdir -p %{buildroot}%{_prefix}/share/cargo-bootstrap-tarball
+mv target/%{rust_target}/release/dist/%{name}-%{version}-%{rust_target}.tar.gz 
%{buildroot}%{_prefix}/share/cargo-bootstrap-tarball
+%endif
+
 %files
 %defattr(-,root,root)
 %doc LICENSE-APACHE LICENSE-MIT README.md
@@ -84,4 +112,11 @@
 %doc %{_mandir}/man1/*
 %config %{_sysconfdir}/bash_completion.d/cargo.sh
 
+%if %{with bootstrap_tarball}
+%files bootstrap-tarball
+%defattr(-,root,root,-)
+%dir %{_prefix}/share/cargo-bootstrap-tarball
+%{_prefix}/share/cargo-bootstrap-tarball/cargo-*.tar.gz
+%endif
+
 %changelog

++++++ cargo-0.11.0.tar.xz -> cargo-0.13.0.tar.xz ++++++
++++ 70156 lines of diff (skipped)

++++++ vendor.tar.xz ++++++
/work/SRC/openSUSE:Factory/cargo/vendor.tar.xz 
/work/SRC/openSUSE:Factory/.cargo.new/vendor.tar.xz differ: char 25, line 1


Reply via email to