commit fdb941f90cd42d306720f0210d3250ea6b0bcabd
Author: Jakub Bogusz <[email protected]>
Date:   Thu Jan 22 16:32:09 2015 +0100

    - new

 libfcache-system-libs.patch |  48 +++++++++++++++++++
 libfcache.spec              | 109 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 157 insertions(+)
---
diff --git a/libfcache.spec b/libfcache.spec
new file mode 100644
index 0000000..3e11254
--- /dev/null
+++ b/libfcache.spec
@@ -0,0 +1,109 @@
+Summary:       Library to provide generic file data cache functions
+Summary(pl.UTF-8):     Biblioteka udostępniająca funkcje do ogólnego 
buforowania danych z plików
+Name:          libfcache
+Version:       20150104
+Release:       1
+License:       LGPL v3+
+Group:         Libraries
+Source0:       
https://github.com/libyal/libfcache/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: bad6ee41c037038a6ea4561a7b4825b4
+Patch0:                %{name}-system-libs.patch
+URL:           https://github.com/libyal/libfcache/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1.6
+BuildRequires: gettext-tools >= 0.18.1
+BuildRequires: libcdata-devel >= 20130407
+BuildRequires: libcerror-devel >= 20120425
+BuildRequires: libcstring-devel >= 20120425
+BuildRequires: libcthreads-devel >= 20130509
+BuildRequires: libtool
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
+Requires:      libcdata >= 20130407
+Requires:      libcerror >= 20120425
+Requires:      libcstring >= 20120425
+Requires:      libcthreads >= 20130509
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libfcache is a library to provide generic file data cache functions.
+
+%description -l pl.UTF-8
+libfcache to biblioteka udostępniająca funkcje do ogólnego buforowania
+danych z plików błędów w C.
+
+%package devel
+Summary:       Header files for libfcache library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libfcache
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      libcdata-devel >= 20130407
+Requires:      libcerror-devel >= 20120425
+Requires:      libcstring-devel >= 20120425
+Requires:      libcthreads-devel >= 20130509
+
+%description devel
+Header files for libfcache library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libfcache.
+
+%package static
+Summary:       Static libfcache library
+Summary(pl.UTF-8):     Statyczna biblioteka libfcache
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libfcache library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libfcache.
+
+%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}/libfcache.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}/libfcache.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfcache.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libfcache.so
+%{_includedir}/libfcache
+%{_includedir}/libfcache.h
+%{_pkgconfigdir}/libfcache.pc
+%{_mandir}/man3/libfcache.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libfcache.a
diff --git a/libfcache-system-libs.patch b/libfcache-system-libs.patch
new file mode 100644
index 0000000..51d092e
--- /dev/null
+++ b/libfcache-system-libs.patch
@@ -0,0 +1,48 @@
+--- libfcache-20150104/configure.ac.orig       2015-01-22 16:12:08.972826037 
+0100
++++ libfcache-20150104/configure.ac    2015-01-22 16:19:34.339474014 +0100
+@@ -127,10 +127,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([libfcache/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libfcache-20150104/Makefile.am.orig        2015-01-22 16:12:08.492826057 
+0100
++++ libfcache-20150104/Makefile.am     2015-01-22 16:19:51.756139949 +0100
+@@ -3,10 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+       include \
+       common \
+-      libcstring \
+-      libcerror \
+-      libcthreads \
+-      libcdata \
+       libfcache \
+       po \
+       manuals \
+@@ -57,10 +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)/libfcache && $(MAKE) $(AM_MAKEFLAGS))
+       (cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))
+ 
+@@ -77,10 +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)/libfcache && $(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/libfcache.git/commitdiff/fdb941f90cd42d306720f0210d3250ea6b0bcabd

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to