File liburiparser1.spec of Package liburiparser1
#
# spec file for package liburiparser1
#
# Copyright (c) 2018 SUSE LINUX 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/
#
%define pkg_name uriparser
Name: liburiparser1
Version: 0.8.5
Release: 0
Summary: A strictly RFC 3986 compliant URI parsing library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: https://uriparser.github.io
Source: https://github.com/uriparser/uriparser/archive/%{pkg_name}-%{version}.tar.gz
Source1: baselibs.conf
Patch0: uriparser-doxygen.patch
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(libxdot)
%description
uriparser is a strictly RFC 3986 compliant URI parsing library
and supports Unicode.
%package -n uriparse
Summary: A strictly RFC 3986 compliant URI parsing command line tool
License: BSD-3-Clause
Group: Development/Libraries/C and C++
%description -n uriparse
uriparser is a strictly RFC 3986 compliant URI parsing library
and supports Unicode.
uriparse is a command line tool which allows to parse URIs and show how
the liburiparser splits it into components.
%package -n liburiparser-devel
Summary: Development files for a URI parsing library
License: BSD-3-Clause and LGPL-2.1
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: glibc-devel
%description -n liburiparser-devel
uriparser is a strictly RFC 3986 compliant URI parsing library
and supports Unicode.
This subpackage contains the header files for the library.
%prep
%setup -q -n %{pkg_name}-%{pkg_name}-%{version}
%patch0 -p 1
#file is dated in the future..
#find . -type f -exec touch {} +
# This is ridiculous but the patch doesn't apply at all for no reasons
sed -i "s|# .qhp output|HTML_TIMESTAMP=NO|g" doc/Doxyfile.in
%build
autoreconf -fiv
%configure --disable-static --disable-test --docdir=%{_docdir}/%{pkg_name}
make %{?_smp_mflags}
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la
%check
export MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256))
make check
unset MALLOC_CHECK_ MALLOC_PERTURB_
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/liburiparser.so.1*
%files -n uriparse
%defattr(-,root,root)
%{_bindir}/uriparse
%files -n liburiparser-devel
%defattr(-,root,root)
%dir %{_includedir}/%{pkg_name}
%{_includedir}/%{pkg_name}/*.h
%{_libdir}/liburiparser.so
%{_libdir}/pkgconfig/liburiparser.pc
%{_docdir}/%{pkg_name}/html/*
%dir %{_docdir}/%{pkg_name}
%dir %{_docdir}/%{pkg_name}/html
%changelog