summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-02-22 07:45:23 -0800
committerAnas Nashif <anas.nashif@intel.com>2013-02-22 07:48:38 -0800
commita9ee85cebbe2b1955673e66e96b71cef74847b69 (patch)
tree7ef3810aeb393eefa3af9f9fd1243f2c8d7c9061
parent546c1fb6af6b1357c66cad7d151e62814fa00cd2 (diff)
downloadxdelta1-a9ee85cebbe2b1955673e66e96b71cef74847b69.tar.gz
xdelta1-a9ee85cebbe2b1955673e66e96b71cef74847b69.tar.bz2
xdelta1-a9ee85cebbe2b1955673e66e96b71cef74847b69.zip
add packaging
-rw-r--r--packaging/xdelta.spec74
1 files changed, 74 insertions, 0 deletions
diff --git a/packaging/xdelta.spec b/packaging/xdelta.spec
new file mode 100644
index 0000000..0005f50
--- /dev/null
+++ b/packaging/xdelta.spec
@@ -0,0 +1,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