Blame libparserutils.spec

0ee344f
Name: libparserutils
0ee344f
Version: 0.1.2
d49725a
Release: 3%{?dist}
0ee344f
Summary: A library for building efficient parsers
0ee344f
0ee344f
Group: System Environment/Libraries
0ee344f
License: MIT
0ee344f
URL: http://www.netsurf-browser.org/projects/libparserutils/
0ee344f
Source: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
0ee344f
0ee344f
BuildRequires: doxygen
0ee344f
BuildRequires: netsurf-buildsystem
01c77c4
BuildRequires: pkgconfig(check)
0ee344f
d49725a
Patch0: 0001-add-support-for-multilib.patch
d49725a
0ee344f
%description
0ee344f
LibParserUtils is a library for building efficient parsers, written in
0ee344f
C. It was developed as part of the NetSurf project.
0ee344f
0ee344f
Features:
0ee344f
* No mandatory dependencies (iconv() implementation optional for
0ee344f
  enhanced charset support)
0ee344f
* A number of built-in character set converters
0ee344f
* Mapping of character set names to/from MIB enum values
0ee344f
* UTF-8 and UTF-16 (host endian) support functions
0ee344f
* Various simple data structures (resizeable buffer, stack, vector)
0ee344f
* A UTF-8 input stream
0ee344f
* Simple C API
0ee344f
* Portable
0ee344f
0ee344f
LibParserUtils has the following built-in charset converters:
0ee344f
* UTF-8
0ee344f
* UTF-16 (platform-native endian)
0ee344f
* ISO-8859-n
0ee344f
* Windows-125n
0ee344f
* US-ASCII
0ee344f
0ee344f
%package devel
0ee344f
Summary: Development files for %{name}
0ee344f
Group: Development/Libraries
0ee344f
Requires: %{name}%{?_isa} = %{version}-%{release}
0ee344f
0ee344f
%description devel
0ee344f
The %{name}-devel package contains libraries and header files for
0ee344f
developing applications that use %{name}.
0ee344f
0ee344f
%package doc
0ee344f
Summary: Documentation of %{name} API
0ee344f
Group: Documentation
0ee344f
BuildArch: noarch
0ee344f
0ee344f
%description doc
0ee344f
The %{name}-doc package contains documentation files for %{name}.
0ee344f
d49725a
%global make_vars COMPONENT_TYPE=lib-shared PREFIX=/usr LIBDIR=%{_lib} Q=
e8048ae
%global build_vars OPTCFLAGS='%{optflags}' OPTLDFLAGS="$RPM_LD_FLAGS"
0ee344f
0ee344f
%prep
5962bf2
%autosetup -n %{name}-%{version} -p1
0ee344f
0ee344f
%build
e8048ae
make %{?_smp_mflags} %{make_vars} %{build_vars}
0ee344f
make %{?_smp_mflags} docs %{make_vars}
0ee344f
0ee344f
%install
0ee344f
make install DESTDIR=%{buildroot} %{make_vars}
0ee344f
0ee344f
%post -p /sbin/ldconfig
0ee344f
%postun -p /sbin/ldconfig
0ee344f
0ee344f
%check
e8048ae
make %{?_smp_mflags} test %{make_vars} %{build_vars}
0ee344f
0ee344f
%files
0ee344f
%doc COPYING README
0ee344f
%{_libdir}/%{name}.so.*
0ee344f
0ee344f
%files devel
0ee344f
%{_includedir}/parserutils
0ee344f
%{_libdir}/%{name}.so
0ee344f
%{_libdir}/pkgconfig/%{name}.pc
0ee344f
0ee344f
%files doc
0ee344f
%doc COPYING
0ee344f
%doc build/docs/html
0ee344f
0ee344f
%changelog
d49725a
* Mon Jan 13 2014 David Tardon <dtardon@redhat.com> - 0.1.2-3
d49725a
- fix libparserutils.pc
d49725a
2c30e4b
* Tue Jan 07 2014 David Tardon <dtardon@redhat.com> - 0.1.2-2
2c30e4b
- build with correct flags
2c30e4b
0ee344f
* Wed Dec 25 2013 David Tardon <dtardon@redhat.com> - 0.1.2-1
0ee344f
- initial import