Using 'make distclean' instead of manual delete of .deps and .dirstamp.

epel9
Jonathan Robie 15 years ago
parent 7ef849a539
commit 977798b0e5

@ -1,7 +1,7 @@
Summary: Validating XML Parser
Name: xerces-c
Version: 3.0.1
Release: 9%{?dist}
Release: 10%{?dist}
License: ASL 2.0
Group: System Environment/Libraries
URL: http://xml.apache.org/xerces-c/
@ -10,13 +10,16 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: dos2unix
%description
Xerces-C is a validating XML parser written in a portable subset of
C++. Xerces-C makes it easy to give your application the ability to
read and write XML data. A shared library is provided for parsing,
generating, manipulating, and validating XML documents. Xerces-C is
faithful to the XML 1.0 recommendation and associated standards ( DOM
1.0, DOM 2.0. SAX 1.0, SAX 2.0, Namespaces).
%description Xerces-C is a validating XML parser written in a portable
subset of C++. Xerces-C makes it easy to give your application the
ability to read and write XML data. A shared library is provided for
parsing, generating, manipulating, and validating XML
documents. Xerces-C is faithful to the XML 1.0 recommendation and
associated standards: XML 1.0 (Third Edition), XML 1.1 (First
Edition), DOM Level 1, 2, 3 Core, Dom Level 2.0 Traversal and Range,
DOM Level 3.0 Load and Save, SAX 1.0 and SAX 2.0, Namespaces in XML,
Namespaces in XML 1.1, XML Schema, XML Inclusions).
%package devel
Summary: Header files, libraries and development documentation for %{name}
@ -61,9 +64,9 @@ make
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR="$RPM_BUILD_ROOT"
# get rid of files not allowed in a doc rpm
pushd samples; make clean; rm -rf src/*/.deps; rm -rf src/*/.dirstamp; popd
pushd samples; make distclean; popd
# correct errors in line endings and encoding
iconv -f iso8859-1 -t utf-8 CREDITS
iconv -f iso8859-1 -t utf-8 CREDITS > CREDITS.tmp && mv -f CREDITS.tmp CREDITS
pushd doc; dos2unix -U *.xml;
%post -p /sbin/ldconfig

Loading…
Cancel
Save