[-]
[+]
|
Deleted |
recode.spec
|
@@ -1,88 +0,0 @@
-# $Id$
-# Authority: dag
-# ExcludeDist: rh7 rh9
-
-Summary: Conversion between character sets and surfaces
-Name: recode
-Version: 3.6
-Release: 1.rf
-License: GPL
-Group: Applications/File
-URL: http://recode.progiciels-bpi.ca/
-
-Packager: Dag Wieers <dag@wieers.com>
-Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
-
-Source: http://recode.progiciels-bpi.ca/archives/recode-%{version}.tar.gz
-Patch0: recode.patch
-Patch1: recode-3.6-getcwd.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-
-%description
-recode converts files between character sets and usages. It recognises or
-produces nearly 150 different character sets and is able to transliterate
-files between almost any pair. When exact transliteration are not possible,
-it may get rid of the offending characters or fall back on approximations.
-Most RFC 1345 character sets are supported.
-
-%package devel
-Summary: Header files, libraries and development documentation for %{name}.
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-
-%description devel
-This package contains the header files, static libraries and development
-documentation for %{name}. If you like to develop programs using %{name},
-you will need to install %{name}-devel.
-
-%prep
-%setup
-%patch0 -p1
-%patch1 -p1 -b .getcwd
-
-%build
-%configure --disable-static
-%{__make} %{?_smp_mflags}
-
-%install
-%{__rm} -rf %{buildroot}
-%{__make} install DESTDIR="%{buildroot}"
-%find_lang %{name}
-
-### Clean up buildroot
-%{__rm} -rf %{buildroot}%{_infodir}/dir
-
-%post
-/sbin/ldconfig
-if [ -e "%{_infodir}/recode.info.gz" ]; then
- /sbin/install-info %{_infodir}/recode.info.gz %{_infodir}/dir || :
-fi
-
-%preun
-if [ -e "%{_infodir}/recode.info.gz" ]; then
- /sbin/install-info --delete %{_infodir}/recode.info.gz %{_infodir}/dir || :
-fi
-
-%postun -p /sbin/ldconfig
-
-%clean
-%{__rm} -rf %{buildroot}
-
-%files -f %{name}.lang
-%defattr(-, root, root, 0755)
-%doc AUTHORS BACKLOG ChangeLog COPYING* NEWS README THANKS TODO
-%doc %{_infodir}/recode.info*
-%doc %{_mandir}/man1/recode.1*
-%{_bindir}/recode
-%{_libdir}/librecode.so.*
-%exclude %{_libdir}/librecode.la
-
-%files devel
-%defattr(-, root, root, 0755)
-%{_includedir}/recode.h
-%{_includedir}/recodext.h
-%{_libdir}/librecode.so
-
-%changelog
-* Fri Jun 08 2007 Dag Wieers <dag@wieers.com> - 3.6-1 - +/
-- Initial package. (using DAR)
|
[-]
[+]
|
Deleted |
recode-3.6-getcwd.patch
^
|
@@ -1,11 +0,0 @@
---- 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));
|
[-]
[+]
|
Deleted |
recode.patch
^
|
@@ -1,68 +0,0 @@
---- 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
|
|
Deleted |
recode-3.6.tar.gz
^
|