From e222c9488f834c25df8e7e5c6caf26ba3ee04ca5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:54:37 +0100 Subject: [PATCH] rebuilt in devel [release 2.5.1-2mamba;Sun Mar 31 2013] --- README.md | 4 ++ libteckit-2.5.1-includes.patch | 11 ++++ libteckit.spec | 103 +++++++++++++++++++++++++++++++++ 3 files changed, 118 insertions(+) create mode 100644 libteckit-2.5.1-includes.patch create mode 100644 libteckit.spec diff --git a/README.md b/README.md index 559a7ef..3cb1990 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # libteckit +TECkit is a low-level toolkit intended to be used by other applications that need to perform encoding conversions (e.g., when importing legacy data into a Unicode-based application). +The primary component of the TECkit package is therefore a library that performs conversions; this is the "TECkit engine". +The engine relies on mapping tables in a specific binary format (for which documentation is available); there is a compiler that creates such tables from a human-readable mapping description (a simple text file). + diff --git a/libteckit-2.5.1-includes.patch b/libteckit-2.5.1-includes.patch new file mode 100644 index 0000000..3787f2c --- /dev/null +++ b/libteckit-2.5.1-includes.patch @@ -0,0 +1,11 @@ +diff -ru TECkit_2_5_1.orig/source/Compiler.cpp TECkit_2_5_1/source/Compiler.cpp +--- TECkit_2_5_1.orig/source/Compiler.cpp 2009-03-05 10:29:22.000000000 +0000 ++++ TECkit_2_5_1/source/Compiler.cpp 2009-03-05 10:29:50.000000000 +0000 +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + + #include "zlib.h" + diff --git a/libteckit.spec b/libteckit.spec new file mode 100644 index 0000000..bb3c432 --- /dev/null +++ b/libteckit.spec @@ -0,0 +1,103 @@ +%define pkg_version %(echo %version | tr . _) +Name: libteckit +Version: 2.5.1 +Release: 2mamba +Summary: A Text Encoding Conversion toolkit +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://scripts.sil.org/teckit +Source: http://scripts.sil.org/svn-view/teckit/TAGS/TECkit_%{pkg_version}.tar.gz +Patch0: libteckit-2.5.1-includes.patch +License: Common Public License Version 0.5, GPL, LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libexpat-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +TECkit is a low-level toolkit intended to be used by other applications that need to perform encoding conversions (e.g., when importing legacy data into a Unicode-based application). +The primary component of the TECkit package is therefore a library that performs conversions; this is the "TECkit engine". +The engine relies on mapping tables in a specific binary format (for which documentation is available); there is a compiler that creates such tables from a human-readable mapping description (a simple text file). + +%package devel +Group: Development/Libraries +Summary: Libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +A Text Encoding Conversion toolkit. + +This package contains static libraries and header files need for development. + +%package static +Group: Development/Libraries +Summary: Static libraries for %{name} +Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release} + +%description static +A Text Encoding Conversion toolkit. + +This package contains static libraries need for development. + +%prep +%setup -q -n TECkit_%{pkg_version} +%patch0 -p1 +sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.ac +chmod 755 ./autogen.sh +chmod 755 ./configure +rm -rf zlib* + +%build +./autogen.sh +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%post devel -p /sbin/ldconfig +%postun devel -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%attr(0755,root,root) %{_bindir}/sfconv +%attr(0755,root,root) %{_bindir}/teckit_compile +%attr(0755,root,root) %{_bindir}/txtconv +%attr(0755,root,root) %{_libdir}/libTECkit.so.* +%attr(0755,root,root) %{_libdir}/libTECkit_Compiler.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/teckit +%{_includedir}/teckit/*.h +%{_libdir}/libTECkit.so +%{_libdir}/libTECkit_Compiler.so +%doc docs/*.pdf +%doc ChangeLog NEWS README +%doc license/L*.txt + +%files static +%defattr(-,root,root) +%{_libdir}/libTECkit.*a +%{_libdir}/libTECkit_Compiler.*a + +%changelog +* Sun Mar 31 2013 Silvan Calarco 2.5.1-2mamba +- rebuilt in devel + +* Thu Nov 11 2010 gil 2.5.1-1mamba +- package created by autospec