Compare commits

..

No commits in common. "rawhide" and "f26" have entirely different histories.
rawhide ... f26

5 changed files with 27 additions and 265 deletions

3
.gitignore vendored
View File

@ -1,4 +1 @@
/http-media-0.7.1.1.tar.gz
/http-media-0.7.1.2.tar.gz
/http-media-0.7.1.3.tar.gz
/http-media-0.8.0.0.tar.gz

View File

@ -1,62 +0,0 @@
* Thu Feb 16 2023 Jens Petersen <petersen@redhat.com> - 0.8.0.0-10
- refresh to cabal-rpm-2.1.0 with SPDX migration
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 17 2022 Jens Petersen <petersen@redhat.com> - 0.8.0.0-8
- rebuild
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Aug 06 2021 Jens Petersen <petersen@redhat.com> - 0.8.0.0-6
- rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 17 2020 Jens Petersen <petersen@redhat.com> - 0.8.0.0-2
- refresh to cabal-rpm-2.0.6
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 0.8.0.0-1
- update to 0.8.0.0
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Aug 02 2019 Jens Petersen <petersen@redhat.com> - 0.7.1.3-3
- add doc and prof subpackages (cabal-rpm-1.0.0)
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Feb 21 2019 Jens Petersen <petersen@redhat.com> - 0.7.1.3-1
- update to 0.7.1.3
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.7.1.2-3
- refresh to cabal-rpm-0.13
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 0.7.1.2-1
- update to 0.7.1.2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 0.7.1.1-2
- rebuild
* Fri Sep 29 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.7.1.1-1
- spec file generated by cabal-rpm-0.11.2

View File

@ -1,37 +1,31 @@
# generated by cabal-rpm-2.1.0
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
# generated by cabal-rpm-0.11.2
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name http-media
%global pkgver %{pkg_name}-%{version}
# testsuite missing deps: test-framework test-framework-quickcheck2
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.8.0.0
Release: %autorelease
Version: 0.7.1.1
Release: 1%{?dist}
Summary: Processing HTTP Content-Type and Accept headers
License: MIT
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-base-devel
# Begin cabal-rpm deps:
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-case-insensitive-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-utf8-string-devel
%if %{with ghc_prof}
BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-case-insensitive-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-utf8-string-prof
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-test-framework-devel
BuildRequires: ghc-test-framework-quickcheck2-devel
%endif
# End cabal-rpm deps
@ -62,77 +56,47 @@ The API is agnostic to your choice of server.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
%endif
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%if %{with haddock}
%package doc
Summary: Haskell %{pkg_name} library documentation
BuildArch: noarch
Requires: ghc-filesystem
%description doc
This package provides the Haskell %{pkg_name} library documentation.
%endif
%if %{with ghc_prof}
%package prof
Summary: Haskell %{pkg_name} profiling library
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
Supplements: (%{name}-devel and ghc-prof)
%description prof
This package provides the Haskell %{pkg_name} profiling library.
%endif
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_lib_build
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_lib_install
# End cabal-rpm install
%check
%cabal_test
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE
# End cabal-rpm files
%files devel -f %{name}-devel.files
%doc CHANGES.md
%if %{with haddock}
%files doc -f %{name}-doc.files
%license LICENSE
%endif
%if %{with ghc_prof}
%files prof -f %{name}-prof.files
%endif
%changelog
%autochangelog
* Fri Sep 29 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.7.1.1-1
- spec file generated by cabal-rpm-0.11.2

View File

