summaryrefslogtreecommitdiff
path: root/librsync.spec
blob: 17fa0e77382c181f17ff026f25043450237cdf3b (plain)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# This RPM supposes that you download the release zip file from github to SOURCES directory as v2.3.5.zip

%define name librsync
%define version 2.3.5
%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
* Sun Feb 19 2023 Donovan Baarda <abo@minkirri.apana.org.au>
- Prepare SPEC file for librsync 2.3.5
* Sun Feb 19 2023 Donovan Baarda <abo@minkirri.apana.org.au>
- Updated SPEC file for librsync 2.3.4
* Thu Feb 16 2023 Donovan Baarda <abo@minkirri.apana.org.au>
- Updated SPEC file for librsync 2.3.3
* Sat Apr 10 2021 Donovan Baarda <abo@minkirri.apana.org.au>
- Updated SPEC file for librsync 2.3.2
* Tue May 19 2020 Donovan Baarda <abo@minkirri.apana.org.au>
- Updated SPEC file for librsync 2.3.1
* Tue Apr 07 2020 Donovan Baarda <abo@minkirri.apana.org.au>
- Updated SPEC file for librsync 2.3.0
* Wed Oct 16 2019 Donovan Baarda <abo@minkirri.apana.org.au>
- Updated SPEC file for librsync 2.2.1
* Wed Oct 12 2019 Donovan Baarda <abo@minkirri.apana.org.au>
- Updated SPEC file for librsync 2.2.0
* Sat Aug 17 2019 Donovan Baarda <abo@minkirri.apana.org.au>
- 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