Skip to content

Commit

Permalink
Merge branch 'jb51009_fix_examples' into 'master'
Browse files Browse the repository at this point in the history
[libxml2] Don't clean examples. Contributes to JB#51009

See merge request mer-core/libxml2!7
  • Loading branch information
Matti Kosola committed Oct 17, 2020
2 parents 5db3b13 + 01f7bf6 commit e4151c8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions rpm/libxml2.spec
Expand Up @@ -3,7 +3,6 @@ Name: libxml2
Version: 2.9.8
Release: 1
License: MIT
Group: System/Libraries
Source0: ftp://xmlsoft.org/libxml2/%{name}-%{version}.tar.gz
Patch1: 0001-Suppress-documentation-installation-as-it-causes-pro.patch

Expand All @@ -23,15 +22,13 @@ URI library.

%package python-build
Summary: Package for building python extensions
Group: Development/Libraries
Requires: libxml2-devel = %{version}-%{release}

%description python-build
%{summary}

%package devel
Summary: Libraries, includes, etc. to develop XML and HTML applications
Group: Development/Libraries
Requires: libxml2 = %{version}-%{release}
Requires: zlib-devel
Requires: pkgconfig
Expand All @@ -50,7 +47,6 @@ URI library.

%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}

%description doc
Expand All @@ -75,15 +71,11 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.a

# multiarch crazyness on timestamp differences or Makefile/binaries for examples
touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxml2/libxml/parser.h $RPM_BUILD_ROOT/%{_bindir}/xml2-config
(cd doc/examples ; make clean ; rm -rf .deps Makefile)

mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
install -m0644 -t $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ \
AUTHORS ChangeLog.gz CONTRIBUTING MAINTAINERS NEWS README TODO

%clean
rm -fr %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig
Expand Down

0 comments on commit e4151c8

Please sign in to comment.