diff options
author | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:20:46 +0900 |
---|---|---|
committer | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:20:46 +0900 |
commit | 7122fb9745e4622cb4c5d340cf1557e2fda1efe3 (patch) | |
tree | 393207d68983c3b587733b83714bef2de2457025 /packaging/xmlstarlet.spec | |
download | xmlstarlet-7122fb9745e4622cb4c5d340cf1557e2fda1efe3.tar.gz xmlstarlet-7122fb9745e4622cb4c5d340cf1557e2fda1efe3.tar.bz2 xmlstarlet-7122fb9745e4622cb4c5d340cf1557e2fda1efe3.zip |
Initialize Tizen 2.3tizen_2.3_releasesubmit/tizen_2.3/20150202.060653submit/tizen_2.3/20140531.1148112.3a_releasetizen_2.3
Diffstat (limited to 'packaging/xmlstarlet.spec')
-rw-r--r-- | packaging/xmlstarlet.spec | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/packaging/xmlstarlet.spec b/packaging/xmlstarlet.spec new file mode 100644 index 0000000..c69f94f --- /dev/null +++ b/packaging/xmlstarlet.spec @@ -0,0 +1,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 |