[libxdiff] initial package

Tom Callaway spot at fedoraproject.org
Mon Jun 3 13:17:06 UTC 2013


commit f0a16d43127e247ae0102a50a0e5949664c50df4
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Mon Jun 3 09:16:41 2013 -0400

    initial package

 .gitignore    |    1 +
 libxdiff.spec |   60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7795163 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libxdiff-1.0-9c6289c.tar.gz
diff --git a/libxdiff.spec b/libxdiff.spec
new file mode 100644
index 0000000..70f68f0
--- /dev/null
+++ b/libxdiff.spec
@@ -0,0 +1,60 @@
+# Matches 1.0 tag.
+%global commit 9c6289c5a088bf24f18f0b7bf8acaaf643aa411d
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:		libxdiff
+Version:	1.0
+Release:	1%{?dist}
+Summary:	Basic functionality to create difference/patches in binary and text
+License:	LGPLv2+
+URL:		https://github.com/spotrh/libxdiff
+Source0:	https://github.com/spotrh/libxdiff/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+
+%description
+The LibXDiff library implements basic and yet complete functionalities to 
+create file differences/patches to both binary and text files. The library 
+uses memory files as file abstraction to achieve both performance and 
+portability. For binary files, LibXDiff implements both (with some 
+modification) the algorithm described in File System Support for Delta 
+Compression by Joshua P. MacDonald, and the algorithm described in 
+Fingerprinting By Random Polynomials by Michael O. Rabin. While for text 
+files it follows directives described in An O(ND) Difference Algorithm 
+and Its Variations by Eugene W. Myers.
+
+This is a merged fork of the forks of the original libxdiff (0.23) found 
+in the git and libgit2 source code, converted into a shared library.
+
+%package devel
+Summary:	Development libraries and headers for libxdiff
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Development libraries and headers for libxdiff.
+
+%prep
+%setup -q -n %{name}-%{commit}
+
+%build
+%configure --disable-static
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+rm -rf %{buildroot}%{_libdir}/*.la
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc AUTHORS COPYING README.md NEWS ChangeLog
+%{_libdir}/libxdiff.so.*
+
+%files devel
+%{_includedir}/xdiff/
+%{_libdir}/libxdiff.so
+%{_libdir}/pkgconfig/libxdiff.pc
+
+%changelog
+* Thu May 30 2013 Tom Callaway <spot at fedoraproject.org> - 1.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..7325b12 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ee9738e0444828b5cd8439808f652b36  libxdiff-1.0-9c6289c.tar.gz


More information about the scm-commits mailing list