]> git.pld-linux.org Git - packages/bsdiff.git/blob - bsdiff.spec
- cleanup from fedora
[packages/bsdiff.git] / bsdiff.spec
1 Summary:        Binary diff/patch utility
2 Name:           bsdiff
3 Version:        4.3
4 Release:        1
5 License:        BSD
6 Group:          Development/Tools
7 Source0:        http://www.daemonology.net/bsdiff/%{name}-%{version}.tar.gz
8 # Source0-md5:  e6d812394f0e0ecc8d5df255aa1db22a
9 URL:            http://www.daemonology.net/bsdiff/
10 BuildRequires:  bzip2-devel
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 bsdiff and bspatch are tools for building and applying patches to
15 binary files. By using suffix sorting (specifically, Larsson and
16 Sadakane's qsufsort) and taking advantage of how executable files
17 change, bsdiff routinely produces binary patches 50-80% smaller than
18 those produced by Xdelta, and 15% smaller than those produced by
19 .RTPatch.
20
21 %prep
22 %setup -q
23
24 %build
25 %{__cc} bsdiff.c  -o bsdiff  %{rpmcflags} -lbz2
26 %{__cc} bspatch.c -o bspatch %{rpmcflags} -lbz2
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
31 install bsdiff bspatch $RPM_BUILD_ROOT%{_bindir}
32 install bsdiff.1 bspatch.1 $RPM_BUILD_ROOT%{_mandir}/man1
33
34 %clean
35 rm -rf ${RPM_BUILD_ROOT}
36
37 %files
38 %defattr(644,root,root,755)
39 %attr(755,root,root) %{_bindir}/*
40 %{_mandir}/man1/*
This page took 0.072825 seconds and 4 git commands to generate.