%define major 2 %define libname %mklibname format %{major} Summary: A library for HTML syntax highlighting of source code Name: libformat Version: 1.5 Release: %mkrel 3 Group: System/Libraries License: GPL URL: http://daveb.net/format Source0: http://daveb.net/format/src/%{name}-%{version}.tar.bz2 BuildRequires: automake1.7 BuildRequires: autoconf2.5 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description libformat is an adaptation of the mod_format Apache module to do syntax highlighting of source code using HTML outside of Apache. libformat is capable of syntax highlighting C, C++, Java, Python, Verilog and VHDL source code. %package -n %{libname} Summary: A library for HTML syntax highlighting of source code Group: System/Libraries %description -n %{libname} libformat is an adaptation of the mod_format Apache module to do syntax highlighting of source code using HTML outside of Apache. libformat is capable of syntax highlighting C, C++, Java, Python, Verilog and VHDL source code. %package -n %{libname}-devel Summary: Static library and header files for the %{name} library Group: Development/C Provides: %{name}-devel = %{version} Requires: %{libname} = %{version} %description -n %{libname}-devel libformat is an adaptation of the mod_format Apache module to do syntax highlighting of source code using HTML outside of Apache. libformat is capable of syntax highlighting C, C++, Java, Python, Verilog and VHDL source code. This package contains the static %{name} library and its header files. %prep %setup -q %build export WANT_AUTOCONF_2_5=1 rm -f configure libtoolize --copy --force; aclocal-1.7; automake-1.7 --add-missing --copy; autoconf --force %configure2_5x %make %install [ "%{buildroot}" != "/" ] && 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 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/srcformat %{_libdir}/*.so.* %{_datadir}/libformat %files -n %{libname}-devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/*.la %changelog * Fri Jul 25 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.5-3mdv2009.0 + Revision: 248645 - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 1.5-1mdv2008.1 + Revision: 140921 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Wed May 09 2007 Oden Eriksson <oeriksson@mandriva.com> 1.5-1mdv2008.0 + Revision: 25435 - Import libformat * Wed Apr 05 2006 Oden Eriksson <oeriksson@mandriva.com> 1.5-1mdk - initial Mandriva package