]> git.pld-linux.org Git - packages/zchunk.git/blame - zchunk.spec
- updated to 1.1.16
[packages/zchunk.git] / zchunk.spec
CommitLineData
675afa79
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4#
5Summary: Library for generating easy-to-delta files
6Summary(pl.UTF-8): Biblioteka do generowania plików pozwalających na łatwe generowanie różnic
7Name: zchunk
f37fe86e
JB
8Version: 1.1.16
9Release: 1
675afa79
JB
10License: BSD
11Group: Applications/File
12#Source0Download: https://github.com/zchunk/zchunk/releases
13Source0: https://github.com/zchunk/zchunk/archive/%{version}/%{name}-%{version}.tar.gz
f37fe86e 14# Source0-md5: aea55d19670231286e5f6fe23f6751df
675afa79
JB
15URL: https://github.com/zchunk/zchunk
16BuildRequires: curl-devel
17BuildRequires: gcc >= 5:3.2
18BuildRequires: meson >= 0.44.0
19BuildRequires: ninja >= 1.5
20BuildRequires: openssl-devel
21BuildRequires: pkgconfig
22BuildRequires: rpmbuild(macros) >= 1.736
f37fe86e 23BuildRequires: zstd-devel >= 1.5.0
675afa79
JB
24Requires: %{name}-libs = %{version}-%{release}
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28zchunk is a compressed file format that splits the file into
29independent chunks. This allows you to only download changed chunks
30when downloading a new version of the file, and also makes zchunk
31files efficient over rsync.
32
33zchunk files are protected with strong checksums to verify that the
34file you downloaded is, in fact, the file you wanted.
35
36%description -l pl.UTF-8
37zchunk to format skompresowanych plików dzielący plik na niezależne
38części. Pozwala to pobierać tylko zmienione części przy ściąganiu
39nowej wersji pliku oraz czyni format wydajnym dla rsynca.
40
41Plik zchunk są chronione silnymi sumami kontrolnymi w celu
42weryfikacji, czy pobrany plik jest faktycznie tym, którym miał być.
43
44%package libs
45Summary: Shared zck library
46Summary(pl.UTF-8): Biblioteka współdzielona zck
47Group: Libraries
f37fe86e 48Requires: zstd >= 1.5.0
675afa79
JB
49
50%description libs
51zchunk is a compressed file format that splits the file into
52independent chunks. This allows you to only download changed chunks
53when downloading a new version of the file, and also makes zchunk
54files efficient over rsync.
55
56zchunk files are protected with strong checksums to verify that the
57file you downloaded is, in fact, the file you wanted.
58
59This package contains shared library.
60
61%description libs -l pl.UTF-8
62zchunk to format skompresowanych plików dzielący plik na niezależne
63części. Pozwala to pobierać tylko zmienione części przy ściąganiu
64nowej wersji pliku oraz czyni format wydajnym dla rsynca.
65
66Plik zchunk są chronione silnymi sumami kontrolnymi w celu
67weryfikacji, czy pobrany plik jest faktycznie tym, którym miał być.
68
69Ten pakiet zawiera bibliotekę współdzieloną.
70
71%package devel
72Summary: Header files for zck library
73Summary(pl.UTF-8): Pliki nagłówkowe biblioteki zck
74Group: Development/Libraries
75Requires: %{name}-libs = %{version}-%{release}
76Requires: openssl-devel
f37fe86e 77Requires: zstd-devel >= 1.5.0
675afa79
JB
78
79%description devel
80Header files for zck library.
81
82%description devel -l pl.UTF-8
83Pliki nagłówkowe biblioteki zck.
84
85%package static
86Summary: Static zck library
87Summary(pl.UTF-8): Statyczna biblioteka zck
88Group: Development/Libraries
89Requires: %{name}-devel = %{version}-%{release}
90
91%description static
92Static zck library.
93
94%description static -l pl.UTF-8
95Statyczna biblioteka zck.
96
97%prep
98%setup -q
99
100%build
101%meson build \
102 %{!?with_static_libs:--default-library=shared}
103
104%ninja_build -C build
105
106%install
107rm -rf $RPM_BUILD_ROOT
108
109%ninja_install -C build
110
111%clean
112rm -rf $RPM_BUILD_ROOT
113
114%post libs -p /sbin/ldconfig
115%postun libs -p /sbin/ldconfig
116
117%files
118%defattr(644,root,root,755)
119%doc LICENSE README.md
120%attr(755,root,root) %{_bindir}/unzck
121%attr(755,root,root) %{_bindir}/zck
122%attr(755,root,root) %{_bindir}/zck_delta_size
123%attr(755,root,root) %{_bindir}/zck_gen_zdict
124%attr(755,root,root) %{_bindir}/zck_read_header
125# R: curl
126%attr(755,root,root) %{_bindir}/zckdl
1059bee6
JB
127%{_mandir}/man1/unzck.1*
128%{_mandir}/man1/zck.1*
129%{_mandir}/man1/zck_delta_size.1*
130%{_mandir}/man1/zck_gen_zdict.1*
131%{_mandir}/man1/zck_read_header.1*
132%{_mandir}/man1/zckdl.1*
675afa79
JB
133
134%files libs
135%defattr(644,root,root,755)
136%attr(755,root,root) %{_libdir}/libzck.so.*.*.*
137%attr(755,root,root) %ghost %{_libdir}/libzck.so.1
138
139%files devel
140%defattr(644,root,root,755)
141%doc zchunk_format.txt
142%attr(755,root,root) %{_libdir}/libzck.so
143%{_includedir}/zck.h
144%{_pkgconfigdir}/zck.pc
145
146%if %{with static_libs}
147%files static
148%defattr(644,root,root,755)
149%{_libdir}/libzck.a
150%endif
This page took 0.092943 seconds and 4 git commands to generate.