[packages/libbfio] - new

qboosh qboosh at pld-linux.org
Thu Jan 22 15:56:00 CET 2015


commit 9ba62c7df18122c47e3d57b74e13081710c346aa
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jan 22 15:57:39 2015 +0100

    - new

 libbfio-system-libs.patch |  72 ++++++++++++++++++++++++++
 libbfio.spec              | 125 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 197 insertions(+)
---
diff --git a/libbfio.spec b/libbfio.spec
new file mode 100644
index 0000000..5e933d1
--- /dev/null
+++ b/libbfio.spec
@@ -0,0 +1,125 @@
+Summary:	Library to support (abstracted) basic file I/O
+Summary(pl.UTF-8):	Biblioteka obsługująca (abstrakcyjne) podstawowe operacje we/wy dla plików
+Name:		libbfio
+Version:	20150102
+Release:	1
+License:	LGPL v3+
+Group:		Libraries
+Source0:	https://github.com/libyal/libbfio/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	2fc61eb9851303721eceae26bacde5c1
+Patch0:		%{name}-system-libs.patch
+URL:		https://github.com/libyal/libbfio/
+BuildRequires:	autoconf >= 2.59
+BuildRequires:	automake >= 1.6
+BuildRequires:	gettext-tools >= 0.18.1
+BuildRequires:	libcdata-devel >= 20150102
+BuildRequires:	libcerror-devel >= 20120425
+BuildRequires:	libcfile-devel >= 20140503
+BuildRequires:	libclocale-devel >= 20120425
+BuildRequires:	libcnotify-devel >= 20120425
+BuildRequires:	libcpath-devel >= 20120701
+BuildRequires:	libcsplit-devel >= 20120701
+BuildRequires:	libcstring-devel >= 20120425
+BuildRequires:	libcthreads-devel >= 20130509
+BuildRequires:	libuna-devel >= 20120425
+BuildRequires:	libtool
+BuildRequires:	pkgconfig
+BuildRequires:	sed >= 4.0
+Requires:	libcdata >= 20150102
+Requires:	libcerror >= 20120425
+Requires:	libcfile >= 20140503
+Requires:	libclocale >= 20120425
+Requires:	libcnotify >= 20120425
+Requires:	libcpath >= 20120701
+Requires:	libcsplit >= 20120701
+Requires:	libcstring >= 20120425
+Requires:	libcthreads >= 20130509
+Requires:	libuna >= 20120425
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libbfio is a library to support (abstracted) basic file I/O.
+
+%description -l pl.UTF-8
+libbfio to biblioteka obsługująca (abstrakcyjne) podstawowe operacje
+we/wy dla plików.
+
+%package devel
+Summary:	Header files for libbfio library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libbfio
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libcdata-devel >= 20150102
+Requires:	libcerror-devel >= 20120425
+Requires:	libcfile-devel >= 20140503
+Requires:	libclocale-devel >= 20120425
+Requires:	libcnotify-devel >= 20120425
+Requires:	libcpath-devel >= 20120701
+Requires:	libcsplit-devel >= 20120701
+Requires:	libcstring-devel >= 20120425
+Requires:	libcthreads-devel >= 20130509
+Requires:	libuna-devel >= 20120425
+
+%description devel
+Header files for libbfio library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libbfio.
+
+%package static
+Summary:	Static libbfio library
+Summary(pl.UTF-8):	Statyczna biblioteka libbfio
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libbfio library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libbfio.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__gettextize}
+%{__sed} -i -e 's/ po\/Makefile.in//' configure.ac
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog README
+%attr(755,root,root) %{_libdir}/libbfio.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libbfio.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libbfio.so
+%{_libdir}/libbfio.la
+%{_includedir}/libbfio
+%{_includedir}/libbfio.h
+%{_pkgconfigdir}/libbfio.pc
+%{_mandir}/man3/libbfio.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libbfio.a
diff --git a/libbfio-system-libs.patch b/libbfio-system-libs.patch
new file mode 100644
index 0000000..8db7463
--- /dev/null
+++ b/libbfio-system-libs.patch
@@ -0,0 +1,72 @@
+--- libbfio-20150102/configure.ac.orig	2015-01-21 21:55:40.008920272 +0100
++++ libbfio-20150102/configure.ac	2015-01-21 21:56:26.288918528 +0100
+@@ -148,16 +148,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([libclocale/Makefile])
+-AC_CONFIG_FILES([libcnotify/Makefile])
+-AC_CONFIG_FILES([libcsplit/Makefile])
+-AC_CONFIG_FILES([libuna/Makefile])
+-AC_CONFIG_FILES([libcfile/Makefile])
+-AC_CONFIG_FILES([libcpath/Makefile])
+ AC_CONFIG_FILES([libbfio/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libbfio-20150102/Makefile.am.orig	2015-01-02 20:21:24.000000000 +0100
++++ libbfio-20150102/Makefile.am	2015-01-21 21:10:42.792366677 +0100
+@@ -3,16 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ 	include \
+ 	common \
+-	libcstring \
+-	libcerror \
+-	libcthreads \
+-	libcdata \
+-	libclocale \
+-	libcnotify \
+-	libcsplit \
+-	libuna \
+-	libcfile \
+-	libcpath \
+ 	libbfio \
+ 	po \
+ 	manuals \
+@@ -63,16 +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)/libclocale && $(MAKE) $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libcnotify && $(MAKE) $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libcsplit && $(MAKE) $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libcfile && $(MAKE) $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libcpath && $(MAKE) $(AM_MAKEFLAGS))
+ 	(cd $(srcdir)/libbfio && $(MAKE) $(AM_MAKEFLAGS))
+ 	(cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))
+ 
+@@ -89,16 +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)/libclocale && $(MAKE) splint $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libcnotify && $(MAKE) splint $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libcsplit && $(MAKE) splint $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libuna && $(MAKE) splint $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libcfile && $(MAKE) splint $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libcpath && $(MAKE) splint $(AM_MAKEFLAGS))
+ 	(cd $(srcdir)/libbfio && $(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/libbfio.git/commitdiff/9ba62c7df18122c47e3d57b74e13081710c346aa



More information about the pld-cvs-commit mailing list