Accepting request 623576 from home:pluskalm:branches:Archiving

- Do not manually specify dependencies which are automatically
  generated
- Make requirements of devel package less strict

OBS-URL: https://build.opensuse.org/request/show/623576
OBS-URL: https://build.opensuse.org/package/show/Archiving/zchunk?expand=0&rev=4
This commit is contained in:
Martin Pluskal 2018-07-18 10:36:28 +00:00 committed by Git OBS Bridge
parent 12751896f2
commit 4f311c6512
2 changed files with 16 additions and 13 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jul 18 08:09:07 UTC 2018 - mpluskal@suse.com
- Do not manually specify dependencies which are automatically
generated
- Make requirements of devel package less strict
-------------------------------------------------------------------
Tue Jul 17 12:46:26 UTC 2018 - Neal Gompa <ngompa13@gmail.com>

View File

@ -1,6 +1,7 @@
#
# spec file for package zchunk
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 Neal Gompa <ngompa13@gmail.com>.
#
# All modifications and additions to the file contributed by third parties
@ -19,14 +20,12 @@
%global somajor 1
%global libname libzck%{somajor}
%global devname libzck-devel
Name: zchunk
Version: 0.7.6
Release: 0
Summary: Compressed file format that allows easy deltas
Group: Productivity/Archiving/Compression
License: BSD-2-Clause AND MIT
Group: Productivity/Archiving/Compression
URL: https://github.com/zchunk/zchunk
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: meson
@ -34,7 +33,6 @@ BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(openssl)
Requires: %{libname}%{?_isa} = %{version}-%{release}
Provides: bundled(buzhash-urlblock) = 0.1
%description
@ -45,8 +43,8 @@ zchunk files are protected with strong checksums to verify that the file you
downloaded is in fact the file you wanted.
%package -n %{libname}
Summary: Zchunk library
Group: System/Libraries
Summary: Zchunk library
Group: System/Libraries
%description -n %{libname}
zchunk is a compressed file format that splits the file into independent
@ -58,11 +56,11 @@ downloaded is in fact the file you wanted.
This package contains the zchunk library, libzck.
%package -n %{devname}
Summary: Headers for building against zchunk
Group: Development/Libraries/C and C++
Provides: %{name}-devel = %{name}-%{release}
Provides: %{name}-devel%{?_isa} = %{name}-%{release}
Requires: %{libname}%{?_isa} = %{version}-%{release}
Summary: Headers for building against zchunk
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
Provides: %{name}-devel = %{name}-%{release}
Provides: %{name}-devel%{?_isa} = %{name}-%{release}
%description -n %{devname}
zchunk is a compressed file format that splits the file into independent
@ -89,7 +87,6 @@ rm -rf src/lib/hash/sha*
%check
%meson_test
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
@ -111,5 +108,4 @@ rm -rf src/lib/hash/sha*
%{_libdir}/pkgconfig/zck.pc
%{_includedir}/zck.h
%changelog