Commit 74d4c4ab authored by Hugo Hörnquist's avatar Hugo Hörnquist

Add gumbo.spec.

parents
Name: gumbo-parser
Version: 0.10.1
Release: 0
Summary: An HTML5 parsing library in pure C99
Group: Development/Libraries/HTML
License: Apache-2.0
URL: https://github.com/google/gumbo-parser
Vendor: Google.com
Source: %{url}/archive/v%{version}.tar.gz#/gumbo-parser-%{version}.tar.gz
Prefix: %{_prefix}
Packager: hugo <hugo@lysator.liu.se>
BuildRoot: %{tmppath}/%{name}-root
%description
Gumbo is an implementation of the HTML5 parsing algorithm implemented
as a pure C99 library with no outside dependencies. It's designed to
serve as a building block for other tools and libraries such as
linters, validators, templating languages, and refactoring and
analysis tools.
%prep
%setup
%build
./autogen.sh
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir} --sysconfdir=/etc
make -j
%install
# [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%{_prefix}/include/gumbo.h
%{_prefix}/include/tag_enum.h
%{_prefix}/lib/libgumbo*
%{_prefix}/lib/pkgconfig/gumbo.pc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment