[Tizen-submit] 5770: Changes to Tizen/sgml-skel

noreply at tizen.org noreply at tizen.org
Mon May 20 11:21:22 GMT 2013


Hi,
Prajwal Mohan have made the following changes to sgml-skel in project Tizen. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #5770

  submit:       Tizen:build/sgml-skel(cleanup) -> Tizen


Message:
Submitter: Prajwal Mohan <prajwal.karur.mohan at intel.com>
Comments: submit/tizen/20130517.024132
Git project: platform/upstream/sgml-skel
Tag: submit/tizen/20130517.024132
Commit: a5298e9 fixed script path

State:   accepted   2013-05-16T20:35:48 pkarurmo
Comment: Ok

History: new        2013-05-16T19:40:35 tizenrobot
new:
----
  0001-regcat.patch
  edit-xml-catalog.sh
  install-catalog.in
  sgml-skel-0.6.tar.bz2
  sgml-skel.spec

spec files:
-----------

++++++ new spec file:
--- sgml-skel.spec
+++ sgml-skel.spec
@@ -0,0 +1,73 @@
+Name:           sgml-skel
+Version:        0.6
+Release:        0
+VCS:            platform/upstream/sgml-skel#submit/tizen/20130517.024132-0-ga5298e9
+License:        GPL-2.0+
+Summary:        Helper Scripts for the SGML System
+Group:          Productivity/Publishing/SGML
+# URL:
+Source0:        http://www.suse.de/~ke/%{name}/%{name}-%{version}.tar.bz2
+# :pserver:anoncvs at sources.redhat.com:/cvs/docbook-tools
+Source1:        docbook-tools/sgml-common/bin/install-catalog.in
+Source2:        edit-xml-catalog.sh
+# Patches auto-generated by git-buildpackage:
+Patch0:     0001-regcat.patch
+BuildRequires:  automake
+BuildRequires:  libxml2-tools
+Requires(pre):  /usr/bin/awk
+Requires(pre):  /usr/bin/chmod
+Requires(pre):  /usr/bin/mv
+Requires:       libxml2-tools
+BuildArch:      noarch
+
+%description
+These scripts will help prepare and maintain parts of an SGML system.
+
+%define sgmldir %{_datadir}/sgml
+%define INSTALL install -m755 -s
+%define INSTALL_SCRIPT install -m755
+%define INSTALL_DIR install -d -m755
+%define INSTALL_DATA install -m644
+
+%prep
+%setup -q
+# 0001-regcat.patch
+%patch0 -p1
+cp %{SOURCE1} .
+cp %{SOURCE2} .
+
+%build
+# CFLAGS="%{optflags}"
+autoreconf -i -f
+./configure --prefix=%{_prefix} --infodir=%{_infodir} \
+  --datadir=%{_datadir} --mandir=%{_mandir} \
+  --build $RPM_ARCH-%vendor-linux
+
+%install
+%make_install
+%{INSTALL_SCRIPT} install-catalog.in %{buildroot}%{_bindir}/install-catalog
+%{INSTALL_SCRIPT} edit-xml-catalog.sh \
+  %{buildroot}%{_bindir}/edit-xml-catalog
+ln -sf sgml2xmlcat.sh %{buildroot}%{_bindir}/sgmlcat2x.sh
+ln -sf install-catalog %{buildroot}%{_bindir}/install-catalog.sh
+%{INSTALL_DIR} %{buildroot}%{sgmldir}
+%{INSTALL_DIR} %{buildroot}%{_sysconfdir}/{sgml,xml}
+%{INSTALL_DIR} %{buildroot}%{_localstatedir}/lib/sgml
+touch %{buildroot}%{_sysconfdir}/sgml/catalog
+xmlcatalog --noout --create %{buildroot}%{_sysconfdir}/xml/tizen-catalog.xml
+xmlcatalog --noout --create %{buildroot}%{_sysconfdir}/xml/catalog
+xmlcatalog --noout --add  "nextCatalog" "tizen-catalog.xml" "tizen-catalog.xml" \
+  %{buildroot}%{_sysconfdir}/xml/catalog
+
+%files
+%defattr(-, root, root)
+%doc AUTHORS COPYING NEWS README*
+%ghost %{_sysconfdir}/sgml/catalog
+%ghost %{_sysconfdir}/xml/tizen-catalog.xml
+%config %verify(not md5 size mtime) %{_sysconfdir}/xml/catalog
+%dir %{_sysconfdir}/sgml
+%dir %{_sysconfdir}/xml

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list