Blame SPECS/http-parser.spec

4408c0
Name:           http-parser
4408c0
Version:        2.9.4
4408c0
Release:        6%{?dist}
4408c0
Summary:        HTTP request/response parser for C
4408c0
4408c0
License:        MIT
4408c0
URL:            https://github.com/nodejs/http-parser
4408c0
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
4408c0
# https://github.com/nodejs/http-parser/pull/483
4408c0
Patch0001:      0001-url-treat-empty-port-as-default.patch
4408c0
4408c0
BuildRequires:  meson
4408c0
BuildRequires:  gcc
4408c0
4408c0
%description
4408c0
This is a parser for HTTP messages written in C. It parses both requests and
4408c0
responses. The parser is designed to be used in performance HTTP applications.
4408c0
It does not make any syscalls nor allocations, it does not buffer data, it can
4408c0
be interrupted at anytime. Depending on your architecture, it only requires
4408c0
about 40 bytes of data per message stream (in a web server that is per
4408c0
connection).
4408c0
4408c0
%package devel
4408c0
Summary:        Development headers and libraries for http-parser
4408c0
Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
4408c0
4408c0
%description devel
4408c0
Development headers and libraries for http-parser.
4408c0
4408c0
%prep
4408c0
%autosetup -p1
4408c0
%ifarch %{arm}
4408c0
# https://github.com/nodejs/http-parser/issues/507
4408c0
sed -i -e "/sizeof(http_parser)/d" test.c
4408c0
%endif
4408c0
# TODO: try to send upstream?
4408c0
cat > meson.build << EOF
4408c0
project('%{name}', 'c', version : '%{version}')
4408c0
install_headers('http_parser.h')
4408c0
foreach x : [['http_parser',        ['-DHTTP_PARSER_STRICT=0']],
4408c0
             ['http_parser_strict', ['-DHTTP_PARSER_STRICT=1']]]
4408c0
  lib = library(x.get(0), 'http_parser.c',
4408c0
                c_args : x.get(1),
4408c0
                version : '%{version}',
4408c0
                install : true)
4408c0
  test('test-@0@'.format(x.get(0)),
4408c0
       executable('test-@0@'.format(x.get(0)), 'test.c',
4408c0
                  c_args : x.get(1),
4408c0
                  link_with : lib),
4408c0
       timeout : 60)
4408c0
endforeach
4408c0
EOF
4408c0
4408c0
%build
4408c0
%meson
4408c0
%meson_build
4408c0
4408c0
%install
4408c0
%meson_install
4408c0
4408c0
%check
4408c0
%meson_test
4408c0
4408c0
%ldconfig_scriptlets
4408c0
4408c0
%files
4408c0
%license LICENSE-MIT
4408c0
%doc AUTHORS README.md
4408c0
%{_libdir}/libhttp_parser.so.*
4408c0
%{_libdir}/libhttp_parser_strict.so.*
4408c0
4408c0
%files devel
4408c0
%{_includedir}/http_parser.h
4408c0
%{_libdir}/libhttp_parser.so
4408c0
%{_libdir}/libhttp_parser_strict.so
4408c0
4408c0
%changelog
4408c0
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.9.4-6
4408c0
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
4408c0
  Related: rhbz#1991688
