Compare commits
5 Commits
libxml-cxx
...
libxml-cxx
Author | SHA1 | Date | |
---|---|---|---|
|
4312a91c47 | ||
|
48e9184f11 | ||
|
b409d8408a | ||
|
5b2c220bdb | ||
|
a63ffb0161 |
@@ -6,8 +6,13 @@ License: LGPL
|
|||||||
Group: Development/Libraries/C++
|
Group: Development/Libraries/C++
|
||||||
URL: https://dev.marc.waeckerlin.org/projects/@PACKAGENAME@
|
URL: https://dev.marc.waeckerlin.org/projects/@PACKAGENAME@
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
BuildRequires: subversion libcppunit-devel gcc-c++ doxygen graphviz texlive automake autoconf libtool make
|
BuildRequires: subversion gcc-c++ doxygen graphviz texlive automake autoconf libtool make
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
|
||||||
|
BuildRequires: cppunit-devel
|
||||||
|
%else%if 0%{?suse_version} || 0%{?sles_version}
|
||||||
|
BuildRequires: libcppunit-devel
|
||||||
|
%endif%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -19,7 +24,7 @@ This package contains only the shared libraries required at runtime.
|
|||||||
%setup -q
|
%setup -q
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--docdir=/usr/share/doc/packages/@PACKAGENAME@ \
|
--docdir=/usr/share/doc/packages/@PACKAGENAME@ \
|
||||||
--libdir=/usr/lib
|
--libdir=/usr/%_lib
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make
|
||||||
@@ -32,7 +37,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
/usr/lib/@PACKAGENAME@.so.*
|
/usr/%_lib/@PACKAGENAME@.so.*
|
||||||
%doc
|
%doc
|
||||||
/usr/share/doc/packages/@PACKAGENAME@/AUTHORS
|
/usr/share/doc/packages/@PACKAGENAME@/AUTHORS
|
||||||
/usr/share/doc/packages/@PACKAGENAME@/COPYING
|
/usr/share/doc/packages/@PACKAGENAME@/COPYING
|
||||||
@@ -54,10 +59,10 @@ This Package contains all files required for developement.
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
/usr/lib/@PACKAGENAME@.so
|
/usr/%_lib/@PACKAGENAME@.so
|
||||||
/usr/lib/@PACKAGENAME@.a
|
/usr/%_lib/@PACKAGENAME@.a
|
||||||
/usr/lib/pkgconfig
|
/usr/%_lib/pkgconfig
|
||||||
/usr/lib/@PACKAGENAME@.la
|
/usr/%_lib/@PACKAGENAME@.la
|
||||||
/usr/include/
|
/usr/include/
|
||||||
/usr/share/pkgconfig
|
/usr/share/pkgconfig
|
||||||
%doc
|
%doc
|
||||||
|
@@ -1303,7 +1303,7 @@ namespace xml {
|
|||||||
for (xml::Node::size_type i(0); i<node->children(); ++i) {
|
for (xml::Node::size_type i(0); i<node->children(); ++i) {
|
||||||
typename CONTAINER_TYPE::value_type tmp;
|
typename CONTAINER_TYPE::value_type tmp;
|
||||||
Serialize::fromNode(&tmp, (*node)[i]); // reads into tmp
|
Serialize::fromNode(&tmp, (*node)[i]); // reads into tmp
|
||||||
push_back(tmp);
|
this->push_back(tmp);
|
||||||
}
|
}
|
||||||
return is;
|
return is;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user