[packages/libuna] - new
qboosh
qboosh at pld-linux.org
Tue Jan 20 21:27:52 CET 2015
commit c1e0754b0c99084a18e057715195544d0c610ef4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jan 20 21:29:34 2015 +0100
- new
libuna-system-libs.patch | 79 ++++++++++++++++++++++++++
libuna.spec | 141 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 220 insertions(+)
---
diff --git a/libuna.spec b/libuna.spec
new file mode 100644
index 0000000..eae80bf
--- /dev/null
+++ b/libuna.spec
@@ -0,0 +1,141 @@
+#
+# Conditional build:
+%bcond_without tools # unatools (disable for bootstrap)
+
+Summary: Library to support Unicode and ASCII (byte stream) conversions
+Summary(pl.UTF-8): Biblioteka obsługująca przekształcenia Unicode i ASCII (strumieni bajtów)
+Name: libuna
+Version: 20150101
+Release: 1
+License: LGPL v3+
+Group: Libraries
+Source0: https://github.com/libyal/libuna/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 36e8c89a1a8e516b65359ed6340fa455
+Patch0: %{name}-system-libs.patch
+URL: https://github.com/libyal/libuna/
+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
+%if %{with tools}
+BuildRequires: libcdatetime-devel >= 20141018
+BuildRequires: libclocale-devel >= 20120425
+BuildRequires: libcnotify-devel >= 20120425
+BuildRequires: libcfile-devel >= 20140503
+BuildRequires: libcsystem-devel >= 20141018
+%endif
+Requires: libcerror >= 20120425
+Requires: libcstring >= 20120425
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libuna is a library to support Unicode and ASCII (byte stream)
+conversions.
+
+%description -l pl.UTF-8
+libuna to biblioteka obsługująca przekształcenia Unicode i ASCII
+(strumieni bajtów).
+
+%package devel
+Summary: Header files for libuna library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libuna
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libcerror-devel >= 20120425
+Requires: libcstring-devel >= 20120425
+
+%description devel
+Header files for libuna library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libuna.
+
+%package static
+Summary: Static libuna library
+Summary(pl.UTF-8): Statyczna biblioteka libuna
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libuna library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libuna.
+
+%package tools
+Summary: Unicode and ASCII (byte stream) conversion utilities
+Summary(pl.UTF-8): Narzędzia do konwersji Unicode i ASCII (strumieni bajtów)
+Group: Applications/Text
+Requires: %{name} = %{version}-%{release}
+Requires: libcdatetime >= 20141018
+Requires: libclocale >= 20120425
+Requires: libcnotify >= 20120425
+Requires: libcfile >= 20140503
+Requires: libcsystem >= 20141018
+
+%description tools
+Unicode and ASCII (byte stream) conversion utilities.
+
+%description tools -l pl.UTF-8
+Narzędzia do konwersji Unicode i ASCII (strumieni bajtów).
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__gettextize}
+%{__sed} -i -e 's/ po\/Makefile.in//' configure.ac
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ %{!?with_tools:--without-tools}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libuna.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libuna.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libuna.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libuna.so
+%{_includedir}/libuna
+%{_includedir}/libuna.h
+%{_pkgconfigdir}/libuna.pc
+%{_mandir}/man3/libuna.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libuna.a
+
+%if %{with tools}
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/unabase
+%attr(755,root,root) %{_bindir}/unaexport
+%{_mandir}/man1/unaexport.1*
+%endif
diff --git a/libuna-system-libs.patch b/libuna-system-libs.patch
new file mode 100644
index 0000000..923b4e6
--- /dev/null
+++ b/libuna-system-libs.patch
@@ -0,0 +1,79 @@
+--- libuna-20150101/configure.ac.orig 2015-01-19 20:46:13.619680184 +0100
++++ libuna-20150101/configure.ac 2015-01-20 20:48:27.142715380 +0100
+@@ -43,6 +43,9 @@ AC_C_CONST
+ AC_C_INLINE
+ AC_C_VOLATILE
+
++AC_ARG_WITH([tools], [AS_HELP_STRING([--without-tools], [Build without tools])], [with_tools=$withval], [with_tools=yes])
++AM_CONDITIONAL([WITH_TOOLS], [test $with_tools = yes])
++
+ dnl Check if WINAPI support should be enabled
+ AX_COMMON_CHECK_ENABLE_WINAPI
+
+@@ -154,14 +157,7 @@ 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([libuna/Makefile])
+-AC_CONFIG_FILES([libcdatetime/Makefile])
+-AC_CONFIG_FILES([libclocale/Makefile])
+-AC_CONFIG_FILES([libcnotify/Makefile])
+-AC_CONFIG_FILES([libcfile/Makefile])
+-AC_CONFIG_FILES([libcsystem/Makefile])
+ AC_CONFIG_FILES([unatools/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libuna-20150101/Makefile.am.orig 2015-01-01 15:58:06.000000000 +0100
++++ libuna-20150101/Makefile.am 2015-01-20 20:57:26.452692747 +0100
+@@ -3,21 +3,17 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ include \
+ common \
+- libcstring \
+- libcerror \
+ libuna \
+- libcdatetime \
+- libclocale \
+- libcnotify \
+- libcfile \
+- libcsystem \
+- unatools \
+ po \
+ documents \
+ manuals \
+ tests \
+ msvscpp
+
++if WITH_TOOLS
++SUBDIRS += unatools
++endif
++
+ DPKG_FILES = \
+ dpkg/changelog \
+ dpkg/changelog.in \
+@@ -63,8 +59,6 @@ lib: library
+
+ library:
+ cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS)
+- cd $(srcdir)/libcstring && $(MAKE) $(AM_MAKEFLAGS)
+- cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS)
+ cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS)
+ cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS)
+
+@@ -81,14 +75,7 @@ distclean: clean
+ done && test -z "$$fail"
+
+ splint:
+- (cd $(srcdir)/libcstring && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcerror && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/libuna && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcdatetime && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libclocale && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcnotify && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcfile && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcsystem && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/unatools && $(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/libuna.git/commitdiff/c1e0754b0c99084a18e057715195544d0c610ef4
More information about the pld-cvs-commit
mailing list