From bd0a3b75dfd66aec2d790e674c54f8034b3aefe2 Mon Sep 17 00:00:00 2001 From: Johnny Solbu Date: Mon, 31 May 2010 06:47:30 +0200 Subject: [PATCH] Added grutatxt.spec. --- AUTHORS | 1 + grutatxt.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 grutatxt.spec diff --git a/AUTHORS b/AUTHORS index d85e53b..6025fc5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -4,3 +4,4 @@ Geoffrey Plitt - Apache handler documentation Vincent Stemen - Bugfixes Recai Oktas - Man page bugfixes, inline code markup, tabs-to-spaces in LaTEX mode +Johnny Solbu - Mandriva spec file diff --git a/grutatxt.spec b/grutatxt.spec new file mode 100644 index 0000000..0c4736c --- /dev/null +++ b/grutatxt.spec @@ -0,0 +1,53 @@ +%define oname grutatxt + +Name: Grutatxt +Summary: Text to HTML converter +Version: 2.0.15 +Release: %mkrel 1 +Source0: http://triptico.com/download/%{name}-%{version}.tar.gz +URL: http://www.triptico.com/software/grutatxt.html +Group: Text tools +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +License: GPLv2 +BuildArch: noarch + +Requires: perl + + +%description +Grutatxt is a plain text to HTML (and other formats) converter. +It successfully converts subtle text markup to lists, bold, italics, +tables and headings to their corresponding HTML, troff, man page or +LaTeX markup without having to write unreadable source text files. +Grutatxt is a Perl module and a command line utility, +and is the main text renderer in the Gruta CMS. + + +%prep +%setup -q + +%build +perl Makefile.PL DESTDIR=$RPM_BUILD_ROOT INSTALL_BASE=/usr SITEPREFIX=/usr INSTALLSITEMAN1DIR=%{_mandir}/man1 INSTALLSITEMAN3DIR=%{_mandir}/man3 +%make + +%install +rm -rf $RPM_BUILD_ROOT +%makeinstall +mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/ +install -p -m 0644 %{oname}.1* $RPM_BUILD_ROOT/%{_mandir}/man1/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%doc AUTHORS Changelog.1 README RELEASE_NOTES TODO doc/grutatxt_apache_handlers.txt doc/grutatxt_markup.txt +%{_bindir}/grutatxt +%{_bindir}/pod2grutatxt +%{_libdir}/perl5/Grutatxt.pm +%{_libdir}/perl5/i386-linux-thread-multi/perllocal.pod +%{_mandir}/man1/*.1* +%{_mandir}/man3/*.3* + +%changelog +* Tue Mar 30 2010 Johnny A. Solbu 2.0.15-1mdv +- Created specfile -- 2.11.4.GIT