Accepting request 637416 from home:namtrac:branches:Publishing

Simplify futher

OBS-URL: https://build.opensuse.org/request/show/637416
OBS-URL: https://build.opensuse.org/package/show/Publishing/svg-schema?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal 2018-09-24 10:40:04 +00:00 committed by Git OBS Bridge
parent 273a0d9596
commit ddb9a7a7c1

View File

@ -19,9 +19,6 @@
%define regcat %{_bindir}/sgml-register-catalog
%define all_cat svg-1.0 svg-1.1
#
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
#
%define sgml_dir %{_datadir}/sgml
%define sgml_var_dir %{_localstatedir}/lib/sgml
#
@ -75,7 +72,7 @@ Summary: Documentation of SVG Schemas
Group: Productivity/Graphics/Other
%description doc
%{summary} in HTML
SVG DTD and RELAX NG Schema Documentation in HTML
%prep
%setup -q -c -T
@ -92,17 +89,17 @@ find -type f | xargs chmod 644
%install
# Catalogs:
%{INSTALL_DIR} %{buildroot}%{xml_sysconf_dir}/catalog.d
install -d -m755 %{buildroot}%{xml_sysconf_dir}/catalog.d
#RNG
%{INSTALL_DIR} %{buildroot}%{xml_mod_rng_dir}/1.1
install -d -m755 %{buildroot}%{xml_mod_rng_dir}/1.1
cp rng11/* %{buildroot}%{xml_mod_rng_dir}/1.1
#DTD
%{INSTALL_DIR} %{buildroot}%{xml_mod_dtd_dir}/1.{0,1} \
install -d -m755 %{buildroot}%{xml_mod_dtd_dir}/1.{0,1} \
%{buildroot}%{sgml_var_dir} %{buildroot}%{sgml_dir} \
%{buildroot}%{_docdir}/%{name}/{1.0,1.1}
# Data:
%{INSTALL_DATA} CATALOG.* %{buildroot}%{sgml_var_dir}
%{INSTALL_DATA} svg-1.[01].xml %{buildroot}%{xml_sysconf_dir}/catalog.d/
install -m644 CATALOG.* %{buildroot}%{sgml_var_dir}
install -m644 svg-1.[01].xml %{buildroot}%{xml_sysconf_dir}/catalog.d/
pushd REC-SVG11-20030114
cp -a * %{buildroot}%{_docdir}/%{name}/1.1
@ -131,7 +128,7 @@ pushd svg-dtd-20010904
"file://%{xml_mod_rng_dir}/1.1/svg11.rng" %{buildroot}%{xml_sysconf_dir}/catalog.d/svg11-rng.xml
popd
%{INSTALL_DIR} %{buildroot}%{_sysconfdir}/xml
install -d -m755 %{buildroot}%{_sysconfdir}/xml
%fdupes %{buildroot}%{_docdir}
%post