[packages/libcsplit] - new
qboosh
qboosh at pld-linux.org
Mon Jan 19 20:41:14 CET 2015
commit 2c8d330bc53cbece5875579cbf772ff4b461d94b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jan 19 20:42:53 2015 +0100
- new
libcsplit-system-libs.patch | 40 +++++++++++++++++
libcsplit.spec | 104 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 144 insertions(+)
---
diff --git a/libcsplit.spec b/libcsplit.spec
new file mode 100644
index 0000000..3062f80
--- /dev/null
+++ b/libcsplit.spec
@@ -0,0 +1,104 @@
+Summary: Library to support cross-platform C split string functions
+Summary(pl.UTF-8): Biblioteka wspierająca wieloplatformowe funkcje dzielenia łańcuchów w C
+Name: libcsplit
+Version: 20150101
+Release: 1
+License: LGPL v3+
+Group: Libraries
+Source0: https://github.com/libyal/libcsplit/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 978a145663dd4eff9f9d74a02be3d649
+Patch0: %{name}-system-libs.patch
+URL: https://github.com/libyal/libcsplit/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1.6
+BuildRequires: gettext-tools >= 0.18.1
+BuildRequires: libcerror-devel >= 20120425
+BuildRequires: libcstring-devel >= 20120425
+BuildRequires: libtool
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
+Requires: libcerror >= 20120425
+Requires: libcstring >= 20120425
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libcsplit is a library to support cross-platform C split string
+functions.
+
+%description -l pl.UTF-8
+libcsplit to biblioteka wspierająca wieloplatformowe funkcje dzielenia
+łańcuchów w C.
+
+%package devel
+Summary: Header files for libcsplit library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcsplit
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libcerror-devel >= 20120425
+Requires: libcstring-devel >= 20120425
+
+%description devel
+Header files for libcsplit library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libcsplit.
+
+%package static
+Summary: Static libcsplit library
+Summary(pl.UTF-8): Statyczna biblioteka libcsplit
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libcsplit library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libcsplit.
+
+%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}/libcsplit.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}/libcsplit.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcsplit.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcsplit.so
+%{_includedir}/libcsplit
+%{_includedir}/libcsplit.h
+%{_pkgconfigdir}/libcsplit.pc
+%{_mandir}/man3/libcsplit.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcsplit.a
diff --git a/libcsplit-system-libs.patch b/libcsplit-system-libs.patch
new file mode 100644
index 0000000..7ee773f
--- /dev/null
+++ b/libcsplit-system-libs.patch
@@ -0,0 +1,40 @@
+--- libcsplit-20150101/configure.ac.orig 2015-01-19 20:26:03.176397642 +0100
++++ libcsplit-20150101/configure.ac 2015-01-19 20:34:58.506375182 +0100
+@@ -125,8 +125,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([libcsplit/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libcsplit-20150101/Makefile.am.orig 2015-01-19 20:26:02.919730990 +0100
++++ libcsplit-20150101/Makefile.am 2015-01-19 20:35:10.719708002 +0100
+@@ -3,8 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ include \
+ common \
+- libcstring \
+- libcerror \
+ libcsplit \
+ po \
+ manuals \
+@@ -55,8 +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)/libcsplit && $(MAKE) $(AM_MAKEFLAGS)
+ cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)
+
+@@ -73,8 +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)/libcsplit && $(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/libcsplit.git/commitdiff/2c8d330bc53cbece5875579cbf772ff4b461d94b
More information about the pld-cvs-commit
mailing list