forked from librsync/librsync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibrsync.spec
81 lines (66 loc) · 2.26 KB
/
librsync.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# This RPM supposes that you download the release zip file from github to SOURCES directory as v2.1.0.zip
%define name librsync
%define version 2.1.0
%define gitsource https://github.com/librsync/%{name}/archive/v%{version}.zip
Summary: Rsync libraries
Name: %{name}
Version: %{version}
Release: 1%{?dist}
License: LGPL
Group: System Environment/Libraries
Source0: %{gitsource}
URL: http://librsync.sourcefrog.net
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: zlib cmake popt-devel bzip2-devel doxygen
%description
librsync implements the "rsync" algorithm, which allows remote
differencing of binary files. librsync computes a delta relative to a
file's checksum, so the two files need not both be present to generate
a delta.
%package devel
Summary: Headers and development libraries for librsync
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
librsync implements the "rsync" algorithm, which allows remote
differencing of binary files. librsync computes a delta relative to a
file's checksum, so the two files need not both be present to generate
a delta.
This package contains header files necessary for developing programs
based on librsync.
%prep
#wget --no-check-certificate --timeout=5 -O %{_sourcedir}/v%{version}.zip %{gitsource}
%setup
# The next line is only needed if there are any non-upstream patches. In
# this distribution there are none.
#%patch
%build
# By default, cmake installs to /usr/local, need to tweak here
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=Release .
make CFLAGS="$RPM_OPT_FLAGS"
make doc
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS.md README.md
%{_bindir}/rdiff
%{_mandir}/man1/rdiff.1.gz
%{_libdir}/%{name}*
%{_mandir}/man3/librsync.3.gz
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}*
%changelog
* Sat Aug 17 2019 Donovan Baarda <[email protected]>
- Updated SPEC file for librsync 2.1.0
* Tue Feb 27 2018 Orsiris de Jong <ozy@netpower>
- Updated SPEC file for librsync 2.0.2
- Fixed cmake paths for RHEL 7 64 bits
- Added automatic source download using wget (for tests)
- Updated dependencies