From ddb9a7a7c148fbc41a16ab9be7f60454062e0ce7291eab2b6048cf476f38178a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 24 Sep 2018 10:40:04 +0000 Subject: [PATCH] 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 --- svg-schema.spec | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/svg-schema.spec b/svg-schema.spec index be0cbe9..ded8d35 100644 --- a/svg-schema.spec +++ b/svg-schema.spec @@ -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