%define name libxml++ %define version 0.20.0 %define release 1mdk %define major 4 %define libname %name%major Name: %{name} Summary: C++ interface for working with XML files Version: %{version} Release: %{release} Source: %{name}-%{version}.tar.bz2 URL: http://sourceforge.net/projects/libxmlplusplus License: GPL Group: System/Libraries BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: libxml2-devel %description libxml++ is a C++ interface for working with XML files, using libxml (gnome-xml) to parse and write the actual XML files. It has a simple but complete API. %package -n %{libname} Summary: Main library for %name Group: System/Libraries Provides: %{name} = %{version}-%{release} %description -n %{libname} libxml++ is a C++ interface for working with XML files, using libxml (gnome-xml) to parse and write the actual XML files. It has a simple but complete API. %package -n %{libname}-devel Summary: Headers for developing programs that will use %name. Group: Development/C++ Requires: %{libname} = %{version} Provides: lib%{name}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{libname}-devel This package contains the headers that programmers will need to develop applications which will use libraries from %name. %prep %setup -q %build %configure %make %install rm -rf $RPM_BUILD_ROOT %makeinstall %clean rm -rf $RPM_BUILD_ROOT %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so.* %files -n %{libname}-devel %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/xml++-config %{_includedir}/%name-1.0/%name/* %{_datadir}/aclocal/*.m4 %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/*.la %changelog * Thu Jan 16 2003 Austin Acton <aacton@yorku.ca> 0.20.0-1mdk - initial package