blob: c69f94f3e9f58c21a643485e047c104f4c08e092 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
Name: xmlstarlet
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: libtool
BuildRequires: libxml2-devel >= 2.6.27
BuildRequires: libxslt-devel >= 1.1.9
BuildRequires: pkgconfig
#BuildRequires: sgml-skel
Summary: Command Line Tool to Process XML Documents
License: MIT
Group: Productivity/Publishing/XML
Version: 1.4.1
Release: 0
Source: http://prdownloads.sourceforge.net/xmlstar/xmlstarlet-%{version}.tar.gz
#Source1: %{name}-rpmlintrc
#Patch2: %{name}-xml_depyx.c.diff
#BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://sourceforge.net/projects/xmlstar/
requires: libxml2
%description
XMLStarlet (xml) is a command line XML toolkit which can be used to
transform, query, validate, and edit XML documents and files using
simple set of shell commands in similar way it is done for plain text
files using 'grep', 'sed', 'awk', 'tr', 'diff', or 'patch'.
%prep
%setup -q
#%patch2
%build
export CFLAGS="$RPM_OPT_FLAGS -W -Wall"
%configure \
--disable-static-libs
%__make %{?_smp_mflags}
%check
%__make tests
%install
%makeinstall
#ln -s %{buildroot}/usr/bin/xml %{buildroot}/usr/bin/xmlstarlet
#install -d _docs
#%__mv "%{buildroot}%{_datadir}/doc"/* _docs/
#%__rm -rf "%{buildroot}%{_datadir}/doc"
rm -rf %{buildroot}/usr/share
%post
ln -s /usr/bin/xml /usr/bin/xmlstarlet
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-, root, root)
#%doc AUTHORS ChangeLog NEWS README Copyright TODO
#%doc _docs/*
%{_bindir}/xml
#%{_bindir}/xmlstarlet
#%doc %{_mandir}/man1/xmlstarlet.1%{ext_man}
%changelog
|