Name: txt2regex Version: 0.8 Release: 1%{?dist} Summary: Regular expression wizard that converts human sentences to regexes Group: Applications/Text License: GPLv2+ URL: http://www.aurelio.net/soft/txt2regex/ Source0: http://txt2regex.sourceforge.net/txt2regex-%{version}.tgz # This removes the "TEXTDOMAINDIR=..." line from txt2regex. It isn't needed in # Fedora where the default value is OK. Patch0: txt2regex-no-TEXTDOMAINDIR.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: gettext Requires: bash >= 2.04 %description Txt2regex is a Regular Expression wizard that converts human sentences to regexes. In a simple interactive interface, you just answer to questions and build your own regex for a large variety of softwares and programming languages: AWK, ed, egrep, Emacs, expect, find, gawk, grep, lex, lisp, mawk, MySQL, OpenOffice.org, Perl, PHP, Postgres, Procmail, Python, SED, Tcl, VBscript, VI, Vim. %prep %setup -q %patch0 -p1 %build # convert a few files to UTF-8 iconv -f iso8859-1 -t utf-8 Changelog -o Changelog.conv && \ touch -r Changelog Changelog.conv && \ mv -f Changelog.conv Changelog iconv -f iso8859-1 -t utf-8 txt2regex-%{version}.sh -o txt2regex-%{version}.sh.conv && \ touch -r txt2regex-%{version}.sh txt2regex-%{version}.sh.conv && \ mv -f txt2regex-%{version}.sh.conv txt2regex-%{version}.sh iconv -f iso8859-1 -t utf-8 txt2regex.man -o txt2regex.man.conv && \ touch -r txt2regex.man txt2regex.man.conv && \ mv -f txt2regex.man.conv txt2regex.man %install rm -rf %{buildroot} # install txt2regex and locale files make DESTDIR=%{buildroot} install # install man page mkdir -p %{buildroot}/%{_mandir}/man1 install -p -m 644 txt2regex.man %{buildroot}%{_mandir}/man1/txt2regex.1 # find locale files %find_lang %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root,-) %doc Changelog COPYRIGHT NEWS README TODO %{_bindir}/* %{_mandir}/*/* %changelog * Sun Jun 6 2010 Richard Fearn - 0.8-1 - initial package for Fedora