[packages/libcsystem] - new
qboosh
qboosh at pld-linux.org
Wed Jan 21 17:37:32 CET 2015
commit a1532e89e17cf64153320ebdfced3358e7374c0f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jan 21 17:39:15 2015 +0100
- new
libcsystem-system-libs.patch | 52 ++++++++++++++++++++
libcsystem.spec | 112 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 164 insertions(+)
---
diff --git a/libcsystem.spec b/libcsystem.spec
new file mode 100644
index 0000000..9ef4089
--- /dev/null
+++ b/libcsystem.spec
@@ -0,0 +1,112 @@
+Summary: Library to support cross-platform C system functions
+Summary(pl.UTF-8): Biblioteka wspierająca wieloplatformowe funkcje systemowe w C
+Name: libcsystem
+Version: 20150101
+Release: 1
+License: LGPL v3+
+Group: Libraries
+Source0: https://github.com/libyal/libcsystem/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 22ffa008d350a3279250238e2225723b
+Patch0: %{name}-system-libs.patch
+URL: https://github.com/libyal/libcsystem/
+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
+libcsystem is a library to support cross-platform C system functions.
+
+%description -l pl.UTF-8
+libcsystem to biblioteka wspierająca wieloplatformowe funkcje
+systemowe w C.
+
+%package devel
+Summary: Header files for libcsystem library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcsystem
+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 libcsystem library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libcsystem.
+
+%package static
+Summary: Static libcsystem library
+Summary(pl.UTF-8): Statyczna biblioteka libcsystem
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libcsystem library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libcsystem.
+
+%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}/libcsystem.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}/libcsystem.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcsystem.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcsystem.so
+%{_includedir}/libcsystem
+%{_includedir}/libcsystem.h
+%{_pkgconfigdir}/libcsystem.pc
+%{_mandir}/man3/libcsystem.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcsystem.a
diff --git a/libcsystem-system-libs.patch b/libcsystem-system-libs.patch
new file mode 100644
index 0000000..42ab7b1
--- /dev/null
+++ b/libcsystem-system-libs.patch
@@ -0,0 +1,52 @@
+--- libcsystem-20150101/configure.ac.orig 2015-01-20 21:45:57.402570586 +0100
++++ libcsystem-20150101/configure.ac 2015-01-21 17:28:22.336259976 +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([libcsystem/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libcsystem-20150101/Makefile.am.orig 2015-01-20 21:45:56.849237277 +0100
++++ libcsystem-20150101/Makefile.am 2015-01-21 17:28:44.162925727 +0100
+@@ -3,11 +3,6 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ include \
+ common \
+- libcstring \
+- libcerror \
+- libclocale \
+- libcnotify \
+- libuna \
+ libcsystem \
+ 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)/libcsystem && $(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)/libcsystem && $(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/libcsystem.git/commitdiff/a1532e89e17cf64153320ebdfced3358e7374c0f
More information about the pld-cvs-commit
mailing list