@ -1,137 +0,0 @@
name: http-media
version: 0.8.0.0
x-revision: 7
license: MIT
license-file: LICENSE
author: Timothy Jones
maintainer: Timothy Jones <tim@zmthy.net>
homepage: https://github.com/zmthy/http-media
bug-reports: https://github.com/zmthy/http-media/issues
copyright: (c) 2012-2019 Timothy Jones
category: Web
build-type: Simple
cabal-version: >= 1.10
synopsis: Processing HTTP Content-Type and Accept headers
description:
This library is intended to be a comprehensive solution to parsing and
selecting quality-indexed values in HTTP headers. It is capable of
parsing both media types and language parameters from the Accept and
Content header families, and can be extended to match against other
accept headers as well. Selecting the appropriate header value is
achieved by comparing a list of server options against the
quality-indexed values supplied by the client.
.
In the following example, the Accept header is parsed and then matched
against a list of server options to serve the appropriate media using
'mapAcceptMedia':
.
> getHeader >>= maybe send406Error sendResourceWith . mapAcceptMedia
> [ ("text/html", asHtml)
> , ("application/json", asJson)
> ]
.
Similarly, the Content-Type header can be used to produce a parser for
request bodies based on the given content type with 'mapContentMedia':
.
> getContentType >>= maybe send415Error readRequestBodyWith . mapContentMedia
> [ ("application/json", parseJson)
> , ("text/plain", parseText)
> ]
.
The API is agnostic to your choice of server.
extra-source-files:
CHANGES.md
library
default-language: Haskell2010
ghc-options: -Wall
hs-source-dirs:
src
default-extensions:
OverloadedStrings
exposed-modules:
Network.HTTP.Media
Network.HTTP.Media.Accept
Network.HTTP.Media.Charset
Network.HTTP.Media.Encoding
Network.HTTP.Media.Language
Network.HTTP.Media.MediaType
Network.HTTP.Media.RenderHeader
other-modules:
Network.HTTP.Media.Charset.Internal
Network.HTTP.Media.Encoding.Internal
Network.HTTP.Media.Language.Internal
Network.HTTP.Media.MediaType.Internal
Network.HTTP.Media.Quality
Network.HTTP.Media.Utils
build-depends:
base >= 4.8 && < 4.18,
bytestring >= 0.10 && < 0.12,
case-insensitive >= 1.0 && < 1.3,
containers >= 0.5 && < 0.7,
utf8-string >= 0.3 && < 1.1
test-suite test-http-media
type: exitcode-stdio-1.0
main-is: Test.hs
default-language: Haskell2010
ghc-options: -Wall
hs-source-dirs:
src
test
default-extensions:
OverloadedStrings
other-extensions:
TupleSections
other-modules:
Network.HTTP.Media
Network.HTTP.Media.Accept
Network.HTTP.Media.Accept.Tests
Network.HTTP.Media.Charset
Network.HTTP.Media.Charset.Gen
Network.HTTP.Media.Charset.Internal
Network.HTTP.Media.Charset.Tests
Network.HTTP.Media.Gen
Network.HTTP.Media.Encoding
Network.HTTP.Media.Encoding.Gen
Network.HTTP.Media.Encoding.Internal
Network.HTTP.Media.Encoding.Tests
Network.HTTP.Media.Language
Network.HTTP.Media.Language.Gen
Network.HTTP.Media.Language.Internal
Network.HTTP.Media.Language.Tests
Network.HTTP.Media.MediaType
Network.HTTP.Media.MediaType.Gen
Network.HTTP.Media.MediaType.Internal
Network.HTTP.Media.MediaType.Tests
Network.HTTP.Media.Quality
Network.HTTP.Media.RenderHeader
Network.HTTP.Media.Tests
Network.HTTP.Media.Utils
build-depends:
base >= 4.7 && < 4.13,
bytestring >= 0.10 && < 0.12,
case-insensitive >= 1.0 && < 1.3,
containers >= 0.5 && < 0.7,
utf8-string >= 0.3 && < 1.1,
QuickCheck >= 2.8 && < 2.14,
test-framework >= 0.8 && < 0.9,
test-framework-quickcheck2 >= 0.3 && < 0.4
source-repository head
type: git
location: https://github.com/zmthy/http-media

View File

@ -1 +1 @@
SHA512 (http-media-0.8.0.0.tar.gz) = 549fa1892c81224e79bad4268993e0cfa324d9d0c9daa0d800ac7cc4eee307405155989672c49adb0e124ca29c2d83cc565ba3c935fd3be4ab4ef0594b012bb5
SHA512 (http-media-0.7.1.1.tar.gz) = 76b90c6e892689b1d3852b234e000f4523c14fb8cb46c724f82552121ae6d2bd1e128ed191763a6c437058337d47656aff3faa2a0fe264e77fd8df6bcfdbfdf1