[libparserutils] initial import

David Tardon dtardon at fedoraproject.org
Mon Jan 6 14:00:10 UTC 2014


commit 0ee344fd01ee8b1b757007c6c71e21634f51cb7b
Author: David Tardon <dtardon at redhat.com>
Date:   Mon Jan 6 14:51:13 2014 +0100

    initial import

 .gitignore          |    1 +
 libparserutils.spec |   89 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a01c8c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libparserutils-0.1.2-src.tar.gz
diff --git a/libparserutils.spec b/libparserutils.spec
new file mode 100644
index 0000000..cfd1dd4
--- /dev/null
+++ b/libparserutils.spec
@@ -0,0 +1,89 @@
+Name: libparserutils
+Version: 0.1.2
+Release: 1%{?dist}
+Summary: A library for building efficient parsers
+
+Group: System Environment/Libraries
+License: MIT
+URL: http://www.netsurf-browser.org/projects/libparserutils/
+Source: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
+
+BuildRequires: check-devel
+BuildRequires: doxygen
+BuildRequires: netsurf-buildsystem
+
+%description
+LibParserUtils is a library for building efficient parsers, written in
+C. It was developed as part of the NetSurf project.
+
+Features:
+* No mandatory dependencies (iconv() implementation optional for
+  enhanced charset support)
+* A number of built-in character set converters
+* Mapping of character set names to/from MIB enum values
+* UTF-8 and UTF-16 (host endian) support functions
+* Various simple data structures (resizeable buffer, stack, vector)
+* A UTF-8 input stream
+* Simple C API
+* Portable
+
+LibParserUtils has the following built-in charset converters:
+* UTF-8
+* UTF-16 (platform-native endian)
+* ISO-8859-n
+* Windows-125n
+* US-ASCII
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package doc
+Summary: Documentation of %{name} API
+Group: Documentation
+BuildArch: noarch
+
+%description doc
+The %{name}-doc package contains documentation files for %{name}.
+
+%global make_vars COMPONENT_TYPE=lib-shared PREFIX=/usr Q=
+
+%prep
+%setup -q -n %{name}-%{version}
+
+sed -i -e s@/lib/@/%{_lib}/@ -e s@/lib:@/%{_lib}:@ Makefile %{name}.pc.in
+
+%build
+make %{?_smp_mflags} %{make_vars}
+make %{?_smp_mflags} docs %{make_vars}
+
+%install
+make install DESTDIR=%{buildroot} %{make_vars}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%check
+make %{?_smp_mflags} test %{make_vars}
+
+%files
+%doc COPYING README
+%{_libdir}/%{name}.so.*
+
+%files devel
+%{_includedir}/parserutils
+%{_libdir}/%{name}.so
+%{_libdir}/pkgconfig/%{name}.pc
+
+%files doc
+%doc COPYING
+%doc build/docs/html
+
+%changelog
+* Wed Dec 25 2013 David Tardon <dtardon at redhat.com> - 0.1.2-1
+- initial import
diff --git a/sources b/sources
index e69de29..1e0960a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+11c2b4ff17406b57dcb718d4fad022bb  libparserutils-0.1.2-src.tar.gz


More information about the scm-commits mailing list