Name: txt2regex Version: 0.8 Release: 3%{?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 Source1: licence-confirmation.eml # 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 questions and build your own regex for a large variety of software and programming languages. %prep %setup -q %patch0 -p1 # upstream has confirmed that txt2regex is GPLv2 only for i in README txt2regex-0.8.sh; do \ cp -p $i $i.new; \ sed -i -e 's/GPL/GPLv2/' $i.new; \ touch -r $i $i.new; \ mv -f $i.new $i; \ done # convert a few files to UTF-8 for i in Changelog txt2regex-%{version}.sh txt2regex.man; do \ iconv -f iso8859-1 -t utf-8 $i -o $i.conv; \ touch -r $i $i.conv; \ mv -f $i.conv $i; \ done %build # nothing to do %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 # copy licence confirmation email into unpacked source tree, alongside other # doc files install -p -m 644 %{SOURCE1} . # find locale files %find_lang %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root,-) %doc Changelog COPYRIGHT NEWS README TODO licence-confirmation.eml %{_bindir}/* %{_mandir}/*/* %changelog * Sun Jul 18 2010 Richard Fearn - 0.8-3 - include email confirming licence is GPLv2 only, as required by https://fedoraproject.org/wiki/Packaging:LicensingGuidelines * Wed Jun 9 2010 Richard Fearn - 0.8-2 - fix licence: upstream has confirmed that it should be GPLv2 only - improve description - use for loop to convert files to UTF-8 * Sun Jun 6 2010 Richard Fearn - 0.8-1 - initial package for Fedora