Blame SPECS/uriparser.spec

ca91d7
Name:           uriparser
ca91d7
Version:        0.7.5
4b1602
Release:        10%{?dist}
ca91d7
Summary:        URI parsing library - RFC 3986
ca91d7
ca91d7
Group:          System Environment/Libraries
ca91d7
License:        BSD
ca91d7
URL:            http://%{name}.sourceforge.net/
ca91d7
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
ca91d7
Patch0:         uriparser-0.7.5-doc_Makefile_in.patch
4b1602
# Backport of https://github.com/uriparser/uriparser/commit/864f5d4c127def386dd5cc926ad96934b297f04e
4b1602
# Fixes CVE-2018-19198 (rhbz#1652002)
4b1602
Patch1:         uriparser-0.7.5-CVE-2018-19198-fix.patch
4b1602
# Backport of https://github.com/uriparser/uriparser/commit/f76275d4a91b28d687250525d3a0c5509bbd666f
4b1602
# Fixes CVE-2018-19199 (rhbz#1652001)
4b1602
Patch2:         uriparser-0.7.5-CVE-2018-19199-fix.patch
ca91d7
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ca91d7
BuildRequires:  doxygen, graphviz, cpptest-devel
ca91d7
Requires:       cpptest
ca91d7
ca91d7
%description
ca91d7
Uriparser is a strictly RFC 3986 compliant URI parsing library written
ca91d7
in C. uriparser is cross-platform, fast, supports Unicode and is
ca91d7
licensed under the New BSD license.
ca91d7
ca91d7
%package	devel
ca91d7
Summary:        Development files for %{name}
ca91d7
Group:          Development/Libraries
ca91d7
Requires:       %{name} = %{version}-%{release}
ca91d7
ca91d7
%description    devel
ca91d7
The %{name}-devel package contains libraries and header files for
ca91d7
developing applications that use %{name}.
ca91d7
ca91d7
%prep
ca91d7
%setup -q
ca91d7
%patch0 -p1 -b .doc_Makefile_in
4b1602
%patch1 -p1
4b1602
%patch2 -p1
ca91d7
sed -i 's/\r//' THANKS
ca91d7
sed -i 's/\r//' COPYING
ca91d7
iconv -f iso-8859-1 -t utf-8 -o THANKS{.utf8,}
ca91d7
mv THANKS{.utf8,}
ca91d7
ca91d7
%build
ca91d7
%configure --disable-static
ca91d7
cd doc;
ca91d7
ca91d7
# Remove qhelpgenerator dependency, by commenting these lines in
ca91d7
# Doxygen.in
ca91d7
## .qch output
ca91d7
## QCH_FILE = "../uriparser-doc-0.7.5.qch"
ca91d7
## QHG_LOCATION = "qhelpgenerator"
ca91d7
sed -i 's/^# .qch output.*//' Doxyfile.in
ca91d7
sed -i 's/^QCH.*//' Doxyfile.in
ca91d7
sed -i 's/^QHG.*//' Doxyfile.in
ca91d7
ca91d7
%configure; make %{?_smp_mflags}; cd ..
ca91d7
make %{?_smp_mflags}
ca91d7
ca91d7
# doc folder has separate configure file
ca91d7
#cd doc;
ca91d7
# fix for automated autotool calls
ca91d7
#touch aclocal.m4 configure Makefile.in
4b1602
# jkucera: escape %%; this line was commented out, but with no effect as
4b1602
#          %%configure is a multiline macro and macros are expanded first by
4b1602
#          rpm; thus, configure and make were still invoked; escaping %% has a
4b1602
#          side effect that docdir became %%{_datadir}/doc/uriparser-doc
4b1602
#          (./doc/configure sets PACKAGE=uriparser-doc); invoking ./configure
4b1602
#          on the commented line below triggers regenerating Makefiles from
4b1602
#          their Makefile.in templates and hence all @docdir@ occurences are
4b1602
#          substituted by %%{_datadir}/doc/uriparser (./configure sets
4b1602
#          PACKAGE_TARNAME=uriparser)
4b1602
#%%configure; make %%{?_smp_mflags}
ca91d7
ca91d7
%check
ca91d7
make check
ca91d7
ca91d7
%install
ca91d7
rm -rf $RPM_BUILD_ROOT
ca91d7
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
ca91d7
ca91d7
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
4b1602
# jkucera: s/uriparser/uriparser-doc/g (see my note few lines above)
4b1602
mv ${RPM_BUILD_ROOT}%{_datadir}/doc/uriparser-doc/html \
4b1602
 ${RPM_BUILD_ROOT}%{_datadir}/doc/%{name}-%{version}
ca91d7
ca91d7
%clean
ca91d7
rm -rf $RPM_BUILD_ROOT
ca91d7
ca91d7
%post -p /sbin/ldconfig
ca91d7
ca91d7
%postun -p /sbin/ldconfig
ca91d7
ca91d7
%files
ca91d7
%defattr(-,root,root,-)
ca91d7
%doc THANKS AUTHORS COPYING ChangeLog
ca91d7
%{_libdir}/*.so.*
ca91d7
ca91d7
%files devel
ca91d7
%defattr(-,root,root,-)
ca91d7
%doc doc/html
ca91d7
%{_includedir}/*
ca91d7
%{_libdir}/*.so
ca91d7
%{_libdir}/pkgconfig/*.pc
ca91d7
ca91d7
%changelog
4b1602
* Tue Nov 27 2018 Jiri Kucera <jkucera@redhat.com> - 0.7.5-10
4b1602
- Fix CVE-2018-19198, CVE-2018-19199
4b1602
  Fix unescaped %% in a comment
4b1602
  Resolves: #1652002, #1652001
4b1602
46d143
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.7.5-9
46d143
- Mass rebuild 2014-01-24
46d143
46d143
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.7.5-8
46d143
- Mass rebuild 2013-12-27
46d143
ca91d7
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-7
ca91d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ca91d7
ca91d7
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-6
ca91d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ca91d7
ca91d7
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-5
ca91d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ca91d7
ca91d7
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-4
ca91d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ca91d7
ca91d7
* Tue Sep 07 2010 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.5-3
ca91d7
- Fixed FTBFS
ca91d7
ca91d7
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-2
ca91d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ca91d7
ca91d7
* Fri Mar 06 2009 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.5-1
ca91d7
- Upgrade to 0.7.5:
ca91d7
-  Improved docs
ca91d7
-  Test suite
ca91d7
- 0.7.4
ca91d7
-  Cleaned up code and fixed memory leaks
ca91d7
- 0.7.3
ca91d7
-  Builds for Cygwin, minor bug fix
ca91d7
-  Changes in build system.
ca91d7
-  Added: Qt Assistant documentation output
ca91d7
- 0.7.2
ca91d7
-  Improved and cleaned API 
ca91d7
ca91d7
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-7
ca91d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ca91d7
ca91d7
* Sat Sep 06 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-6
ca91d7
- changed document file handling in spec, used better method - %%doc
ca91d7
ca91d7
* Fri Sep 05 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-5
ca91d7
- fixed group, removed redundant args for %%setup
ca91d7
- included ChangeLog, fixed html folder path in %%files
ca91d7
- fixed automated autotool calls
ca91d7
ca91d7
* Sat Aug 23 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-4
ca91d7
- changed name according to naming guidelines
ca91d7
ca91d7
* Sat Aug 23 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-3
ca91d7
- fixed buildrequires tag
ca91d7
ca91d7
* Sun Aug 10 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-2
ca91d7
- added documentation
ca91d7
ca91d7
* Sat Aug 9 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.7.1-1
ca91d7
- Initial build