%define version 20080409 %define release %mkrel 1 %define major 0 %define libname %mklibname uninameslist %{major} %define develname %mklibname uninameslist -d Summary: A Library of Unicode annotation data Name: libuninameslist Version: %{version} Release: %{release} License: BSD Style Group: System/Libraries URL: http://libuninameslist.sourceforge.net/ Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 #Patch0: libuninameslist-destdir.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description The Unicode consortium provides a file containing annotations on many unicode characters. This library contains a compiled version of this file so that programs can access these data easily. %package -n %{libname} Summary: A Library of Unicode annotation data Group: System/Libraries Provides: %{name} = %{version}-%{release} %description -n %{libname} The Unicode consortium provides a file containing annotations on many unicode characters. This library contains a compiled version of this file so that programs can access these data easily. %package -n %{develname} Summary: Development files for %{name} Group: Development/C Provides: %{name}-devel = %{version}-%{release} Requires: %{libname} = %{version} Obsoletes: %{_lib}uninameslist0-devel %description -n %{develname} The Unicode consortium provides a file containing annotations on many unicode characters. This library contains a compiled version of this file so that programs can access these data easily. This package provides development related files for compiling or developing any software that make use of this library. %prep %setup -q -n %{name} #%patch0 -p1 -b .destdir %build %configure --enable-static %make %install rm -rf %{buildroot} %makeinstall_std %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %clean rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc LICENSE %{_libdir}/lib*.so.%{major}* %files -n %{develname} %defattr(-,root,root) %{_includedir}/* %{_libdir}/lib*.so %{_libdir}/lib*.a %{_libdir}/lib*.la %changelog * Fri Sep 05 2008 Emmanuel Andry <eandry@mandriva.org> 20080409-1mdv2009.0 + Revision: 281375 - New version - apply devel policy - check major * Tue Jun 17 2008 Thierry Vignaud <tvignaud@mandriva.com> 20060907-2mdv2009.0 + Revision: 223014 - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Mon Dec 17 2007 Thierry Vignaud <tvignaud@mandriva.com> 20060907-1mdv2008.1 + Revision: 129169 - kill re-definition of %%buildroot on Pixel's request * Thu May 03 2007 Adam Williamson <awilliamson@mandriva.com> 20060907-1mdv2008.0 + Revision: 20864 - 20060907, rebuild for new era * Sun Jan 16 2005 Abel Cheung <deaddog@mandrake.org> 040707-1mdk - First Mandrakelinux package - P0: Add DESTDIR support and add missing --mode=* to libtool calls