summaryrefslogtreecommitdiff
path: root/packaging/xdelta.spec
blob: 0005f50496ce50637127c7e1dae843d88e9e346a (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
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

Name:           xdelta
Version:        1.1.4
Release:        0
License:        GPL-2.0+
Summary:        Binary delta generator and RCS replacement library
Url:            http://xdelta.org/
Group:          Platform Development/Tools
Source:         %{name}-%{version}.tar.gz
BuildRequires:  coreutils
BuildRequires:  glibc-devel
BuildRequires:  libtool
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(zlib)

%description
Xdelta is a binary delta generator and RCS replacement library. The
delta algorithm is faster than GNU diff for text files and works on
binary files, too.

%package devel
License:        GPL-2.0+
Summary:        Binary delta generator and RCS replacement library
Group:          Development/Libraries
Requires:       %{name} = %{version}
Requires:       pkgconfig(glib-2.0)

%description devel
Xdelta is a binary delta generator and RCS replacement library. The
delta algorithm is faster than GNU diff for text files and works on
binary files, too.

%prep
%setup -q
chmod -x AUTHORS COPYING INSTALL Makefile.am NEWS README *.c *.h *.in xd* */*

%build
export CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
%reconfigure --disable-static
make

%install
%make_install


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%license COPYING
%{_bindir}/xdelta
%{_mandir}/man1/xdelta.*
%{_libdir}/lib*.so.*

%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_bindir}/xdelta-config
%{_libdir}/*.so
%{_datadir}/aclocal/xdelta.m4

%changelog