tizen 2.4 release
[external/xdelta3.git] / packaging / xdelta3.spec
1 Summary:        xdelta3
2 Name:           xdelta3
3 Version:                3.0.9
4 Release:                1
5 License:                GPL-2.0+
6 Group:          System/Libraries
7 Source:         %{name}-%{version}.tar.gz
8 SOURCE1:        xdelta3.manifest
9 URL:                    http://xdelta.org/
10
11 %description
12 Xdelta3 is a set of tools designed to compute changes between
13 binary files.  These changes (delta files) are similar to the output of the
14 "diff" program, in that they may be used to store and transmit only the
15 changes between files.  The "delta files" that Xdelta3 manages are
16 stored in RFC3284 (VCDIFF) format.
17
18 %package devel
19 Summary:        Development files for xdelta3
20 Group:          Development/Libraries
21 Requires:               %{name} = %{version}-%{release}
22
23 %description devel
24 This package contains the header files, libraries and documentation needed to
25 develop applications that use xdelta3.
26
27 %prep
28 %setup -q
29
30 %build
31 cp %{SOURCE1} .
32 libtoolize -c -f
33 aclocal
34 autoheader
35 autoconf
36 automake -a -c
37 ./configure --prefix="/usr"
38 make %{?jobs:-j%jobs} xdelta3
39
40 %install
41 rm -rf %{buildroot}
42 %make_install
43
44 install -D -m 0644 COPYING %{buildroot}/usr/share/license/xdelta3
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %manifest xdelta3.manifest
51 %defattr(-, root, root)
52 %doc README COPYING
53 %doc %{_mandir}/man1/xdelta3.1.gz
54 %doc /usr/share/license/xdelta3
55 %{_bindir}/%{name}