]> git.pld-linux.org Git - packages/recode.git/commitdiff
- added bool patch to fix recode headers usage with recent gcc (include <stdbool.h>)
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 21 Oct 2012 09:47:12 +0000 (11:47 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 21 Oct 2012 09:47:12 +0000 (11:47 +0200)
- added ac patch to fix build with recent ac/am
- release 7

recode-ac.patch [new file with mode: 0644]
recode-bool.patch [new file with mode: 0644]
recode.spec

diff --git a/recode-ac.patch b/recode-ac.patch
new file mode 100644 (file)
index 0000000..df645d5
--- /dev/null
@@ -0,0 +1,29 @@
+--- recode-3.6/configure.in.orig       2012-10-21 10:45:16.803895982 +0200
++++ recode-3.6/configure.in    2012-10-21 10:58:36.950529071 +0200
+@@ -15,7 +15,6 @@
+ AM_PROG_LIBTOOL
+ AC_ISC_POSIX
+-AM_C_PROTOTYPES
+ AC_C_CONST
+ AC_C_INLINE
+ ad_AC_PROG_FLEX
+--- recode-3.6/src/Makefile.am.orig    2012-10-21 11:02:39.490518891 +0200
++++ recode-3.6/src/Makefile.am 2012-10-21 11:07:12.987174080 +0200
+@@ -17,7 +17,7 @@
+ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ # 02111-1307, USA.
+-AUTOMAKE_OPTIONS = gnits ansi2knr
++AUTOMAKE_OPTIONS = gnits
+ bin_PROGRAMS = recode
+ lib_LTLIBRARIES = librecode.la
+ man_MANS = recode.1
+--- recode-3.6/m4/flex.m4.orig 2000-06-28 16:39:06.000000000 +0200
++++ recode-3.6/m4/flex.m4      2012-10-21 11:40:05.783757954 +0200
+@@ -15,4 +15,5 @@
+ else
+   AC_PROG_LEX
+   AC_DECL_YYTEXT
++  :
+ fi])
diff --git a/recode-bool.patch b/recode-bool.patch
new file mode 100644 (file)
index 0000000..ecff647
--- /dev/null
@@ -0,0 +1,11 @@
+--- recode-3.6/src/recode.h.orig       2000-06-28 20:40:16.000000000 +0200
++++ recode-3.6/src/recode.h    2012-10-21 10:44:04.443899019 +0200
+@@ -17,6 +17,8 @@
+    If not, write to the Free Software Foundation, Inc., 59 Temple Place -
+    Suite 330, Boston, MA 02111-1307, USA.  */
++#include <stdbool.h>
++
+ #ifndef PARAMS
+ # if __STDC__
+ #  define PARAMS(Args) Args
index 24914f862ade054d0cd65c325e7a5dd837deef62..a9367879c06db3a59f50d789c257bfaf4472c06a 100644 (file)
@@ -2,10 +2,11 @@ Summary:      Utility for converting text between multiple character sets
 Summary(pl.UTF-8):     Uniwersalny konwerter między zestawami znaków
 Name:          recode
 Version:       3.6
-Release:       6
-License:       GPL/LGPL
+Release:       7
+License:       LGPL v2+ (library), GPL v2+ (utility)
 Group:         Applications/Text
-Source0:       http://ftp.gnu.org/gnu/recode/%{name}-%{version}.tar.gz
+# for future releases (3.7/4.0) see https://github.com/pinard/Recode/
+Source0:       %{name}-%{version}.tar.gz
 # Source0-md5: be3f40ad2e93dae5cd5f628264bf1877
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-use_malloc_realloc.patch
@@ -16,7 +17,9 @@ Patch5:               %{name}-el.po-no0xD2.patch
 Patch6:                %{name}-pl.po-update.patch
 Patch7:                %{name}-debian-11.patch
 Patch8:                %{name}-gcc4_3.patch
-URL:           http://www.gnu.org/software/recode/
+Patch9:                %{name}-bool.patch
+Patch10:       %{name}-ac.patch
+URL:           http://recode.progiciels-bpi.ca/
 BuildRequires: autoconf >= 2.53
 BuildRequires: automake
 BuildRequires: flex
@@ -38,6 +41,7 @@ kodowania, włącznie z popularnymi ISO-8859, CP-XXXX oraz Unicode.
 %package devel
 Summary:       Header files and documentations for librecode
 Summary(pl.UTF-8):     Pliki nagłówkowe i dokumentacja do librecode
+License:       LGPL v2+
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
@@ -50,6 +54,7 @@ Pliki nagłówkowe i dokumentacja do librecode.
 %package static
 Summary:       Static librecode library
 Summary(pl.UTF-8):     Biblioteka statyczna librecode
+License:       LGPL v2+
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
@@ -70,11 +75,15 @@ Biblioteka statyczna librecode.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
+%patch10 -p1
+
+# duplicate of m4/*.m4 files
+%{__rm} acinclude.m4
 
 %build
 %{__libtoolize}
-cp m4/lcmessage.m4 .
-%{__aclocal} -I .
+%{__aclocal} -I m4
 %{__autoconf}
 %{__automake}
 %configure
@@ -102,16 +111,18 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS BACKLOG README THANKS TODO
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
-%{_infodir}/*info*
-%{_mandir}/man1/*
+%attr(755,root,root) %{_bindir}/recode
+%attr(755,root,root) %{_libdir}/librecode.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/librecode.so.0
+%{_infodir}/recode.info*
+%{_mandir}/man1/recode.1*
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_includedir}/*
+%attr(755,root,root) %{_libdir}/librecode.so
+%{_libdir}/librecode.la
+%{_includedir}/recode.h
+%{_includedir}/recodext.h
 
 %files static
 %defattr(644,root,root,755)
This page took 0.159892 seconds and 4 git commands to generate.