bd245a3
Name:           uriparser
bd245a3
Version:        0.7.1
bd245a3
Release:        6%{?dist}
bd245a3
Summary:        URI parsing library - RFC 3986
bd245a3
bd245a3
Group:          System Environment/Libraries
bd245a3
License:        BSD
bd245a3
URL:            http://%{name}.sourceforge.net/
bd245a3
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
bd245a3
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
bd245a3
BuildRequires:  doxygen, graphviz
bd245a3
%description
bd245a3
Uriparser is a strictly RFC 3986 compliant URI parsing library written
bd245a3
in C. uriparser is cross-platform, fast, supports Unicode and is
bd245a3
licensed under the New BSD license.
bd245a3
bd245a3
%package	devel
bd245a3
Summary:        Development files for %{name}
bd245a3
Group:          Development/Libraries
bd245a3
Requires:       %{name} = %{version}-%{release}
bd245a3
bd245a3
%description    devel
bd245a3
The %{name}-devel package contains libraries and header files for
bd245a3
developing applications that use %{name}.
bd245a3
bd245a3
%prep
bd245a3
%setup -q
bd245a3
sed -i 's/\r//' THANKS
bd245a3
sed -i 's/\r//' COPYING
bd245a3
iconv -f iso-8859-1 -t utf-8 -o THANKS{.utf8,}
bd245a3
mv THANKS{.utf8,}
bd245a3
bd245a3
%build
bd245a3
%configure --disable-static
bd245a3
make %{?_smp_mflags}
bd245a3
bd245a3
# doc folder has separate configure file
bd245a3
cd doc;
bd245a3
# fix for automated autotool calls
bd245a3
touch aclocal.m4 configure Makefile.in
bd245a3
%configure; make %{?_smp_mflags}
bd245a3
bd245a3
%check
bd245a3
make check
bd245a3
bd245a3
%install
bd245a3
rm -rf $RPM_BUILD_ROOT
bd245a3
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
bd245a3
bd245a3
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
bd245a3
bd245a3
%clean
bd245a3
rm -rf $RPM_BUILD_ROOT
bd245a3
bd245a3
%post -p /sbin/ldconfig
bd245a3
bd245a3
%postun -p /sbin/ldconfig
bd245a3
bd245a3
%files
bd245a3
%defattr(-,root,root,-)
bd245a3
%doc THANKS AUTHORS COPYING ChangeLog
bd245a3
%{_libdir}/*.so.*
bd245a3
bd245a3
%files devel
bd245a3
%defattr(-,root,root,-)
bd245a3
%doc doc/html
bd245a3
%{_includedir}/*
bd245a3
%{_libdir}/*.so
bd245a3
bd245a3
%changelog
bd245a3
* Sat Sep 06 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-6
bd245a3
- changed document file handling in spec, used better method - %%doc
bd245a3
bd245a3
* Fri Sep 05 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-5
bd245a3
- fixed group, removed redundant args for %%setup
bd245a3
- included ChangeLog, fixed html folder path in %%files
bd245a3
- fixed automated autotool calls
bd245a3
bd245a3
* Sat Aug 23 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-4
bd245a3
- changed name according to naming guidelines
bd245a3
bd245a3
* Sat Aug 23 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-3
bd245a3
- fixed buildrequires tag
bd245a3
bd245a3
* Sun Aug 10 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-2
bd245a3
- added documentation
bd245a3
bd245a3
* Sat Aug 9 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-1
bd245a3
- Initial build