]>
Commit | Line | Data |
---|---|---|
1 | Summary: Command Line XML Toolkit | |
2 | Summary(pl.UTF-8): Zestaw obsługiwanych z linii poleceń narzędzi do XML-a | |
3 | Name: xmlstarlet | |
4 | Version: 1.3.1 | |
5 | Release: 2 | |
6 | License: MIT | |
7 | Group: Applications/Publishing/XML | |
8 | Source0: http://downloads.sourceforge.net/xmlstar/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 5173ad3f01ec0ba0d54bd1fbfc057abf | |
10 | URL: http://xmlstar.sourceforge.net/ | |
11 | BuildRequires: autoconf >= 2.62 | |
12 | BuildRequires: automake >= 1:1.11 | |
13 | BuildRequires: libxml2-devel >= 1:2.6.27 | |
14 | BuildRequires: libxslt-devel >= 1.1.9 | |
15 | Requires: libxml2 >= 1:2.6.27 | |
16 | Requires: libxslt >= 1.1.9 | |
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 | ||
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 | ||
32 | %prep | |
33 | %setup -q | |
34 | ||
35 | %build | |
36 | %{__aclocal} -I m4 | |
37 | %{__autoconf} | |
38 | %{__autoheader} | |
39 | %{__automake} | |
40 | %configure \ | |
41 | --disable-silent-rules | |
42 | %{__make} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | # rename to what is expected, keep "xml" name for compatibility | |
51 | ln $RPM_BUILD_ROOT%{_bindir}/xml $RPM_BUILD_ROOT%{_bindir}/xmlstarlet | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc AUTHORS ChangeLog NEWS README Copyright TODO doc/xmlstarlet.txt doc/xmlstarlet.pdf | |
59 | %attr(755,root,root) %{_bindir}/xml | |
60 | %attr(755,root,root) %{_bindir}/xmlstarlet | |
61 | %{_mandir}/man1/xmlstarlet.1* |