]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Change example specfile to build with libxml2
authorMichael Schroeder <mls@suse.de>
Tue, 28 Feb 2017 14:06:10 +0000 (15:06 +0100)
committerMichael Schroeder <mls@suse.de>
Tue, 28 Feb 2017 14:06:10 +0000 (15:06 +0100)
package/libsolv.spec.in

index cd0f2670777cf18db7ae3b0a734ac0daa5b2a9b4..d21562c19c6c4aebbb0bc67b752b95fce424aa37 100644 (file)
@@ -37,21 +37,13 @@ BuildRequires:  libneon0.26-devel
 %if 0%{?fedora_version} || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600
 BuildRequires:  db-devel
 %endif
-%if 0%{?suse_version}
-%if 0%{?suse_version} < 1030
-BuildRequires:  expat
-%else
-BuildRequires:  libexpat-devel
-%endif
-%if 0%{?suse_version} < 1100
+BuildRequires:  libxml2-devel
+%if 0%{?suse_version} && 0%{?suse_version} < 1100
 BuildRequires:  graphviz
 %endif
 %if 0%{?suse_version} > 1020
 BuildRequires:  fdupes
 %endif
-%else
-BuildRequires:  expat-devel
-%endif
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
 BuildRequires:  rpm-devel
@@ -186,6 +178,7 @@ cmake       $CMAKE_FLAGS \
        -DLIB=%{_lib} \
        -DCMAKE_VERBOSE_MAKEFILE=TRUE \
        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+       -DWITH_LIBXML2=1 \
        %{?with_enable_static:-DENABLE_STATIC=1} \
        %{?with_disable_shared:-DDISABLE_SHARED=1} \
        %{?with_perl_binding:-DENABLE_PERL=1} \