165 lines
4.7 KiB
RPMSpec
165 lines
4.7 KiB
RPMSpec
# generated by cabal-rpm-0.11.1
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
%global pkg_name xss-sanitize
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
%bcond_with tests
|
|
|
|
Name: ghc-%{pkg_name}
|
|
Version: 0.3.5.7
|
|
Release: 3%{?dist}
|
|
Summary: Sanitize untrusted HTML to prevent XSS attacks
|
|
|
|
License: BSD
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
BuildRequires: ghc-rpm-macros
|
|
# Begin cabal-rpm deps:
|
|
BuildRequires: ghc-attoparsec-devel
|
|
BuildRequires: ghc-containers-devel
|
|
BuildRequires: ghc-css-text-devel
|
|
BuildRequires: ghc-network-uri-devel
|
|
BuildRequires: ghc-tagsoup-devel
|
|
BuildRequires: ghc-text-devel
|
|
BuildRequires: ghc-utf8-string-devel
|
|
%if %{with tests}
|
|
BuildRequires: ghc-HUnit-devel
|
|
BuildRequires: ghc-hspec-devel
|
|
%endif
|
|
# End cabal-rpm deps
|
|
|
|
%description
|
|
Run untrusted HTML through Text.HTML.SanitizeXSS.sanitizeXSS to prevent XSS
|
|
attacks. See README.md <http://github.com/yesodweb/haskell-xss-sanitize> for
|
|
more details.
|
|
|
|
|
|
%package devel
|
|
Summary: Haskell %{pkg_name} library development files
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
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.
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{pkgver}
|
|
|
|
|
|
%build
|
|
%ghc_lib_build
|
|
|
|
|
|
%install
|
|
%ghc_lib_install
|
|
|
|
|
|
%check
|
|
%cabal_test
|
|
|
|
|
|
%post devel
|
|
%ghc_pkg_recache
|
|
|
|
|
|
%postun devel
|
|
%ghc_pkg_recache
|
|
|
|
|
|
%files -f %{name}.files
|
|
%license LICENSE
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
%doc README.md
|
|
|
|
|
|
%changelog
|
|
* Fri Feb 24 2017 Jens Petersen <petersen@redhat.com> - 0.3.5.7-3
|
|
- refresh to cabal-rpm-0.11.1
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5.7-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Mon Jun 27 2016 Jens Petersen <petersen@redhat.com> - 0.3.5.7-1
|
|
- update to 0.3.5.7
|
|
|
|
* Tue May 24 2016 Ben Boeckel <mathstuf@gmail.com> - 0.3.5.6-5
|
|
- Rebuild for ghc-network-uri and ghc-tagsoup
|
|
|
|
* Thu Mar 03 2016 Adam Williamson <awilliam@redhat.com> - 0.3.5.6-4
|
|
- rebuilt for bumped ghc-tagsoup
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5.6-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Tue Sep 29 2015 Jens Petersen <petersen@redhat.com> - 0.3.5.6-2
|
|
- use network-uri
|
|
|
|
* Sat Aug 08 2015 Ben Boeckel <mathstuf@gmail.com> - 0.3.5.6-1
|
|
- update to 0.3.5.6
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5.4-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Fri Jan 23 2015 Jens Petersen <petersen@redhat.com> - 0.3.5.4-1
|
|
- update to 0.3.5.4
|
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5.2-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Fri Jun 13 2014 Jens Petersen <petersen@redhat.com> - 0.3.5.2-3
|
|
- cblrpm-0.8.11
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Thu May 08 2014 Jens Petersen <petersen@redhat.com> - 0.3.5.2-1
|
|
- update to 0.3.5.2
|
|
|
|
* Fri Jul 26 2013 Jens Petersen <petersen@redhat.com> - 0.3.4-1
|
|
- update to 0.3.4
|
|
|
|
* Fri Jun 07 2013 Jens Petersen <petersen@redhat.com> - 0.3.3-2
|
|
- update to new simplified Haskell Packaging Guidelines
|
|
|
|
* Tue Mar 12 2013 Jens Petersen <petersen@redhat.com> - 0.3.3-1
|
|
- update to 0.3.3
|
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Sat Nov 17 2012 Jens Petersen <petersen@redhat.com> - 0.3.2-3
|
|
- update with cabal-rpm
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Tue Jul 10 2012 Ben Boeckel <mathstuf@gmail.com> - 0.3.2-1
|
|
- Update to 0.3.2
|
|
|
|
* Fri Jun 15 2012 Jens Petersen <petersen@redhat.com> - 0.2.6-3
|
|
- rebuild
|
|
|
|
* Fri Jan 6 2012 Jens Petersen <petersen@redhat.com> - 0.2.6-2
|
|
- update to cabal2spec-0.25.2
|
|
|
|
* Mon Oct 24 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.2.6-1.1
|
|
- rebuild with new gmp without compat lib
|
|
|
|
* Tue Oct 4 2011 Jens Petersen <petersen@redhat.com> - 0.2.6-1
|
|
- update to 0.2.6 and cabal2spec-0.23
|
|
|
|
* Sat Oct 30 2010 Ben Boeckel <mathstuf@gmail.com> - 0.2.2-1
|
|
- Initial package
|
|
|
|
* Sat Oct 30 2010 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.2.2-0
|
|
- initial packaging for Fedora automatically generated by cabal2spec-0.22.2
|