rawhide report: 20080211 changes
Michael Schwendt
mschwendt at gmail.com
Tue Feb 26 18:48:25 UTC 2008
On Tue, 26 Feb 2008 19:29:14 +0100, Xavier Bachelot wrote:
> Nicolas Mailhot wrote:
> > Le Mar 26 février 2008 17:27, Xavier Bachelot a écrit :
> >
> >> Here's another try at xerces-c27 :
> >>
> >> http://washington.kelkoo.net/fedora/SPECS/xerces-c27.spec
> >> http://washington.kelkoo.net/fedora/SRPMS/xerces-c27-2.7.0-2.fc8.src.rpm
> >>
> >> rpmlint output (most of the errors are also in the original xerces-c
> >> package) :
> >> xerces-c27.i386: E: non-standard-executable-perm
> >> /usr/lib/libxerces-depdom.so.27.0 0775
> >
> > Replace your %defattr(-,root,root,-) with more specific permissions ;
> > trusting every single upstream to get this right is hopeless and
> > unless you audit the permissions after every update explicit defattr
> > is a good safety belt.
> >
> >> xerces-c27-doc.i386: W: file-not-utf8
> >> /usr/share/doc/xerces-c27-doc-2.7.0/doc/migration.xml
> >
> > Convert it at build time to proper UTF-8
> >
> This 2 warnings (and probably the others) will be easily fixed and need
> to be fixed in the original xerces-c package too. Thanks anyway :-)
> My question was more about the general shape of the 'compat' package.
--- xerces-c27.spec.orig 2008-02-26 16:52:24.000000000 +0100
+++ xerces-c27.spec 2008-02-26 19:47:06.000000000 +0100
@@ -77,10 +77,12 @@
%{__rm} -rf $RPM_BUILD_ROOT
export XERCESCROOT="$PWD"
%{__make} install -C src/xercesc DESTDIR="$RPM_BUILD_ROOT"
+/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT%{_libdir}/xerces-c-2.7.0
cd $RPM_BUILD_ROOT%{_libdir}/xerces-c-2.7.0/
ln -s ../libxerces-c.so.27 libxerces-c.so
ln -s ../libxerces-depdom.so.27 libxerces-depdom.so
+cd -
rm $RPM_BUILD_ROOT%{_libdir}/libxerces*.so
mkdir -p $RPM_BUILD_ROOT%{_includedir}/xercesc-2.7.0
mv $RPM_BUILD_ROOT%{_includedir}/xercesc $RPM_BUILD_ROOT%{_includedir}/xercesc-2.7.0
@@ -100,8 +102,9 @@
%files devel
%defattr(-,root,root,-)
+%dir %{_libdir}/xerces-c-2.7.0
%{_libdir}/xerces-c-2.7.0/libxerces*.so
-%{_includedir}/xercesc-2.7.0
+%{_includedir}/xercesc-2.7.0/
%files doc
More information about the fedora-devel-list
mailing list