Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ripgrep for openSUSE:Factory checked 
in at 2021-07-17 23:36:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ripgrep (Old)
 and      /work/SRC/openSUSE:Factory/.ripgrep.new.2632 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ripgrep"

Sat Jul 17 23:36:40 2021 rev:9 rq:906739 version:13.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ripgrep/ripgrep.changes  2021-06-13 
23:06:22.875694410 +0200
+++ /work/SRC/openSUSE:Factory/.ripgrep.new.2632/ripgrep.changes        
2021-07-17 23:37:19.321653678 +0200
@@ -1,0 +2,6 @@
+Wed Jul 14 15:39:52 UTC 2021 - Andreas Schneider <a...@cryptomilk.org>
+
+- Build with rust flags
+- Add obs service file
+
+-------------------------------------------------------------------

New:
----
  README.suse-maint.md
  _service
  cargo_config

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

Other differences:
------------------
++++++ ripgrep.spec ++++++
--- /var/tmp/diff_new_pack.HYZCUn/_old  2021-07-17 23:37:19.801649978 +0200
+++ /var/tmp/diff_new_pack.HYZCUn/_new  2021-07-17 23:37:19.805649947 +0200
@@ -16,6 +16,8 @@
 #
 
 
+%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
+
 Name:           ripgrep
 Version:        13.0.0
 Release:        0
@@ -23,8 +25,10 @@
 License:        MIT AND Unlicense
 Group:          Productivity/Text/Utilities
 URL:            https://github.com/BurntSushi/ripgrep
-Source:         
https://github.com/BurntSushi/ripgrep/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
 Source1:        vendor.tar.xz
+Source2:        cargo_config
+Source999:      README.suse-maint.md
 BuildRequires:  cargo
 BuildRequires:  rust >= 1.31
 BuildRequires:  rubygem(asciidoctor)
@@ -64,28 +68,21 @@
 The official fish completion script for ripgrep, generated during the build.
 
 %prep
-%setup -q
-%setup -q -D -T -a 1
-mkdir cargo-home
-cat >cargo-home/config <<EOF
-[source.crates-io]
-registry = 'https://github.com/rust-lang/crates.io-index'
-replace-with = 'vendored-sources'
-[source.vendored-sources]
-directory = './vendor'
-EOF
+%autosetup -p1 -a1
+
+install -d -m 0755 .cargo
+cp %{SOURCE2} .cargo/config
 
 %build
-export CARGO_HOME=$PWD/cargo-home
+export RUSTFLAGS=%{rustflags}
 cargo build --release %{?_smp_mflags}
 
 %install
-export CARGO_HOME=$PWD/cargo-home
+export RUSTFLAGS=%{rustflags}
 cargo install --path . --root=%{buildroot}%{_prefix}
 
 # remove residue crate file
-rm %{buildroot}%{_prefix}/.crates.toml
-rm -f %{buildroot}%{_prefix}/.crates2.json
+rm -f %{buildroot}%{_prefix}/.crates*
 
 install -Dm 644 target/release/build/ripgrep-*/out/rg.1 
%{buildroot}%{_mandir}/man1/rg.1
 install -Dm 644 target/release/build/ripgrep-*/out/rg.bash 
%{buildroot}%{_datadir}/bash-completion/completions/rg

++++++ README.suse-maint.md ++++++
# How to update the ripgrep package

## Prerequisites:

You need the `tar_scm`, `cargo_vendor` and `cargo_audit` obs services
installed:

    zypper in obs-service-tar_scm obs-service-cargo_vendor \
        obs-service-cargo_audit

## Updating to a new version from upstream

Edit the `_service` and `spec` file and update the version variable.

Download the new source file by running:

    osc service disabledrun

Update the changelog file with the upstream release notes.
++++++ _service ++++++
<services>
    <service name="tar_scm" mode="disabled">
        <param name="url">https://github.com/BurntSushi/ripgrep</param>
        <param name="scm">git</param>
        <param name="exclude">.git</param>
        <param name="revision">13.0.0</param>
        <param name="versionformat">@PARENT_TAG@</param>
        <param name="versionrewrite-pattern">v(.*)</param>
    </service>
    <service name="set_version" mode="disabled">
        <param name="basename">ripgrep</param>
    </service>
    <service name="recompress" mode="disabled">
        <param name="file">*.tar</param>
        <param name="compression">gz</param>
    </service>
    <service name="cargo_vendor" mode="disabled">
        <param name="srcdir">ripgrep</param>
        <param name="compression">xz</param>
    </service>
    <service name="cargo_audit" mode="disabled">
        <param name="srcdir">ripgrep</param>
    </service>
</services>
++++++ cargo_config ++++++
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"++++++ vendor.tar.xz ++++++
/work/SRC/openSUSE:Factory/ripgrep/vendor.tar.xz 
/work/SRC/openSUSE:Factory/.ripgrep.new.2632/vendor.tar.xz differ: char 15, 
line 1

Reply via email to