# vim: set ts=4 sw=4 et: Name: uni2ascii Version: 4.18 Release: 1.110 Summary: Convert between Unicode and various ASCII Representations Source: http://billposer.org/Software/Downloads/uni2ascii-%{version}.tar.bz2 Source1: %{name}-frontend.desktop Patch1: %{name}-fix-u2a.diff Patch2: uni2ascii-fix_missing_headers.patch Patch3: uni2ascii-disable_build_timestamps.patch URL: http://billposer.org/Software/uni2ascii.html Group: Productivity/Text/Convertors License: GNU General Public License (GPL) BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRequires: make gcc glibc-devel BuildRequires: autoconf automake libtool pkgconfig BuildRequires: update-desktop-files %description uni2ascii and ascii2uni convert between UTF-8 Unicode and any of a variety of 7-bit ASCII equivalents including: hexadecimal and decimal HTML numeric character references, \u-escapes, standard hexadecimal, and raw hexadecimal. Such ASCII equivalents are useful when including Unicode text in program source, when entering text into Web programs that can handle the Unicode character set but are not 8-bit safe, and when debugging. %package frontend Summary: Tcl/Tk Graphical Frontend to %{name} Group: Productivity/Text/Convertors Requires: %{name} = %{version}-%{release} Requires: tcl tk tablelist %description frontend Graphical frontend to %{name} in Tcl/Tk. %prep %setup -q %patch1 %patch2 %patch3 %build %configure %__make \ %{?_smp_flags} \ LOCALEDIR="%{_datadir}/locale" \ CFLAGS="%{optflags} -Wall -Wextra -Wno-unused" %install %makeinstall %__install -D -m 0755 uni2html.py "%{buildroot}%{_bindir}/uni2html" strip -s %{buildroot}%{_bindir}/*ascii* rm -rf %{buildroot}/usr/share/applications %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING CREDITS NEWS README %{_bindir}/ascii2uni %{_bindir}/uni2ascii %{_bindir}/uni2html %doc %{_mandir}/man1/ascii2uni.1%{ext_man} %doc %{_mandir}/man1/uni2ascii.1%{ext_man} %changelog * Tue May 17 2011 pascal.bleser@opensuse.org - update to 4.18: * fixed bug in uni2ascii in which in certain cases the subsitution count was too high, fixing Debian bug #626268 * clarified semantics of pure option as converting characters in ascii range other than space and newline; fixed bug in which this was not implemented correctly for UTF8 types * Tue Aug 7 2007 guru@unixtech.be - new upstream version 4.17: * added to uni2ascii the following conversions to nearest ascii equivalent: U+2022 bullet to 'o' U+00B7 middle dot to period U+0085 next line to newline U+2028 line separator to newline * Mon Mar 12 2007 guru@unixtech.be - CHANGES: adds to uni2ascii a new option that allows custom mappings of Unicode characters to ASCII characters to be defined from the command line (The GUI has not yet been modified to allow the use of this option) - CHANGES: added U+2500-U+2503 to the characters handled by the -e flag - CHANGES: (4.2) both programs now complain about unrecognized format specification instead of crashing - CHANGES: (4.2) the pattern matches for examplars of the I, J, and K formats, previously missing, have been added - CHANGES: (4.2) several format names have been added to the list recognized as format specifications - CHANGES: (4.1.1) removed inadvertently introduced direct calls to gettext() which prevent compilation on systems without gettext - CHANGES: (4.1) fixed bugs that prevented several formats from working in ascii2uni - CHANGES: (4.1) eliminated leftover information about format options from ascii2uni usage message - CHANGES: (4.0) the numerous options for specifying formats other than the -Z flag have been replaced by a single option, -a, which takes an argument; the argument may be the same letter or number as before (without the hyphen), an example of the desired format, or in some cases a name such as 'SGML_hexadecimal' - CHANGES: (4.0) formats supplied as arguments to the -Z flag are now checked to ensure that they do not contain more than one conversion specification - CHANGES: (4.0) fixed a bug introduced in version 3.10 in which an HTML numeric character reference lacking the final semi-colon led to the program not termiminating - CHANGES: (4.0) a number of additional expansions are now performed by uni2ascii with the -x flag - CHANGES: (4.0) the list of expansions performed by uni2ascii with the -x flag is now provided by a new option, the -E flag - CHANGES: (4.0) corrected some typos in the usage information for uni2ascii - new upstream version * Mon Feb 12 2007 guru@unixtech.be - new upstream version * Wed Jan 10 2007 guru@unixtech.be - new upstream version * Thu Dec 21 2006 guru@unixtech.be - new upstream version * Mon Dec 4 2006 guru@unixtech.be - new upstream version * Fri Jul 21 2006 guru@unixtech.be - new upstream version * Thu Jun 8 2006 guru@unixtech.be - new upstream version * Mon May 1 2006 guru@unixtech.be - new upstream version - added binary stripping on SUSE < 9.3 * Sat Apr 29 2006 guru@unixtech.be - moved configure and autoreconf to build section - new upstream version * Tue Apr 18 2006 guru@unixtech.be - removed Packager and Distribution, injected by rpmmacros - new upstream version * Fri Mar 24 2006 guru@unixtech.be - removed obsolete call to suse_update_libdir - new upstream version * Sat Mar 11 2006 guru@unixtech.be - new upstream version * Mon Feb 27 2006 guru@unixtech.be - added -j to make - new upstream version * Mon Jan 23 2006 guru@unixtech.be - new upstream version * Mon Jan 16 2006 guru@unixtech.be - new upstream version * Thu Jan 12 2006 guru@unixtech.be - added .desktop file for Tcl/Tk frontend - added patch to fix Tcl/Tk script - added Tcl/Tk frontend in a -frontend subpackage - new upstream version * Fri Dec 9 2005 guru@unixtech.be - new upstream version * Tue Dec 6 2005 guru@unixtech.be - added uni2html - new spec template - new upstream version * Thu Oct 20 2005 guru@unixtech.be - removed bogus update-desktop-files in BuildRequires - added debuginfo support - converted install to autotools - new upstream version: 2.6 * Wed Sep 28 2005 guru@unixtech.be - new upstream version: 2.5 * Wed Sep 21 2005 guru@unixtech.be - fixed update-desktop-file build requirement - new upstream version: 2.4 * Fri Sep 16 2005 guru@unixtech.be - changed build to autoconf - version 2.3 * Fri Sep 9 2005 guru@unixtech.be - new package