LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File xml-coreutils.spec of Package xml-coreutils (Project home:rudi_m)

# vim: set ts=4 sw=4 et:

Name:           xml-coreutils
Version:        0.8.1
Release:        0
Summary:        Command Line Tools for Reading and Writing XML Files
# http://prdownloads.sourceforge.net/xml-coreutils/xml-coreutils-%{version}.tar.gz
Source:         %{name}-%{version}.tar.bz2
# various fixes taken from https://github.com/rudimeier/xml-coreutils/
Patch1:         %{name}-github-rudimeier-v0.8.1-18-g9a5e6d9.patch
# autoreconf after all other patches were applied
Patch2:         %{name}-autoreconf.patch
URL:            http://xml-coreutils.sourceforge.net/
Group:          Productivity/Text/Utilities
License:        GNU General Public License version 3 (GPL v3)
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
%if 0%{?suse_version} > 0 && 0%{?suse_version} >= 1030
BuildRequires:  libexpat-devel
BuildRequires:  expat-devel
BuildRequires:  gcc make glibc-devel pkgconfig
BuildRequires:  slang-devel

The xml-coreutils are a set of command line tools for reading and writing XML
files in a Unix/POSIX type shell environment. The tools try to be as close as
possible to the traditional text processing tools... cat, echo, sed, etc

%setup -q
%patch1 -p1
%patch2 -p1

export CPPFLAGS="%{optflags} -I/usr/include/slang"
%__make %{?_smp_mflags}

%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
%__rm -rf "%{buildroot}%{_datadir}/xml-coreutils"

%__rm doc/Makefile*

%__make -C src check

%{?buildroot:%__rm -rf "%{buildroot}"}

%doc doc/*
%doc %{_mandir}/man1/xml-*.1*
%doc %{_mandir}/man7/xml-coreutils.7*