[packages/libcerror] - new
qboosh
qboosh at pld-linux.org
Sun Jan 18 19:50:26 CET 2015
commit f3a708e930190a83400d7b7ba237f33cc9b5cf07
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jan 18 19:52:04 2015 +0100
- new
libcerror-system-libs.patch | 36 ++++++++++++++++
libcerror.spec | 100 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 136 insertions(+)
---
diff --git a/libcerror.spec b/libcerror.spec
new file mode 100644
index 0000000..fece568
--- /dev/null
+++ b/libcerror.spec
@@ -0,0 +1,100 @@
+Summary: Library to support cross-platform error functions
+Summary(pl.UTF-8): Biblioteka wspierająca wieloplatformowe funkcje obsługi błędów w C
+Name: libcerror
+Version: 20150101
+Release: 1
+License: LGPL v3+
+Group: Libraries
+Source0: https://github.com/libyal/libcerror/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 67173ac854da43442dd1a9458441a595
+Patch0: %{name}-system-libs.patch
+URL: https://github.com/libyal/libcerror/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1.6
+BuildRequires: gettext-tools >= 0.18.1
+BuildRequires: libcstring-devel >= 20120425
+BuildRequires: libtool
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
+Requires: libcstring >= 20120425
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libcerror is a library to support cross-platform C error functions.
+
+%description -l pl.UTF-8
+libcerror to biblioteka wspierająca wieloplatformowe funkcje obsługi
+błędów w C.
+
+%package devel
+Summary: Header files for libcerror library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcerror
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libcstring-devel >= 20120425
+
+%description devel
+Header files for libcerror library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libcerror.
+
+%package static
+Summary: Static libcerror library
+Summary(pl.UTF-8): Statyczna biblioteka libcerror
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libcerror library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libcerror.
+
+%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}/libcerror.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}/libcerror.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcerror.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcerror.so
+%{_includedir}/libcerror
+%{_includedir}/libcerror.h
+%{_pkgconfigdir}/libcerror.pc
+%{_mandir}/man3/libcerror.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcerror.a
diff --git a/libcerror-system-libs.patch b/libcerror-system-libs.patch
new file mode 100644
index 0000000..ce6be5b
--- /dev/null
+++ b/libcerror-system-libs.patch
@@ -0,0 +1,36 @@
+--- libcerror-20150101/configure.ac.orig 2015-01-18 18:27:27.360322132 +0100
++++ libcerror-20150101/configure.ac 2015-01-18 18:50:05.113598486 +0100
+@@ -115,7 +115,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([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libcerror-20150101/Makefile.am.orig 2015-01-18 18:27:26.853655486 +0100
++++ libcerror-20150101/Makefile.am 2015-01-18 18:50:24.770264327 +0100
+@@ -3,7 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ include \
+ common \
+- libcstring \
+ libcerror \
+ po \
+ manuals \
+@@ -54,7 +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)/po && $(MAKE) $(AM_MAKEFLAGS)
+
+@@ -71,7 +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)/po && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/tests && $(MAKE) splint $(AM_MAKEFLAGS))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libcerror.git/commitdiff/f3a708e930190a83400d7b7ba237f33cc9b5cf07
More information about the pld-cvs-commit
mailing list