- libparserutils-optflags.patch Do not use Werror and do not define _BSD_SOURCE but GNU_SOURCE. (fix factory build) - use std=gnu99 instead of strict c99. - Doxygen should not generate timestamped html docs. OBS-URL: https://build.opensuse.org/request/show/259062 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libparserutils?expand=0&rev=5
121 lines
3.5 KiB
RPMSpec
121 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package libparserutils
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libparserutils
|
|
Version: 0.2.0
|
|
Release: 0
|
|
Summary: A library for building efficient parsers
|
|
License: MIT
|
|
Group: System Environment/Libraries
|
|
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 >= 1.1
|
|
BuildRequires: pkg-config
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Patch: libparserutils-optflags.patch
|
|
|
|
%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 -n libparserutils0
|
|
Summary: A library for building efficient parsers
|
|
Group: System Environment/Libraries
|
|
|
|
%description -n libparserutils0
|
|
LibParserUtils is a library for building efficient parsers, written in
|
|
C. It was developed as part of the NetSurf project.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries
|
|
Requires: libparserutils0 = %{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
|
|
%if 0%{?suse_version} >= 1120
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description doc
|
|
The %{name}-doc package contains documentation files for %{name}.
|
|
|
|
%global make_vars COMPONENT_TYPE=lib-shared PREFIX=%{_prefix} LIBDIR=%{_lib} Q=
|
|
%global build_vars OPTCFLAGS='%{optflags}' OPTLDFLAGS="$RPM_LD_FLAGS"
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -p1
|
|
|
|
%build
|
|
echo 'HTML_TIMESTAMP=NO' >> build/Doxyfile
|
|
make %{?_smp_mflags} %{make_vars} %{build_vars}
|
|
make %{?_smp_mflags} docs %{make_vars}
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot} %{make_vars}
|
|
|
|
%post -n libparserutils0 -p /sbin/ldconfig
|
|
|
|
%postun -n libparserutils0 -p /sbin/ldconfig
|
|
|
|
%check
|
|
make %{?_smp_mflags} test %{make_vars}
|
|
|
|
%files -n libparserutils0
|
|
%defattr(-,root,root)
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/parserutils
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%files doc
|
|
%defattr(-,root,root)
|
|
%doc COPYING README
|
|
%doc build/docs/html
|
|
|
|
%changelog
|