From 658864eaba427b049b8f184f6f91e46f3562d2be Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 19:30:09 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.0-1mamba;Mon May 26 2014] --- README.md | 2 ++ wt2db.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 wt2db.spec diff --git a/README.md b/README.md index dc27740..ffaf01d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # wt2db +A utility to convert text files in WikiText format into DocBook. + diff --git a/wt2db.spec b/wt2db.spec new file mode 100644 index 0000000..c58327c --- /dev/null +++ b/wt2db.spec @@ -0,0 +1,56 @@ +Name: wt2db +Version: 1.0 +Release: 1mamba +Summary: A utility to convert text files in WikiText format into DocBook +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://tldp.org/ +Source: http://tldp.org/downloads/wt2db-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-HTML-Parser +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A utility to convert text files in WikiText format into DocBook. + +%prep +%setup -q + +%build +%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" + +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm -f $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/wt2db +%{perl_vendorlib}/Wt2Db.pm +%{_mandir}/man1/wt2db.1* +%doc COPYING CREDITS + +%changelog +* Mon May 26 2014 Silvan Calarco 1.0-1mamba +- package created using the webbuild interface