Group :: Ferramentas de texto
RPM: xmlstarlet
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: xmlstarlet
Summary: Command Line XML Toolkit
Version: 1.0.1
Release: alt2
License: MIT
Group: Text tools
URL: http://xmlstar.sourceforge.net/
Packager: Alexey Sidorov <alexsid at altlinux.ru>
Source0: http://xmlstar.sourceforge.net/downloads/xmlstarlet-%{version}.tar.gz
Patch0: xmlstarlet-1.0.1-nostatic.patch
Patch1: xmlstarlet-1.0.1-cmdname.patch
Patch2: xmlstarlet-1.0.1-docs.patch
Patch3: xmlstarlet-1.0.1-html.patch
Patch4: xmlstarlet-1.0.1-txt.patch
BuildRequires: libxml2-devel libxslt-devel
%description
XMLStarlet is a set of command line utilities 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 UNIX grep, sed, awk, diff, patch, join, etc
commands.
%prep
%setup -q
#patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%__subst "s|.a |.so |g" configure.in
%__subst "s|.a |.so |g" configure
%build
%configure --with-libxml-libs-prefix=%_libdir \
--with-libxslt-libs-prefix=%_libdir
# --program-transform-name=%name
%make_build
%install
%make install DESTDIR=%buildroot
mv %buildroot%_bindir/xml %buildroot%_bindir/%name
%files
%doc AUTHORS ChangeLog NEWS README Copyright TODO doc/xmlstarlet.txt doc/xmlstarlet-ug.html
#doc examples
%doc %{_mandir}/man1/xmlstarlet.1*
%_bindir/%name
%changelog
…
Todas as alterações você pod ver aqui
Summary: Command Line XML Toolkit
Version: 1.0.1
Release: alt2
License: MIT
Group: Text tools
URL: http://xmlstar.sourceforge.net/
Packager: Alexey Sidorov <alexsid at altlinux.ru>
Source0: http://xmlstar.sourceforge.net/downloads/xmlstarlet-%{version}.tar.gz
Patch0: xmlstarlet-1.0.1-nostatic.patch
Patch1: xmlstarlet-1.0.1-cmdname.patch
Patch2: xmlstarlet-1.0.1-docs.patch
Patch3: xmlstarlet-1.0.1-html.patch
Patch4: xmlstarlet-1.0.1-txt.patch
BuildRequires: libxml2-devel libxslt-devel
%description
XMLStarlet is a set of command line utilities 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 UNIX grep, sed, awk, diff, patch, join, etc
commands.
%prep
%setup -q
#patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%__subst "s|.a |.so |g" configure.in
%__subst "s|.a |.so |g" configure
%build
%configure --with-libxml-libs-prefix=%_libdir \
--with-libxslt-libs-prefix=%_libdir
# --program-transform-name=%name
%make_build
%install
%make install DESTDIR=%buildroot
mv %buildroot%_bindir/xml %buildroot%_bindir/%name
%files
%doc AUTHORS ChangeLog NEWS README Copyright TODO doc/xmlstarlet.txt doc/xmlstarlet-ug.html
#doc examples
%doc %{_mandir}/man1/xmlstarlet.1*
%_bindir/%name
%changelog
…
Todas as alterações você pod ver aqui