File liburiparser1.spec of Package liburiparser1

#
# spec file for package liburiparser1
#
# Copyright (c) 2013 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:           liburiparser1
Url:            http://uriparser.sourceforge.net/
%define pkg_name uriparser
Version:        0.7.5
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A strictly RFC 3986 compliant URI parsing library
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
Source:         http://freshmeat.net/redir/uriparser/69213/url_bz2/%{pkg_name}-%{version}.tar.bz2
Patch0:         uriparser-0.7.5-doxygen.patch
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  pkg-config

%description
uriparser is a strictly RFC 3986 compliant URI parsing library. It is
cross-platform, fast, and supports Unicode.

%package -n liburiparser-devel
Summary:        A strictly RFC 3986 compliant 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. It is
cross-platform, fast, and supports Unicode.

%prep
%setup -q -n %{pkg_name}-%{version}
%patch0 -p 1
#file is dated in the future..
#find . -type f -exec touch {} +

%build
%configure --disable-static --with-pic --disable-test --docdir=%{_docdir}/%{pkg_name}
make %{?_smp_mflags}

%install
%{__make} install DESTDIR=%{buildroot}
%{__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 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
openSUSE Build Service is sponsored by