Blame SPECS/http-parser.spec

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