78cd9b
%global         _hardened_build 1
78cd9b
7ac792
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
7ac792
bd245a
Name:           uriparser
88ec08
Version:        0.8.4
93bf65
Release:        2%{?dist}
bd245a
Summary:        URI parsing library - RFC 3986
bd245a
bd245a
Group:          System Environment/Libraries
bd245a
License:        BSD
bd245a
URL:            http://%{name}.sourceforge.net/
322709
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
de5b03
BuildRequires:  doxygen, graphviz, cpptest-devel
de5b03
Requires:       cpptest
de5b03
bd245a
%description
bd245a
Uriparser is a strictly RFC 3986 compliant URI parsing library written
bd245a
in C. uriparser is cross-platform, fast, supports Unicode and is
bd245a
licensed under the New BSD license.
bd245a
bd245a
%package	devel
bd245a
Summary:        Development files for %{name}
bd245a
Group:          Development/Libraries
bd245a
Requires:       %{name} = %{version}-%{release}
bd245a
bd245a
%description    devel
bd245a
The %{name}-devel package contains libraries and header files for
bd245a
developing applications that use %{name}.
bd245a
93bf65
%package	doc
93bf65
Summary:	HTML documentation for %{name}
93bf65
Group:		Development/Libraries
93bf65
Requires:       %{name} = %{version}-%{release}
93bf65
93bf65
%description	doc
93bf65
The %{name}-doc package contains HTML documentation files for %{name}.
93bf65
bd245a
%prep
bd245a
%setup -q
bd245a
sed -i 's/\r//' THANKS
bd245a
sed -i 's/\r//' COPYING
bd245a
iconv -f iso-8859-1 -t utf-8 -o THANKS{.utf8,}
bd245a
mv THANKS{.utf8,}
bd245a
bd245a
%build
de5b03
322709
# Remove qhelpgenerator dependency by commenting Doxygen.in:
322709
# sed -i 's/GENERATE_QHP\ =\ yes/GENERATE_QHP\ =\ no/g' Doxyfile.in
322709
sed -i 's/GENERATE_QHP\ =\ yes/GENERATE_QHP\ =\ no/g' doc/Doxyfile.in
de5b03
3290df
%configure --disable-static 
3290df
3290df
# disable rpath 
3290df
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
3290df
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
bd245a
322709
# Generate docs first
322709
cd doc;
322709
make %{?_smp_mflags}
322709
cd ..
322709
# Build
322709
make %{?_smp_mflags}
bd245a
bd245a
%check
3290df
LD_LIBRARY_PATH=".libs" make check
bd245a
bd245a
%install
bd245a
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
bd245a
078c91
find $RPM_BUILD_ROOT -name '*.la' -delete
078c91
7ac792
# fcami - update for https://fedoraproject.org/wiki/Changes/UnversionedDocdirs
7ac792
if [ ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name} != ${RPM_BUILD_ROOT}%{_pkgdocdir} ]
7ac792
  then mv ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name}/html ${RPM_BUILD_ROOT}%{_pkgdocdir}
7ac792
fi
bd245a
bd245a
bd245a
%post -p /sbin/ldconfig
bd245a
bd245a
%postun -p /sbin/ldconfig
bd245a
bd245a
%files
bd245a
%doc THANKS AUTHORS COPYING ChangeLog
3290df
%{_bindir}/uriparse
bd245a
%{_libdir}/*.so.*
bd245a
93bf65
%files doc
93bf65
%{_docdir}/%{name}/html
93bf65
bd245a
%files devel
bd245a
%doc doc/html
bd245a
%{_includedir}/*
bd245a
%{_libdir}/*.so
de5b03
%{_libdir}/pkgconfig/*.pc
bd245a
bd245a
%changelog
93bf65
* Sun Mar 27 2016 François Cami <fcami@fedoraproject.org> - 0.8.4-2
93bf65
- Add -doc subpackage.
93bf65
88ec08
* Wed Mar 02 2016 François Cami <fcami@fedoraproject.org> - 0.8.4-1
88ec08
- Update to latest upstream.
88ec08
7dc72b
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
7dc72b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7dc72b
f8e991
* Sun Jul 12 2015 François Cami <fcami@fedoraproject.org> - 0.8.2-1
f8e991
- Update to latest upstream.
f8e991
25a269
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-5
25a269
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
25a269
078c91
* Thu Jan 29 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.8.1-4
078c91
- Modernise spec
078c91
6acb59
* Wed Jan 28 2015 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 0.8.1-3
6acb59
- Make uriCompareRangeA() return -1/0/1 like tests assume it does
6acb59
  so package will build on aarch64.
6acb59
78cd9b
* Fri Jan 09 2015 François Cami <fcami@fedoraproject.org> - 0.8.1-2
78cd9b
- Use PIC. 
78cd9b
cdd673
* Mon Jan 05 2015 François Cami <fcami@fedoraproject.org> - 0.8.1-1
cdd673
- Update to latest upstream.
cdd673
063ffd
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
063ffd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
063ffd
1bdc6d
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
1bdc6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1bdc6d
3290df
* Fri Sep 06 2013 François Cami <fcami@fedoraproject.org> - 0.8.0-1
3290df
- Update to latest upstream.
3290df
4aa9ea
* Fri Sep 06 2013 François Cami <fcami@fedoraproject.org> - 0.7.9-1
4aa9ea
- Update to latest upstream.
4aa9ea
7ac792
* Tue Aug 06 2013 François Cami <fcami@fedoraproject.org> - 0.7.8-2
4aa9ea
- Fix FTBS due to https://fedoraproject.org/wiki/Changes/UnversionedDocdirs
7ac792
322709
* Tue Jul 30 2013 François Cami <fcami@fedoraproject.org> - 0.7.8-1
322709
- Update to 0.7.8
322709
557809
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-7
557809
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
557809
e8c862
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-6
e8c862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e8c862
6716bb
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-5
6716bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6716bb
5bed62
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-4
5bed62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5bed62
2439d3
* Tue Sep 07 2010 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.5-3
2439d3
- Fixed FTBFS
2439d3
c4c967
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-2
c4c967
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c4c967
de5b03
* Fri Mar 06 2009 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.5-1
de5b03
- Upgrade to 0.7.5:
de5b03
-  Improved docs
de5b03
-  Test suite
de5b03
- 0.7.4
de5b03
-  Cleaned up code and fixed memory leaks
de5b03
- 0.7.3
de5b03
-  Builds for Cygwin, minor bug fix
de5b03
-  Changes in build system.
de5b03
-  Added: Qt Assistant documentation output
de5b03
- 0.7.2
de5b03
-  Improved and cleaned API 
de5b03
f4c40e
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-7
f4c40e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f4c40e
bd245a
* Sat Sep 06 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-6
bd245a
- changed document file handling in spec, used better method - %%doc
bd245a
bd245a
* Fri Sep 05 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-5
bd245a
- fixed group, removed redundant args for %%setup
bd245a
- included ChangeLog, fixed html folder path in %%files
bd245a
- fixed automated autotool calls
bd245a
bd245a
* Sat Aug 23 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-4
bd245a
- changed name according to naming guidelines
bd245a
bd245a
* Sat Aug 23 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-3
bd245a
- fixed buildrequires tag
bd245a
bd245a
* Sun Aug 10 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-2
bd245a
- added documentation
bd245a
bd245a
* Sat Aug 9 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-1
bd245a
- Initial build