[packages/libcpath] - new

qboosh qboosh at pld-linux.org
Wed Jan 21 20:51:39 CET 2015


commit 17307ae72cfc051018ee0bd41037cdd6fd585c19
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jan 21 20:53:20 2015 +0100

    - new

 libcpath-system-libs.patch |  52 +++++++++++++++++++++
 libcpath.spec              | 112 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 164 insertions(+)
---
diff --git a/libcpath.spec b/libcpath.spec
new file mode 100644
index 0000000..3706553
--- /dev/null
+++ b/libcpath.spec
@@ -0,0 +1,112 @@
+Summary:	Library to support cross-platform C path functions
+Summary(pl.UTF-8):	Biblioteka wspierająca wieloplatformowe funkcje obsługi ścieżek w C
+Name:		libcpath
+Version:	20150101
+Release:	1
+License:	LGPL v3+
+Group:		Libraries
+Source0:	https://github.com/libyal/libcpath/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	3f2d6b40bf36cea61aec4f31a8ac82e2
+Patch0:		%{name}-system-libs.patch
+URL:		https://github.com/libyal/libcpath/
+BuildRequires:	autoconf >= 2.59
+BuildRequires:	automake >= 1.6
+BuildRequires:	gettext-tools >= 0.18.1
+BuildRequires:	libcerror-devel >= 20120425
+BuildRequires:	libclocale-devel >= 20120425
+BuildRequires:	libcsplit-devel >= 20120701
+BuildRequires:	libcstring-devel >= 20120425
+BuildRequires:	libuna-devel >= 20120425
+BuildRequires:	libtool
+BuildRequires:	pkgconfig
+BuildRequires:	sed >= 4.0
+Requires:	libcerror >= 20120425
+Requires:	libclocale >= 20120425
+Requires:	libcsplit >= 20120701
+Requires:	libcstring >= 20120425
+Requires:	libuna >= 20120425
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libcpath is a library to support cross-platform C path functions.
+
+%description -l pl.UTF-8
+libcpath to biblioteka wspierająca wieloplatformowe funkcje obsługi
+ścieżek w C.
+
+%package devel
+Summary:	Header files for libcpath library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libcpath
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libcerror-devel >= 20120425
+Requires:	libclocale-devel >= 20120425
+Requires:	libcsplit-devel >= 20120701
+Requires:	libcstring-devel >= 20120425
+Requires:	libuna-devel >= 20120425
+
+%description devel
+Header files for libcpath library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libcpath.
+
+%package static
+Summary:	Static libcpath library
+Summary(pl.UTF-8):	Statyczna biblioteka libcpath
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static libcpath library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libcpath.
+
+%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}/libcpath.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}/libcpath.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcpath.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcpath.so
+%{_includedir}/libcpath
+%{_includedir}/libcpath.h
+%{_pkgconfigdir}/libcpath.pc
+%{_mandir}/man3/libcpath.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcpath.a
diff --git a/libcpath-system-libs.patch b/libcpath-system-libs.patch
new file mode 100644
index 0000000..640f80c
--- /dev/null
+++ b/libcpath-system-libs.patch
@@ -0,0 +1,52 @@
+--- libcpath-20150101/configure.ac.orig	2015-01-21 18:02:54.529506347 +0100
++++ libcpath-20150101/configure.ac	2015-01-21 18:05:53.509498836 +0100
+@@ -137,11 +137,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([libcsplit/Makefile])
+-AC_CONFIG_FILES([libuna/Makefile])
+ AC_CONFIG_FILES([libcpath/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libcpath-20150101/Makefile.am.orig	2015-01-21 18:02:54.266173025 +0100
++++ libcpath-20150101/Makefile.am	2015-01-21 18:06:11.989498061 +0100
+@@ -3,11 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ 	include \
+ 	common \
+-	libcstring \
+-	libcerror \
+-	libclocale \
+-	libcsplit \
+-	libuna \
+ 	libcpath \
+ 	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)/libcsplit && $(MAKE) $(AM_MAKEFLAGS)
+-	cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS)
+ 	cd $(srcdir)/libcpath && $(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)/libcsplit && $(MAKE) splint $(AM_MAKEFLAGS))
+-	(cd $(srcdir)/libuna && $(MAKE) splint $(AM_MAKEFLAGS))
+ 	(cd $(srcdir)/libcpath && $(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/libcpath.git/commitdiff/17307ae72cfc051018ee0bd41037cdd6fd585c19



More information about the pld-cvs-commit mailing list