diff --git a/.gitignore b/.gitignore index e69de29..b3345ea 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mallard-rng-1.0.2.tar.bz2 diff --git a/mallard-rng.spec b/mallard-rng.spec new file mode 100644 index 0000000..c3ca0ca --- /dev/null +++ b/mallard-rng.spec @@ -0,0 +1,54 @@ +Name: mallard-rng +Version: 1.0.2 +Release: 1%{?dist} +Summary: 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 +Requires(post): xml-common +Requires(postun): /usr/bin/xmlcatalog +Requires(postun): xml-common + +%description +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}/xml/mallard +%{_datadir}/pkgconfig +%{_sysconfdir}/xml/mallard +%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/xml/mallard/catalog + + + +%changelog +* Thu Apr 21 2016 David King - 1.0.2-1 +- Initial Fedora packaging (#1264945) diff --git a/sources b/sources index e69de29..952f63c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0561142de0959c502c978c2f221de9f0 mallard-rng-1.0.2.tar.bz2