[packages/libcfile] - new
qboosh
qboosh at pld-linux.org
Tue Jan 20 21:43:27 CET 2015
commit c3fda5bb3e2547a03c69d87cf29985840c9ebd53
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jan 20 21:45:09 2015 +0100
- new
libcfile-system-libs.patch | 52 +++++++++++++++++++++
libcfile.spec | 112 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 164 insertions(+)
---
diff --git a/libcfile.spec b/libcfile.spec
new file mode 100644
index 0000000..ae43fe2
--- /dev/null
+++ b/libcfile.spec
@@ -0,0 +1,112 @@
+Summary: Library to support cross-platform C file functions
+Summary(pl.UTF-8): Biblioteka wspierająca wieloplatformowe funkcje obsługi plików w C
+Name: libcfile
+Version: 20150101
+Release: 1
+License: LGPL v3+
+Group: Libraries
+Source0: https://github.com/libyal/libcfile/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: d0be08f6cdbb85262e9943596d3b256d
+Patch0: %{name}-system-libs.patch
+URL: https://github.com/libyal/libcfile/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1.6
+BuildRequires: gettext-tools >= 0.18.1
+BuildRequires: libcerror-devel >= 20120425
+BuildRequires: libclocale-devel >= 20120425
+BuildRequires: libcnotify-devel >= 20120425
+BuildRequires: libcstring-devel >= 20120425
+BuildRequires: libuna-devel >= 20120425
+BuildRequires: libtool
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
+Requires: libcerror >= 20120425
+Requires: libclocale >= 20120425
+Requires: libcnotify >= 20120425
+Requires: libcstring >= 20120425
+Requires: libuna >= 20120425
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libcfile is a library to support cross-platform C file functions.
+
+%description -l pl.UTF-8
+libcfile to biblioteka wspierająca wieloplatformowe funkcje obsługi
+plików w C.
+
+%package devel
+Summary: Header files for libcfile library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcfile
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libcerror-devel >= 20120425
+Requires: libclocale-devel >= 20120425
+Requires: libcnotify-devel >= 20120425
+Requires: libcstring-devel >= 20120425
+Requires: libuna-devel >= 20120425
+
+%description devel
+Header files for libcfile library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libcfile.
+
+%package static
+Summary: Static libcfile library
+Summary(pl.UTF-8): Statyczna biblioteka libcfile
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libcfile library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libcfile.
+
+%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}/libcfile.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}/libcfile.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcfile.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcfile.so
+%{_includedir}/libcfile
+%{_includedir}/libcfile.h
+%{_pkgconfigdir}/libcfile.pc
+%{_mandir}/man3/libcfile.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcfile.a
diff --git a/libcfile-system-libs.patch b/libcfile-system-libs.patch
new file mode 100644
index 0000000..e046931
--- /dev/null
+++ b/libcfile-system-libs.patch
@@ -0,0 +1,52 @@
+--- libcfile-20150101/configure.ac.orig 2015-01-20 17:41:27.939852872 +0100
++++ libcfile-20150101/configure.ac 2015-01-20 21:32:35.605937567 +0100
+@@ -143,11 +143,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([libclocale/Makefile])
+-AC_CONFIG_FILES([libcnotify/Makefile])
+-AC_CONFIG_FILES([libuna/Makefile])
+ AC_CONFIG_FILES([libcfile/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libcfile-20150101/Makefile.am.orig 2015-01-20 17:41:27.393186228 +0100
++++ libcfile-20150101/Makefile.am 2015-01-20 21:32:54.082603459 +0100
+@@ -3,11 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ include \
+ common \
+- libcstring \
+- libcerror \
+- libclocale \
+- libcnotify \
+- libuna \
+ libcfile \
+ po \
+ manuals \
+@@ -58,11 +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)/libclocale && $(MAKE) $(AM_MAKEFLAGS)
+- cd $(srcdir)/libcnotify && $(MAKE) $(AM_MAKEFLAGS)
+- cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS)
+ cd $(srcdir)/libcfile && $(MAKE) $(AM_MAKEFLAGS)
+ cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)
+
+@@ -79,11 +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)/libclocale && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcnotify && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libuna && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/libcfile && $(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/libcfile.git/commitdiff/c3fda5bb3e2547a03c69d87cf29985840c9ebd53
More information about the pld-cvs-commit
mailing list