mallard-rng/mallard-rng.spec
2019-12-14 18:57:48 +08:00

59 lines
1.3 KiB
RPMSpec

Name: mallard-rng
Version: 1.0.3
Release: 4
Summary: Provides installable RELAX NG schemas for all Mallard versions
License: MIT
URL: http://projectmallard.org/download/
Source0: http://projectmallard.org/download/%{name}-%{version}.tar.bz2
BuildArch: noarch
Requires(post): /usr/bin/xmlcatalog xml-common
Requires(postun): /usr/bin/xmlcatalog xml-common
%description
Provides installable RELAX NG schemas for all Mallard versions and extensions
that have been marked final.
%prep
%autosetup
%build
%configure
%make_build
%install
%make_install
%post
xmlcatalog --noout --add 'nextCatalog' 'file://%{_sysconfdir}/xml/mallard/catalog' "" %{_sysconfdir}/xml/catalog &> /dev/null || :
%postun
xmlcatalog --noout --del 'file://%{_sysconfdir}/xml/mallard/catalog' %{_sysconfdir}/xml/catalog &> /dev/null || :
%files
%doc AUTHORS NEWS README
%license COPYING
%{_datadir}/pkgconfig
%{_datadir}/xml/mallard
%{_sysconfdir}/xml/mallard
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/xml/mallard/catalog
%changelog
* Wed Nov 27 2019 hexiaowen <hexiaowen@huawei.com> - 1.0.3-7
- add --with-autoconf-archive
* Wed Nov 27 2019 hexiaowen <hexiaowen@huawei.com> - 1.0.3-2
- add buildrequires xml-common
* Tue Aug 27 2019 hexiaowen <hexiaowen@huawei.com> - 1.0.3.0-1
- Package init.