File diffmk.spec of Package diffmk
#
# spec file for package diffmk (Version 1.0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: diffmk
URL: http://wwws.sun.com/software/xml/developers/diffmk/
License: BSD License and BSD-like
Group: Productivity/Publishing/XML
Requires: perl = %{perl_version}
Requires: perl-Algorithm-Diff perl-XML-DOM perl-XML-Parser
BuildRequires: unzip
Autoreqprov: on
Summary: Compute Differences between XML Documents
Version: 1.0
Release: 44
Provides: perl-diffmk
Obsoletes: perl-diffmk
Source: http://wwws.sun.com/software/xml/developers/diffmk/diffmk-1.0.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArchitectures: noarch
%description
Using DiffMk, you can build an automated comparison of two XML
documents. The output format for viewing is HTML.
Authors:
--------
Norman Walsh <ndw@nwalsh.com>
%prep
%setup -T -D -c
unzip -a %{S:0}
%define perl_site %(TMP=%{perl_sitearch}; echo ${TMP%/*})
%build
cp diffmk diffmk.tmp
sed "s|\(\"/\.diffmk\.xml\",\)|\1 \"%{_datadir}/xml/diffmk/dtd/diffmk.xml\",|" \
diffmk.tmp > diffmk
%install
rm -rf $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT%{_bindir} \
$RPM_BUILD_ROOT%{_datadir}/xml/diffmk/{dtd,xsd,xml}
install -m 755 diffmk $RPM_BUILD_ROOT%{_bindir}
install -m 755 diffmk.dtd $RPM_BUILD_ROOT%{_datadir}/xml/diffmk/dtd
install -m 755 diffmk.xsd $RPM_BUILD_ROOT%{_datadir}/xml/diffmk/xsd
install -m 755 diffmk.xml $RPM_BUILD_ROOT%{_datadir}/xml/diffmk/xml
pushd $RPM_BUILD_ROOT%{_datadir}/xml/diffmk/dtd \
&& ln -sf ../xml/diffmk.xml . \
&& popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc diff.* diffmk.* README.html diff.txt
%doc frames.html out.html out.xml refentry.html refentry.xml test1.html
%doc test1.xml test2.html test2.xml
%{_bindir}/*
%{_datadir}/xml/diffmk
%changelog
* Thu Mar 29 2007 - ke@suse.de
- Add BuildRequires: unzip.
* Tue Jan 16 2007 - ke@suse.de
- Remove /usr/share/xml from the files list.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jun 07 2004 - ke@suse.de
- Rename package to diffmk as reported by Thorsten Kukuk.
* Wed Feb 04 2004 - ke@suse.de
- New package: version 1.0