90 lines
2.3 KiB
RPMSpec
90 lines
2.3 KiB
RPMSpec
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
|
|
|
|
%global pkg_name xss-sanitize
|
|
|
|
%global common_summary Sanitize untrusted HTML to prevent XSS attacks
|
|
|
|
%global common_description Run untrusted HTML through \
|
|
Text.HTML.SanitizeXSS.sanitizeXSS to prevent XSS attacks. see README.md for \
|
|
more details.
|
|
|
|
Name: ghc-%{pkg_name}
|
|
Version: 0.3.2
|
|
Release: 3%{?dist}
|
|
Summary: %{common_summary}
|
|
|
|
License: BSD
|
|
URL: http://hackage.haskell.org/package/%{pkg_name}
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.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-devel
|
|
BuildRequires: ghc-tagsoup-devel
|
|
BuildRequires: ghc-text-devel
|
|
BuildRequires: ghc-utf8-string-devel
|
|
# End cabal-rpm deps
|
|
|
|
%description
|
|
%{common_description}
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
%build
|
|
%ghc_lib_build
|
|
|
|
|
|
%install
|
|
%ghc_lib_install
|
|
|
|
|
|
%ghc_devel_package
|
|
|
|
%ghc_devel_description
|
|
|
|
|
|
%ghc_devel_post_postun
|
|
|
|
|
|
%ghc_files LICENSE
|
|
|
|
|
|
%changelog
|
|
* 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
|
|
|
|
* Thu Jun 19 2012 Lakshmi Narasimhan T V <lakshminaras2002@gmail.com> - 0.3.1-1
|
|
- update to upstream version 0.3.1
|
|
|
|
* 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
|