# # spec file for package mxml # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: mxml Url: http://www.easysw.com/~mike/mxml License: LGPL v2.1 or later Group: Development/Libraries/Other Version: 2.6 Release: 1 Summary: Small XML Parsing Library Source: %{name}-%{version}.tar.bz2 Patch: mxml-2.3-nobinstrip.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkgconfig %description Mini-XML is a small XML parsing library that you can use to read XML and XML-like data files in your application without requiring large nonstandard libraries. This package holds the commandline tools for mxml. Authors: -------- Michael Sweet %define library_name libmxml1 %package -n libmxml1 License: LGPL v2.1 or later Group: Development/Libraries/Other # Summary: Shared library for mxml %description -n libmxml1 Mini-XML is a small XML parsing library that you can use to read XML and XML-like data files in your application without requiring large nonstandard libraries. This package holds the shared library for mxml. Authors: -------- Michael Sweet %package devel License: GPL v2 or later Group: Development/Libraries/Other Requires: %{library_name} = %{version} # Summary: Development files for mxml %description devel Mini-XML is a small XML parsing library that you can use to read XML and XML-like data files in your application without requiring large nonstandard libraries. This package holds the development files for mxml. Authors: -------- Michael Sweet %prep %setup %patch %build %configure --enable-shared --with-docdir=%{_docdir}/%{name} %{__make} %install %makeinstall DSTROOT=%{buildroot} # we dont want the static lib %{__rm} -rv %{buildroot}%{_libdir}/libmxml.a %clean %{__rm} -rf %{buildroot} %post -n %{library_name} -p /sbin/ldconfig %postun -n %{library_name} -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/mxmldoc %{_mandir}/man1/mxmldoc.1* %doc %{_docdir}/%{name} %exclude %{_docdir}/%{name}/mxml.html %exclude %{_docdir}/%{name}/*gif %files -n %{library_name} %defattr(-,root,root) %{_libdir}/libmxml.so.1* %files devel %defattr(-,root,root) %{_includedir}/mxml.h %{_libdir}/libmxml.so %{_libdir}/pkgconfig/mxml.pc %{_mandir}/man3/mxml.3* %doc %{_docdir}/%{name}/mxml.html %doc %{_docdir}/%{name}/*gif %changelog