Changes of Revision 5
[-] | Added | recode.spec |
x 1
2 +Summary: Conversion between character sets and surfaces 3 +Name: recode 4 +Version: 3.6 5 +Release: 22%{?dist} 6 +License: GPL 7 +Group: Applications/File 8 +Source: http://recode.progiciels-bpi.ca/archives/recode-%{version}.tar.gz 9 +Patch0: recode.patch 10 +Patch1: recode-3.6-getcwd.patch 11 +Url: http://recode.progiciels-bpi.ca/ 12 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 13 + 14 +Requires(post): /sbin/install-info 15 +Requires(post): /sbin/ldconfig 16 +Requires(preun): /sbin/install-info 17 +Requires(postun): /sbin/ldconfig 18 + 19 + 20 +%description 21 +The `recode' converts files between character sets and usages. 22 +It recognises or produces nearly 150 different character sets 23 +and is able to transliterate files between almost any pair. When exact 24 +transliteration are not possible, it may get rid of the offending 25 +characters or fall back on approximations. Most RFC 1345 character sets 26 +are supported. 27 + 28 +%package devel 29 +Summary: Header files and static libraries for development using recode 30 +Group: Development/Libraries 31 +Requires: %{name} = %{version}-%{release} 32 + 33 +%description devel 34 +The `recode' library converts files between character sets and usages. 35 +The library recognises or produces nearly 150 different character sets 36 +and is able to transliterate files between almost any pair. When exact 37 +transliteration are not possible, it may get rid of the offending 38 +characters or fall back on approximations. Most RFC 1345 character sets 39 +are supported. 40 + 41 +%prep 42 +%setup -q 43 +%patch0 -p1 44 +%patch1 -p1 -b .getcwd 45 + 46 +%build 47 +%configure --disable-static 48 +make %{?_smp_mflags} 49 + 50 +%install 51 +rm -rf $RPM_BUILD_ROOT 52 + 53 +%makeinstall 54 +%find_lang %{name} 55 + 56 +# remove unpackaged file from the buildroot 57 +rm -f $RPM_BUILD_ROOT%{_infodir}/dir 58 + 59 +# remove libtool archives 60 +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 61 + 62 + 63 +%post 64 +/sbin/ldconfig 65 +/sbin/install-info %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode). Conversion between character sets and surfaces." || : 66 + 67 +%preun 68 +if [ $1 = 0 ]; then 69 + /sbin/install-info --delete %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode). Conversion between character sets and surfaces." || : 70 +fi 71 + 72 +%postun -p /sbin/ldconfig 73 + 74 +%clean 75 +rm -rf $RPM_BUILD_ROOT 76 + 77 +%files -f %{name}.lang 78 +%defattr(-,root,root) 79 +%doc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO 80 +%{_mandir}/*/* 81 +%{_infodir}/recode.info* 82 +%{_bindir}/* 83 +%{_libdir}/*.so.0* 84 + 85 +%files devel 86 +%defattr(-,root,root) 87 +%{_libdir}/*.so 88 +%{_includedir}/* 89 + 90 +%changelog 91 +* Fri Sep 01 2006 Zoltan Kota <z.kota[AT]gmx.net> 3.6-22 92 +- rebuild 93 + 94 +* Mon Feb 13 2006 Zoltan Kota <z.kota[AT]gmx.net> 3.6-21 95 +- rebuild 96 + 97 +* Thu Dec 22 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-20 98 +- rebuild 99 + 100 +* Fri Aug 26 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-19 101 +- fix requires 102 +- disable static libs and remove libtool archives 103 +- add %%doc 104 + 105 +* Fri Aug 26 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-18 106 +- add dist tag 107 +- specfile cleanup 108 + 109 +* Thu May 26 2005 Bill Nottingham <notting@redhat.com> 3.6-17 110 +- rebuild for Extras 111 + 112 +* Mon Mar 07 2005 Than Ngo <than@redhat.com> 3.6-16 113 +- cleanup 114 + 115 +* Sat Mar 05 2005 Than Ngo <than@redhat.com> 3.6-15 116 +- rebuilt 117 + 118 +* Wed Feb 09 2005 Than Ngo <than@redhat.com> 3.6-14 119 +- rebuilt 120 + 121 +* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> 122 +- rebuilt 123 + 124 +* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> 125 +- rebuilt 126 + 127 +* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 128 +- rebuilt 129 + 130 +* Fri Feb 13 2004 Than Ngo <than@redhat.com> 3.6-11 131 +- add a patch file from kota@szbk.u-szeged.hu (bug #115524) 132 + 133 +* Thu Nov 20 2003 Thomas Woerner <twoerner@redhat.com> 3.6-10 134 +- Fixed RPATH (missing make in %%build) 135 + 136 +* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> 137 +- rebuilt 138 + 139 +* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 140 +- rebuilt 141 + 142 +* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 3.6-7 143 +- rebuild on all arches 144 +- remove unpackaged file from the buildroot 145 + 146 +* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 147 +- automated rebuild 148 + 149 +* Thu May 23 2002 Tim Powers <timp@redhat.com> 150 +- automated rebuild 151 + 152 +* Mon Apr 15 2002 Bill Nottingham <notting@redhat.com> 3.6-4 153 +- add ldconfig %post/%postun 154 + 155 +* Tue Feb 26 2002 Than Ngo <than@redhat.com> 3.6-3 156 +- rebuild 157 + 158 +* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 159 +- automated rebuild 160 + 161 +* Tue Nov 13 2001 Than Ngo <than@redhat.com> 3.6-1 162 +- initial RPM for 8.0 163 |
||
[+] | Added | recode-3.6-getcwd.patch ^ |
@@ -0,0 +1,11 @@ +--- recode-3.6/lib/gettext.c.orig 2005-03-07 12:18:30.000000000 +0100 ++++ recode-3.6/lib/gettext.c 2005-03-07 12:23:14.000000000 +0100 +@@ -1668,8 +1668,6 @@ + # if !defined HAVE_GETCWD + char *getwd (); + # define getcwd(buf, max) getwd (buf) +-# else +-char *getcwd (); + # endif + # ifndef HAVE_STPCPY + static char *stpcpy PARAMS ((char *dest, const char *src)); | ||
[+] | Added | recode.patch ^ |
@@ -0,0 +1,68 @@ +--- recode-3.6.orig/src/libiconv.c ++++ recode-3.6/src/libiconv.c +@@ -1,5 +1,5 @@ + /* Conversion of files between different charsets and surfaces. +- Copyright © 1999, 2000 Free Software Foundation, Inc. ++ Copyright © 1999, 2000, 2001 Free Software Foundation, Inc. + Contributed by François Pinard <pinard@iro.umontreal.ca>, 1999, + and Bruno Haible <haible@clisp.cons.org>, 2000. + +@@ -195,12 +195,17 @@ + memcpy() doesn't do here, because the regions might overlap. + memmove() isn't worth it, because we rarely have to move more + than 12 bytes. */ +- if (input > input_buffer && input_left > 0) ++ cursor = input_buffer; ++ if (input_left > 0) + { +- cursor = input_buffer; +- do +- *cursor++ = *input++; +- while (--input_left > 0); ++ if (input > input_buffer) ++ { ++ do ++ *cursor++ = *input++; ++ while (--input_left > 0); ++ } ++ else ++ cursor += input_left; + } + } + +--- recode-3.6.orig/src/request.c ++++ recode-3.6/src/request.c +@@ -1073,7 +1073,7 @@ + if (task->output.cursor + 4 >= task->output.limit) + { + RECODE_OUTER outer = task->request->outer; +- size_t old_size = task->output.limit - task->output.buffer; ++ size_t old_size = task->output.cursor - task->output.buffer; + size_t new_size = task->output.cursor + 4 - task->output.buffer; + + /* FIXME: Rethink about how the error should be reported. */ +--- recode-3.6.orig/src/task.c ++++ recode-3.6/src/task.c +@@ -1198,6 +1198,8 @@ + else + success = transform_mere_copy (subtask); + ++ task->output = subtask->output; ++ + if (subtask->input.name && *subtask->input.name) + fclose (subtask->input.file); + if (subtask->output.name && *subtask->output.name) +--- recode-3.6.orig/src/hash.h ++++ recode-3.6/src/hash.h +@@ -21,6 +21,11 @@ + /* Make sure USE_OBSTACK is defined to 1 if you want the allocator to use + obstacks instead of malloc, and recompile `hash.c' with same setting. */ + ++#define hash_lookup recode_hash_lookup ++#define hash_delete recode_hash_delete ++#define hash_free recode_hash_free ++#define hash_insert recode_hash_insert ++ + #ifndef PARAMS + # if PROTOTYPES || __STDC__ + # define PARAMS(Args) Args | ||
Added | recode-3.6-22.el5.centos.src.rpm ^ | |
Added | recode-3.6.tar.gz ^ |