]>
Commit | Line | Data |
---|---|---|
a734d112 | 1 | Summary: Command Line XML Toolkit |
cd53ec7e | 2 | Summary(pl.UTF-8): Zestaw obsługiwanych z linii poleceń narzędzi do XML-a |
a734d112 | 3 | Name: xmlstarlet |
a53c4431 | 4 | Version: 1.3.1 |
0bf45755 | 5 | Release: 2 |
a734d112 | 6 | License: MIT |
7 | Group: Applications/Publishing/XML | |
dd7a0e15 | 8 | Source0: http://downloads.sourceforge.net/xmlstar/%{name}-%{version}.tar.gz |
a53c4431 | 9 | # Source0-md5: 5173ad3f01ec0ba0d54bd1fbfc057abf |
a734d112 | 10 | URL: http://xmlstar.sourceforge.net/ |
dd7a0e15 JB |
11 | BuildRequires: autoconf >= 2.62 |
12 | BuildRequires: automake >= 1:1.11 | |
1b37236e | 13 | BuildRequires: libxml2-devel >= 1:2.6.27 |
20e20a2c | 14 | BuildRequires: libxslt-devel >= 1.1.9 |
1b37236e | 15 | Requires: libxml2 >= 1:2.6.27 |
dd7a0e15 | 16 | Requires: libxslt >= 1.1.9 |
a734d112 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | XMLStarlet is a set of command line utilities which can be used to | |
21 | transform, query, validate, and edit XML documents and files using | |
22 | simple set of shell commands in similar way it is done for plain text | |
23 | files using UNIX grep, sed, awk, diff, patch, join, etc commands. | |
24 | ||
cd53ec7e JB |
25 | %description -l pl.UTF-8 |
26 | XMLStarlet to zestaw obsługiwanych z linii poleceń narzędzi, których | |
27 | można używać do przekształcania, odpytywania, sprawdzania poprawności | |
28 | i modyfikowania dokumentów i plików XML przy użyciu prostego zbioru | |
29 | poleceń powłoki podobnie jak robi się to z plikami czysto tekstowymi | |
30 | przy użyciu poleceń uniksowych grep, sed, awk, diff, patch, join itp. | |
31 | ||
a734d112 | 32 | %prep |
33 | %setup -q | |
a734d112 | 34 | |
35 | %build | |
dd7a0e15 | 36 | %{__aclocal} -I m4 |
a734d112 | 37 | %{__autoconf} |
38 | %{__autoheader} | |
39 | %{__automake} | |
dd7a0e15 JB |
40 | %configure \ |
41 | --disable-silent-rules | |
a734d112 | 42 | %{__make} |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
dd7a0e15 JB |
50 | # rename to what is expected, keep "xml" name for compatibility |
51 | ln $RPM_BUILD_ROOT%{_bindir}/xml $RPM_BUILD_ROOT%{_bindir}/xmlstarlet | |
52 | ||
a734d112 | 53 | %clean |
b22be719 | 54 | rm -rf $RPM_BUILD_ROOT |
a734d112 | 55 | |
a734d112 | 56 | %files |
57 | %defattr(644,root,root,755) | |
58 | %doc AUTHORS ChangeLog NEWS README Copyright TODO doc/xmlstarlet.txt doc/xmlstarlet.pdf | |
a734d112 | 59 | %attr(755,root,root) %{_bindir}/xml |
dd7a0e15 | 60 | %attr(755,root,root) %{_bindir}/xmlstarlet |
cd53ec7e | 61 | %{_mandir}/man1/xmlstarlet.1* |