[libexplain] Initial import (#591365).

Eric Smith brouhaha at fedoraproject.org
Sun Jan 9 02:50:45 UTC 2011


commit 2e5d18b2581621f2bc9203faf9af82c47a10b218
Author: Eric Smith <eric at p1.brouhaha.com>
Date:   Sat Jan 8 18:50:35 2011 -0800

    Initial import (#591365).

 .gitignore                |    1 +
 libexplain-skiptest.patch |  115 +++++++++++++++++++++++++++++++++++++++++++++
 libexplain.spec           |  110 +++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 4 files changed, 227 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..91aac6d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libexplain-0.40.D001.tar.gz
diff --git a/libexplain-skiptest.patch b/libexplain-skiptest.patch
new file mode 100644
index 0000000..6519a42
--- /dev/null
+++ b/libexplain-skiptest.patch
@@ -0,0 +1,115 @@
+diff -up libexplain-0.31.D001/Makefile.in.skiptest libexplain-0.31.D001/Makefile.in
+--- libexplain-0.31.D001/Makefile.in.skiptest	2010-04-30 19:00:59.000000000 -0700
++++ libexplain-0.31.D001/Makefile.in	2010-05-11 19:29:54.000000000 -0700
+@@ -10907,10 +10907,6 @@ t0035a \
+ t0036a \
+ t0037a \
+ t0038a \
+-t0039a \
+-t0040a \
+-t0041a \
+-t0042a \
+ t0043a \
+ t0044a \
+ t0045a \
+@@ -10974,14 +10970,10 @@ t0104a \
+ t0105a \
+ t0107a \
+ t0108a \
+-t0109a \
+-t0110a \
+ t0111a \
+ t0112a \
+ t0113a \
+-t0114a \
+ t0115a \
+-t0116a \
+ t0117a \
+ t0118a \
+ t0119a \
+@@ -10993,7 +10985,6 @@ t0124a \
+ t0125a \
+ t0126a \
+ t0127a \
+-t0128a \
+ t0129a \
+ t0130a \
+ t0131a \
+@@ -11006,7 +10997,6 @@ t0137a \
+ t0138a \
+ t0139a \
+ t0140a \
+-t0141a \
+ t0142a \
+ t0143a \
+ t0144a \
+@@ -11025,7 +11015,6 @@ t0156a \
+ t0157a \
+ t0158a \
+ t0159a \
+-t0160a \
+ t0161a \
+ t0162a \
+ t0163a \
+@@ -11041,7 +11030,6 @@ t0173a \
+ t0174a \
+ t0175a \
+ t0176a \
+-t0177a \
+ t0178a \
+ t0179a \
+ t0180a \
+@@ -11054,8 +11042,6 @@ t0186a \
+ t0187a \
+ t0188a \
+ t0189a \
+-t0190a \
+-t0191a \
+ t0192a \
+ t0193a \
+ t0194a \
+@@ -11075,10 +11061,7 @@ t0207a \
+ t0208a \
+ t0209a \
+ t0210a \
+-t0211a \
+ t0212a \
+-t0213a \
+-t0214a \
+ t0215a \
+ t0216a \
+ t0217a \
+@@ -11130,7 +11113,6 @@ t0262a \
+ t0263a \
+ t0264a \
+ t0265a \
+-t0266a \
+ t0267a \
+ t0268a \
+ t0269a \
+@@ -11139,9 +11121,6 @@ t0271a \
+ t0272a \
+ t0273a \
+ t0274a \
+-t0275a \
+-t0276a \
+-t0277a \
+ t0278a \
+ t0279a \
+ t0280a \
+@@ -11227,7 +11206,6 @@ t0359a \
+ t0360a \
+ t0361a \
+ t0362a \
+-t0363a \
+ t0364a \
+ t0365a \
+ t0366a \
+@@ -11387,7 +11365,6 @@ t0519a \
+ t0520a \
+ t0521a \
+ t0522a \
+-t0523a \
+ t0524a \
+ t0525a \
+ t0526a \
diff --git a/libexplain.spec b/libexplain.spec
new file mode 100644
index 0000000..3500649
--- /dev/null
+++ b/libexplain.spec
@@ -0,0 +1,110 @@
+Name:           libexplain
+Version:        0.40.D001
+Release:        1%{?dist}
+Summary:        Library functions to explain system call errors
+URL:            http://libexplain.sourceforge.net
+
+Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+
+# Some tests fail because getmntent() fails in a mock chroot environment,
+# presumably due to the absence of /etc/mtab.  Skip those tests.
+Patch0:         libexplain-skiptest.patch
+
+License:        LGPLv3+
+Group:          System Environment/Libraries
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:  bison libcap-devel libtool groff gettext
+
+%description
+The libexplain project provides a library which may be used to explain
+Unix and Linux system call errors. This will make your application's
+error messages much more informative to your users.  The library is
+not quite a drop-in replacement for strerror, but it comes close. Each
+system call has a dedicated libexplain function.
+
+The coverage for system calls is being improved all the time. Coverage
+includes 159 system calls and 444 ioctl requests.
+
+%package -n explain
+Summary:        Explains system call error reports
+License:        GPLv3+
+Group:          Development/Tools
+
+%description -n explain
+The explain command is used to decode an error return read from an
+strace(1) listing, or similar.  Because this is being deciphered in a
+different process than the original, the results will be less accurate
+than if the program itself were to use libexplain(3).
+
+%package devel
+Summary:        Development files for libexplain
+License:        LGPLv3+ and GPLv3+
+Group:          Development/Libraries
+Requires:       libexplain = %{version}-%{release}
+Requires:       pkgconfig
+
+%description devel
+Development files for the libexplain library.
+
+%prep
+%setup -q
+
+# Some tests fail because getmntent() fails in a mock chroot environment,
+# presumably due to the absence of /etc/mtab.  Skip those tests.
+%patch -P 0 -p1 -b .skiptest
+
+%build
+./configure --disable-static \
+            --prefix=%{_prefix} \
+            --libdir=%{_libdir}
+            
+make CFLAGS="%{optflags}" \
+     %{?_smp_mflags}
+
+%check
+make check
+
+%install
+rm -rf %{buildroot}
+# The install target is not smp-safe, so don't use smp_mflags.
+make DESTDIR=%{buildroot} \
+     install
+# The shared library has to be executable!
+chmod 755 %{buildroot}%{_libdir}/%{name}.so.*.*.*
+# Get rid of the static library and libtool archives
+rm %{buildroot}%{_libdir}/%{name}.{a,la}
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/%{name}.so.*
+%doc README LICENSE
+
+%files -n explain
+%defattr(-,root,root,-)
+%{_bindir}/explain
+%{_mandir}/man1/*.1.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_mandir}/man3/*.3.*
+%{_includedir}/%{name}/
+%{_libdir}/%{name}.so
+%{_libdir}/pkgconfig/%{name}.pc
+
+%changelog
+* Sun Jan 02 2011 Eric Smith <eric at brouhaha.com> - 0.40.D001-1
+- updated to latest upstream
+- updated based on package review comments
+
+* Tue Sep 07 2010 Eric Smith <eric at brouhaha.com> - 0.38.D001-1
+- updated to latest upstream
+
+* Mon May 10 2010 Eric Smith <eric at brouhaha.com> - 0.31.D001-1
+- initial version
diff --git a/sources b/sources
index e69de29..a7ac9b3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7530e6f5886ffee062f89ff283884ea0  libexplain-0.40.D001.tar.gz


More information about the scm-commits mailing list