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