%define major 11 %define libname %mklibname idn %{major} %define develname %mklibname idn -d Summary: Internationalized string processing library Name: libidn Version: 1.26 Release: %mkrel 2 License: LGPLv2+ Group: System/Libraries URL: http://www.gnu.org/software/libidn/ Source0: http://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz Source1: http://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz.sig BuildRequires: texinfo %ifnarch %mips %arm BuildRequires: valgrind BuildRequires: java-rpmbuild %endif # disable on arm for now. test it again on real hardware. qemu doesn't like it %ifnarch %mips %arm BuildRequires: mono %endif %description GNU Libidn is an implementation of the Stringprep, Punycode and IDNA specifications defined by the IETF Internationalized Domain Names (IDN) working group, used for internationalized domain names. %package -n %{libname} Summary: Internationalized string processing library Group: System/Libraries Requires(post): info-install Requires(preun): info-install %description -n %{libname} GNU Libidn is an implementation of the Stringprep, Punycode and IDNA specifications defined by the IETF Internationalized Domain Names (IDN) working group, used for internationalized domain names. %package -n %{develname} Summary: Development files for the %{libname} library Group: Development/C Provides: %{name}-devel = %{version}-%{release} Provides: idn-devel = %{version}-%{release} Requires: %{libname} = %{version}-%{release} Requires: pkgconfig Obsoletes: %mklibname idn 11 -d %description -n %{develname} Development files for the %{libname} library. %package -n idn Summary: Commandline interface to the %{libname} library Group: System/Servers %description -n idn This package provides the commandline interface to the %{libname} library. %ifnarch %mips %arm %package -n %{libname}-java Summary: Java support for the %{name} Group: Development/Java Provides: %{name}-java = %{version}-%{release} Requires: %{libname} = %{version}-%{release} %description -n %{libname}-java Java support for the %{name}. %package -n %{libname}-mono Summary: Mono support for the %{name} Group: Development/Other Provides: %{name}-mono = %{version}-%{release} Requires: %{libname} = %{version}-%{release} %description -n %{libname}-mono Mono support for the %{name}. %endif %prep %setup -q %build %configure2_5x --disable-static \ %ifnarch %mips %arm --enable-java \ --disable-valgrind-tests \ %endif %ifnarch %mips %arm --enable-csharp=mono \ %endif --disable-rpath %make %check make check %install %makeinstall_std # fix "invalid-lc-messages-dir": rm -rf %{buildroot}%{_datadir}/locale/en@*quot # make a nice list for docs find doc -type f | sed 's/^/%{doc} /' | \ grep -v "Makefile*" | \ grep -v "\.tex*" | \ grep -v "\.info" | \ grep -v "\.1" | \ grep -v "\.3" | \ grep -v "\.sgml" | \ grep -v "\.xml" | \ grep -v "gdoc" | \ grep -v "mdate-sh" > %{libname}-devel.filelist find examples -type f -name ".c" | sed 's/^/%{doc} /' >> %{develname}.filelist %find_lang %{name} #(tpg) really not needed... also got lzma'd :) rm -rf %{buildroot}%{_infodir}/*.png* rm -f %{buildroot}%{_libdir}/*.la # this fixes a file clash in a mixed arch env mv %{buildroot}%{_infodir}/%{name}.info %{buildroot}%{_infodir}/%{libname}.info %post -n %{libname} %_install_info %{libname}.info %postun -n %{libname} %_remove_install_info %{libname}.info %files -n idn -f %{name}.lang %doc ChangeLog FAQ README THANKS contrib %{_bindir}/idn %{_mandir}/man1/idn.1* %{_datadir}/emacs/site-lisp/*.el %files -n %{libname} %{_libdir}/libidn.so.%{major}* %{_infodir}/%{libname}.info* %files -n %{develname} -f %{develname}.filelist %doc doc/libidn.html TODO libc/example.c examples/README examples/Makefile.* %{_libdir}/libidn.so %{_includedir}/*.h %{_libdir}/pkgconfig/*.pc %{_mandir}/man3/* %ifnarch %mips %arm %files -n %{libname}-java %{_datadir}/java/*.jar %endif %ifnarch %mips %arm %files -n %{libname}-mono %{_libdir}/*.dll %endif %changelog * Sat Jan 12 2013 umeabot <umeabot> 1.26-2.mga3 + Revision: 357512 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Dec 25 2012 luigiwalser <luigiwalser> 1.26-1.mga3 + Revision: 334826 - 1.26 * Thu May 31 2012 fwang <fwang> 1.25-1.mga3 + Revision: 252030 - new version 1.25 * Thu Jan 12 2012 fwang <fwang> 1.24-1.mga2 + Revision: 195332 - disable valgrind test as suggested by upstream - new version 1.24 - new version 1.23 * Tue Jun 28 2011 fwang <fwang> 1.22-1.mga2 + Revision: 115103 - sync sig - new verison 1.22 * Fri Jan 14 2011 blino <blino> 1.19-2.mga1 + Revision: 17383 - remove old ldconfig scriptlets + ahmad <ahmad> - imported package libidn