File liburiparser1.spec of Package liburiparser1

#
# spec file for package liburiparser1 (Version 0.7.2)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           liburiparser1
Url:            http://uriparser.sourceforge.net/
%define pkg_name uriparser
Version:        0.7.2
Release:        6
License:        BSD 3-Clause
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Development/Libraries/C and C++
Summary:        A strictly RFC 3986 compliant URI parsing library
Source:         http://freshmeat.net/redir/uriparser/69213/url_bz2/%{pkg_name}-%{version}.tar.bz2
BuildRequires:  gcc-c++

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



Authors:
--------
    Weijia Song <songweijia@gmail.com>
    Sebastian Pipping <webmaster@hartwork.org>

%package -n liburiparser-devel
License:        BSD 3-Clause; LGPL v2.1 only
Summary:        A strictly RFC 3986 compliant URI parsing library
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version} glibc-devel

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



Authors:
--------
    Weijia Song <songweijia@gmail.com>
    Sebastian Pipping <webmaster@hartwork.org>

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

%build
rm -f acinclude.m4
autoreconf -fiv
CFLAGS="%{optflags}"
CXXFLAGS="%{optflags}"
%if 0%{?suse_version} > 1000
CFLAGS="$CFLAGS -fstack-protector"
CXXFLAGS="$CXXFLAGS -fstack-protector"
%endif
export CFLAGS
export CXXFLAGS
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%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_

%clean
%{__rm} -rf %{buildroot}

%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

%changelog
* Sun Sep 07 2008 schwab@suse.de
- Remove conflicting libtool macros.
* Tue Sep 02 2008 crrodriguez@suse.de
- update to version 0.7.2
  Fixed: Bad cleanup logic in functions
  uriAddBaseUri(..)
  uriRemoveBaseUri(..)
  Previously you needed to call uriFreeUriMembers on return code
  URI_ERROR_MALLOC and only then. So that's why these functions now
  take cleanup off your shoulders. An extra call to uriFreeUriMembers
  from your side is still needed in case of success.
  * Soname: 1:7:0
* Mon Apr 28 2008 crrodriguez@suse.de
- update to version 0.7.1
  * Fixed: Bogus syntax error when parsing URIs with port-like
  passwords, e.g. "http://user:21@host/" (#1948038)
  Thanks to Friedrich Delgado Friedrichs for reporting!
  * Fixed: Parser did not handle trailing slashes correctly in some cases,
  which also made the structures produced from parsing "http://e.com/"
  and "http://e.com" indistinguishable. (#1950126)
  Thanks to Edward Z. Yang for reporting!
* Sat Apr 05 2008 crrodriguez@suse.de
- update to version 0.7.0
  * Added: Dissection and composition of query strings
  * Added: Documentation improvements
  (in|out|inout indicators, addition of \since and \see)
  * Changed: Code::Blocks project files updated from file format
  version 1.4 to 1.6, which is produced by Code::Blocks 8.02
  * Added: Code::Blocks workspace file
  * Changed: Soname set to 1:5:0
* Wed Mar 12 2008 crrodriguez@suse.de
- fix buildRequires
* Tue Feb 26 2008 crrodriguez@suse.de
- version 0.6.4
  * Added: Syntax-based normalization can now handle relative URIs,
  e.g. "../../a/b/.././c" is normalized to "../../a/c"
  * Fixed: Normalization code could free foreign memory
  * Fixed: Normalization processed the path segment even when asked not to
  * Fixed: Documentation bug not requiring enough memory for the output
  buffer when converting a relative file URI back to a filename
  * Changed: Soname set to 1:4:0
* Mon Feb 11 2008 crrodriguez@suse.de
- version 0.6.3
- Fixed: Two major crash bugs in normalization code
- Added: Brief usage tutorial
- Changed: Soname set to 1:3:0
* Mon Feb 04 2008 crrodriguez@suse.de
- version 0.6.1
* Thu Oct 18 2007 crrodriguez@suse.de
- update to version 0.6.0 , liburiparse1
* Thu Aug 16 2007 crrodriguez@suse.de
- first package for the OBS