%global date 20170223 %global commit0 ce8dc8e126819682475e38b3b8ef4a0927f7308a %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) # generated by cabal-rpm-0.11 # https://fedoraproject.org/wiki/Packaging:Haskell Name: pandoc-plantuml-filter Version: 0.2.0.0 Release: 2.%{date}git%{shortcommit0}%{?dist} Summary: Pandoc filter for PlantUML code blocks License: GPLv2+ Url: https://github.com/kbonne/%{name}/ Source: https://github.com/kbonne/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{version}-%{date}git%{shortcommit0}.tar.gz Patch0: %{name}-base-version.patch BuildRequires: /usr/bin/git BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-SHA-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-pandoc-types-devel BuildRequires: ghc-process-devel BuildRequires: ghc-utf8-string-devel # End cabal-rpm deps Requires: /usr/bin/pandoc %description Filter for pandoc that replaces CodeBlocks with a plantuml class with PlantUML generated UML diagrams. This allows you to use code blocks in your documents containing PlantUML DSL which will be replaced by actual UML diagrams after coversion using pandoc and this filter. %prep %autosetup -S git -n %{name}-%{commit0} %build %ghc_bin_build %install %ghc_bin_install %files %license LICENSE %doc README.md README.pdf %{_bindir}/%{name} %changelog * Mon Mar 12 2018 Damian Wrobel - 0.2.0.0-2.20170223gitce8dc8e - Add patch to remove bottom range version from base package. * Thu Mar 30 2017 Damian Wrobel - 0.2.0.0-1.20170223gitce8dc8e - Initial RPM release