[packages/xsd] - -fpermissive also for debug builds; use __rm macro
qboosh
qboosh at pld-linux.org
Fri Nov 24 21:04:35 CET 2017
commit a1fd04841fd832984a0f7ac2d3f1bdf9e37e2415
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Nov 24 21:05:34 2017 +0100
- -fpermissive also for debug builds; use __rm macro
xsd.spec | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/xsd.spec b/xsd.spec
index 23fa286..23977d9 100644
--- a/xsd.spec
+++ b/xsd.spec
@@ -13,13 +13,12 @@ Patch0: %{name}-3.3.0-xsdcxx-rename.patch
URL: http://www.codesynthesis.com/products/xsd/
BuildRequires: boost-devel
BuildRequires: iconv
+BuildRequires: libstdc++-devel
BuildRequires: m4
BuildRequires: xerces-c-devel
Requires: xerces-c-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define specflags -fpermissive
-
%description
CodeSynthesis XSD is an open-source, cross-platform W3C XML Schema to
C++ data binding compiler. Provided with an XML instance specification
@@ -61,7 +60,7 @@ cd ..
%build
%{__make} \
verbose=1 \
- CXXFLAGS="%{rpmcxxflags}"
+ CXXFLAGS="%{rpmcxxflags} -fpermissive"
%install
rm -rf $RPM_BUILD_ROOT
@@ -71,13 +70,13 @@ rm -rf $RPM_BUILD_ROOT
# Split API documentation to -doc subpackage.
rm -rf apidocdir
install -d apidocdir
-mv $RPM_BUILD_ROOT%{_docdir}/xsd/*.{xhtml,css} apidocdir/
-mv $RPM_BUILD_ROOT%{_docdir}/xsd/cxx/ apidocdir/
-mv $RPM_BUILD_ROOT%{_docdir}/xsd/ docdir/
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/xsd/*.{xhtml,css} apidocdir/
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/xsd/cxx/ apidocdir/
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/xsd/ docdir/
# Convert to utf-8.
for file in docdir/NEWS; do
- mv $file timestamp
+ %{__mv} $file timestamp
iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp
touch -r timestamp $file
done
@@ -85,8 +84,8 @@ done
# Rename binary to xsdcxx to avoid conflicting with mono-web package.
# Sent suggestion to upstream via e-mail 20090707
# they will consider renaming in 4.0.0
-mv $RPM_BUILD_ROOT%{_bindir}/xsd $RPM_BUILD_ROOT%{_bindir}/xsdcxx
-mv $RPM_BUILD_ROOT%{_mandir}/man1/xsd.1 $RPM_BUILD_ROOT%{_mandir}/man1/xsdcxx.1
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/xsd $RPM_BUILD_ROOT%{_bindir}/xsdcxx
+%{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/xsd.1 $RPM_BUILD_ROOT%{_mandir}/man1/xsdcxx.1
# Remove duplicate docs.
%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libxsd
@@ -97,11 +96,11 @@ mv $RPM_BUILD_ROOT%{_mandir}/man1/xsd.1 $RPM_BUILD_ROOT%{_mandir}/man1/xsdcxx.1
# Remove redundant PostScript files that rpmlint grunts about not being UTF8
# See: https://bugzilla.redhat.com/show_bug.cgi?id=502024#c27
# for Boris Kolpackov's explanation about those
-find apidocdir -name "*.ps" | xargs rm -f
+find apidocdir -name "*.ps" | xargs %{__rm}
# Remove other unwanted crap
find apidocdir -name "*.doxygen" \
-o -name "makefile" \
- -o -name "*.html2ps" | xargs rm -f
+ -o -name "*.html2ps" | xargs %{__rm}
%clean
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xsd.git/commitdiff/a1fd04841fd832984a0f7ac2d3f1bdf9e37e2415
More information about the pld-cvs-commit
mailing list