4408c0
4408c0
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.9.4-5
4408c0
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
4408c0
4408c0
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.4-4
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4408c0
4408c0
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.4-3
4408c0
- Second attempt - Rebuilt for
4408c0
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4408c0
4408c0
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.4-2
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4408c0
4408c0
* Wed Apr 15 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.9.4-1
4408c0
- Update to 2.9.4
4408c0
4408c0
* Mon Mar 02 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.9.3-2
4408c0
- Include patch to work with colon but no port
4408c0
4408c0
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-3
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4408c0
4408c0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-2
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4408c0
4408c0
* Mon Apr 22 2019 Stephen Gallagher <sgallagh@redhat.com> - 2.9.2-1
4408c0
- Update to 2.9.2
4408c0
4408c0
* Tue Apr 16 2019 Adam Williamson <awilliam@redhat.com> - 2.9.1-2
4408c0
- Rebuild with Meson fix for #1699099
4408c0
4408c0
* Thu Apr 11 2019 Stephen Gallagher <sgallagh@redhat.com> - 2.9.1-1
4408c0
- Update to 2.9.1
4408c0
4408c0
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-2
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4408c0
4408c0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-2
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4408c0
4408c0
* Mon Apr 02 2018 Stephen Gallagher <sgallagh@redhat.com> - 2.8.1-1
4408c0
- Update to 2.8.1
4408c0
4408c0
* Sat Feb 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.8.0-1
4408c0
- Update to 2.8.0
4408c0
- Switch to meson buildsystem
4408c0
4408c0
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-9
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4408c0
4408c0
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.7.1-8
4408c0
- Switch to %%ldconfig_scriptlets
4408c0
4408c0
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-7
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4408c0
4408c0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-6
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4408c0
4408c0
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-5
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4408c0
4408c0
* Mon Nov 21 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.7.1-4
4408c0
- Use CMake buildsystem
4408c0
4408c0
* Tue Oct 25 2016 Nathaniel McCallum <npmccallum@redhat.com> - 2.7.1-3
4408c0
- Add (upstreamed) status code patch
4408c0
4408c0
* Tue Aug 16 2016 Stephen Gallagher <sgallagh@redhat.com> - 2.7.1-2
4408c0
- Upgrade to version 2.7.1
4408c0
4408c0
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4408c0
4408c0
* Tue Dec 01 2015 Stephen Gallagher <sgallagh@redhat.com> 2.6.0-1
4408c0
- Upgrade to version 2.6.0
4408c0
- Change to new upstream at https://github.com/nodejs/http-parser/
4408c0
4408c0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-9.20121128gitcd01361
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4408c0
4408c0
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.0-8.20121128gitcd01361
4408c0
- Rebuilt for GCC 5 C++11 ABI change
4408c0
4408c0
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-7.20121128gitcd01361
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4408c0
4408c0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-6.20121128gitcd01361
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4408c0
4408c0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-5.20121128gitcd01361
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4408c0
4408c0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4.20121128gitcd01361
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4408c0
4408c0
* Sun Dec 02 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.0-3.20121128gitcd01361
4408c0
- latest git snapshot
4408c0
- fixes buffer overflow in tests
4408c0
4408c0
* Tue Nov 27 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.0-2.20121110git245f6f0
4408c0
- latest git snapshot
4408c0
- fixes tests
4408c0
- use SMP make flags
4408c0
- build as Release instead of Debug
4408c0
- ship new strict variant
4408c0
4408c0
* Sat Oct 13 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.0-1
4408c0
- new upstream release 2.0
4408c0
- migrate to GYP buildsystem
4408c0
4408c0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4408c0
4408c0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4408c0
4408c0
* Mon Aug 22 2011 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.0-1
4408c0
- New upstream release 1.0
4408c0
- Remove patches, no longer needed for nodejs
4408c0
- Fix typo in -devel description
4408c0
- use github tarball instead of checkout
4408c0
4408c0
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-6.20100911git
4408c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4408c0
4408c0
* Tue Jan 11 2011 Lubomir Rintel <lkundrak@v3.sk> - 0.3-5.20100911git
4408c0
- Add support for methods used by node.js
4408c0
4408c0
* Thu Nov  4 2010 Dan Horák <dan[at]danny.cz> - 0.3-4.20100911git
4408c0
- build with -fsigned-char
4408c0
4408c0
* Wed Sep 29 2010 jkeating - 0.3-3.20100911git
4408c0
- Rebuilt for gcc bug 634757
4408c0
4408c0
* Mon Sep 20 2010 Lubomir Rintel <lkundrak@v3.sk> - 0.3-2.20100911git
4408c0
- Call ldconfig (Peter Lemenkov)
4408c0
4408c0
* Fri Sep 17 2010 Lubomir Rintel <lkundrak@v3.sk> - 0.3-1.20100911git
4408c0
- Initial packaging
4408c0