[packages/libcdata] - new

qboosh qboosh at pld-linux.org
Sun Jan 18 21:24:05 CET 2015


commit 7e4c6125f77a64a8c0344f5ffbb98e80f6b4c477
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jan 18 21:25:42 2015 +0100

    - new

 libcdata-system-libs.patch |  44 +++++++++++++++++++
 libcdata.spec              | 106 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 150 insertions(+)
---
diff --git a/libcdata.spec b/libcdata.spec
new file mode 100644
index 0000000..64388f1
--- /dev/null
+++ b/libcdata.spec
@@ -0,0 +1,106 @@
+Summary:	Library for cross-platform C generic data functions
+Summary(pl.UTF-8):	Biblioteka wieloplatformowych funkcji ogólnej obsługi danych w C
+Name:		libcdata
+Version:	20150101
+Release:	1
+License:	LGPL v3+
+Group:		Libraries
+Source0:	https://github.com/libyal/libcdata/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	fb5d67304cca3e24ef570e90eab659fe
+Patch0:		%{name}-system-libs.patch
+URL:		https://github.com/libyal/libcdata/
+BuildRequires:	autoconf >= 2.59
+BuildRequires:	automake >= 1.6
+BuildRequires:	gettext-tools >= 0.18.1
+BuildRequires:	libcerror-devel >= 20120425
+BuildRequires:	libcstring-devel >= 20120425
+BuildRequires:	libcthreads-devel >= 20130509
+BuildRequires:	libtool
+BuildRequires:	pkgconfig
+BuildRequires:	sed >= 4.0
+Requires:	libcerror >= 20120425
+Requires:	libcstring >= 20120425
+Requires:	libcthreads >= 20130509
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libcdata is a library for cross-platform C generic data functions.
+
+%description -l pl.UTF-8
+libcdata to biblioteka wieloplatformowych funkcji ogólnej obsługi
+danych w C.
+
+%package devel
+Summary:	Header files for libcdata library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libcdata
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libcerror-devel >= 20120425
+Requires:	libcstring-devel >= 20120425
+Requires:	libcthreads-devel >= 20130509
+
+%description devel
+Header files for libcdata library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libcdata.
+
+%package static
+Summary:	Static libcdata library
+Summary(pl.UTF-8):	Statyczna biblioteka libcdata
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libcdata library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libcdata.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__gettextize}
+%{__sed} -i -e 's/ po\/Makefile.in//' configure.ac
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libcdata.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README
+%attr(755,root,root) %{_libdir}/libcdata.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcdata.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcdata.so
+%{_includedir}/libcdata
+%{_includedir}/libcdata.h
+%{_pkgconfigdir}/libcdata.pc
+%{_mandir}/man3/libcdata.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcdata.a
diff --git a/libcdata-system-libs.patch b/libcdata-system-libs.patch
new file mode 100644
index 0000000..60aceea
--- /dev/null
+++ b/libcdata-system-libs.patch
@@ -0,0 +1,44 @@
+--- libcdata-20150101/configure.ac.orig	2015-01-18 21:05:28.869924230 +0100
++++ libcdata-20150101/configure.ac	2015-01-18 21:10:32.076578174 +0100
+@@ -128,9 +128,6 @@ dnl Have configure make the Makefiles
+ AC_CONFIG_FILES([Makefile])
+ AC_CONFIG_FILES([include/Makefile])
+ AC_CONFIG_FILES([common/Makefile])
+-AC_CONFIG_FILES([libcstring/Makefile])
+-AC_CONFIG_FILES([libcerror/Makefile])
+-AC_CONFIG_FILES([libcthreads/Makefile])
+ AC_CONFIG_FILES([libcdata/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libcdata-20150101/Makefile.am.orig	2015-01-18 21:05:28.406590917 +0100
++++ libcdata-20150101/Makefile.am	2015-01-18 21:10:50.679910725 +0100
+@@ -3,9 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ 	include \
+ 	common \
+-	libcstring \
+-	libcerror \
+-	libcthreads \
+ 	libcdata \
+ 	po \
+ 	manuals \
+@@ -56,9 +53,6 @@ lib: library
+ 
+ library:
+ 	cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS)
+-	cd $(srcdir)/libcstring && $(MAKE) $(AM_MAKEFLAGS)
+-	cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS)
+-	cd $(srcdir)/libcthreads && $(MAKE) $(AM_MAKEFLAGS)
+ 	cd $(srcdir)/libcdata && $(MAKE) $(AM_MAKEFLAGS)
+ 	cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)
+ 
+@@ -75,9 +69,6 @@ distclean: clean
+ 	done && test -z "$$fail"
+ 
+ splint:
+-	(cd $(srcdir)/libcstring && $(MAKE) splint $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libcerror && $(MAKE) splint $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libcthreads && $(MAKE) splint $(AM_MAKEFLAGS))
+ 	(cd $(srcdir)/libcdata && $(MAKE) splint $(AM_MAKEFLAGS))
+ 	(cd $(srcdir)/po && $(MAKE) splint $(AM_MAKEFLAGS))
+ 	(cd $(srcdir)/tests && $(MAKE) splint $(AM_MAKEFLAGS))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libcdata.git/commitdiff/7e4c6125f77a64a8c0344f5ffbb98e80f6b4c477



More information about the pld-cvs-commit mailing list