2024-01-06 05:54:37 +01:00
|
|
|
%define pkg_version %(echo %version | tr . _)
|
|
|
|
Name: libteckit
|
2024-01-06 05:54:39 +01:00
|
|
|
Version: 2.5.10
|
2024-01-06 05:54:38 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 05:54:37 +01:00
|
|
|
Summary: A Text Encoding Conversion toolkit
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 05:54:39 +01:00
|
|
|
URL: https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=teckit
|
2024-01-06 05:54:38 +01:00
|
|
|
Source: https://github.com/silnrsi/teckit.git/v%{version}/teckit-%{version}.tar.bz2
|
2024-01-06 05:54:37 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
%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
|
2024-01-06 05:54:38 +01:00
|
|
|
%setup -q -n teckit-%{version}
|
2024-01-06 05:54:37 +01:00
|
|
|
%patch0 -p1
|
2024-01-06 05:54:38 +01:00
|
|
|
|
|
|
|
#sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.ac
|
|
|
|
#chmod 755 ./autogen.sh
|
|
|
|
#rm -rf zlib*
|
2024-01-06 05:54:37 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 05:54:38 +01:00
|
|
|
sh ./autogen.sh
|
2024-01-06 05:54:37 +01:00
|
|
|
%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.*
|
2024-01-06 05:54:38 +01:00
|
|
|
%{_mandir}/man1/sfconv.1*
|
|
|
|
%{_mandir}/man1/teckit_compile.1*
|
|
|
|
%{_mandir}/man1/txtconv.1*
|
2024-01-06 05:54:37 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/teckit
|
|
|
|
%{_includedir}/teckit/*.h
|
|
|
|
%{_libdir}/libTECkit.so
|
|
|
|
%{_libdir}/libTECkit_Compiler.so
|
2024-01-06 05:54:38 +01:00
|
|
|
%{_libdir}/pkgconfig/teckit.pc
|
2024-01-06 05:54:37 +01:00
|
|
|
%doc docs/*.pdf
|
|
|
|
%doc ChangeLog NEWS README
|
|
|
|
%doc license/L*.txt
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libTECkit.*a
|
|
|
|
%{_libdir}/libTECkit_Compiler.*a
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 05:54:39 +01:00
|
|
|
* Tue May 11 2021 Automatic Build System <autodist@mambasoft.it> 2.5.10-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 05:54:38 +01:00
|
|
|
* Tue Jul 16 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.9-1mamba
|
|
|
|
- update to 2.5.9
|
|
|
|
|
2024-01-06 05:54:38 +01:00
|
|
|
* Thu Aug 10 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.7-1mamba
|
|
|
|
- update to 2.5.7
|
|
|
|
|
2024-01-06 05:54:37 +01:00
|
|
|
* Sun Mar 31 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.1-2mamba
|
|
|
|
- rebuilt in devel
|
|
|
|
|
|
|
|
* Thu Nov 11 2010 gil <puntogil@libero.it> 2.5.1-1mamba
|
|
|
|
- package created by autospec
|