%define version 0.3.16 %define pkgname autoconvert %define lib_major 0 %define libname %mklibname hz %{lib_major} %define develname %mklibname -d hz Summary: Chinese HZ/GB/BIG5 encodings auto-converter Name: zh-autoconvert Version: %{version} Release: %mkrel 7 License: GPL Group: System/Internationalization URL: http://banyan.dlut.edu.cn/~ygh/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Source0: ftp://banyan.dlut.edu.cn/pub/PEOPLE/saka/%{pkgname}-%{version}.tar.gz Patch0: autoconvert-0.3.14-noxchat.patch Obsoletes: %{pkgname} Provides: %{pkgname} = %{version}-%{release} Requires: %{libname} = %{version}-%{release} Requires: locales-zh %description AutoConvert is an intelligent Chinese Encoding converter. It uses built-in functions to judge the type of the input file's Chinese Encoding (such as GB/Big5/HZ), then converts the input file to any type of Chinese Encoding you want. You can use autoconvert to automatically convert incoming e-mail messages. It can also optionally handle the UNI/UTF7/UTF8 encoding. %package -n %{libname} Summary: Main libraries of %{name} Group: System/Libraries %description -n %{libname} AutoConvert is an intelligent Chinese Encoding converter. It uses built-in functions to judge the type of the input file's Chinese Encoding (such as GB/Big5/HZ), then converts the input file to any type of Chinese Encoding you want. You can use autoconvert to automatically convert incoming e-mail messages. It can also optionally handle the UNI/UTF7/UTF8 encoding. %package -n %{develname} Summary: Headers and development files of %{name} Group: Development/C Obsoletes: %{name}-devel %{libname}-devel Provides: %{name}-devel = %{version}-%{release} Provides: libhz-devel = %{version}-%{release} Requires: %{libname} = %{version} %description -n %{develname} AutoConvert is an intelligent Chinese Encoding converter. It uses built-in functions to judge the type of the input file's Chinese Encoding (such as GB/Big5/HZ), then converts the input file to any type of Chinese Encoding you want. You can use autoconvert to automatically convert incoming e-mail messages. It can also optionally handle the UNI/UTF7/UTF8 encoding. %prep %setup -q -n %{pkgname}-%{version} %patch0 -p1 -b .noxchat perl -p -i -e 's|/usr/lib|%{_libdir}|g' Makefile rm -rf doc/CVS %build make CFLAG='%optflags -Wall -Iinclude' CFLAGS='%optflags -Wall -I../include' %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc doc/ ChangeLog GPL LICENSE Readme TODO Thanks %{_bindir}/autob5 %{_bindir}/autogb %files -n %{libname} %defattr(-,root,root) %{_libdir}/libhz.so.%{lib_major}* %files -n %{develname} %defattr(-,root,root) %{_includedir}/zhstatis.h %{_includedir}/hz.h %{_libdir}/libhz.a %{_libdir}/libhz.so %changelog * Mon Jan 14 2013 umeabot <umeabot> 0.3.16-7.mga3 + Revision: 387677 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Mar 22 2011 steletch <steletch> 0.3.16-6.mga1 + Revision: 75715 - Clean spec file - imported package zh-autoconvert