2007-01-16 00:36:52 +01:00
|
|
|
#
|
2011-12-27 18:38:43 +01:00
|
|
|
# spec file for package sgml-skel
|
2007-01-16 00:36:52 +01:00
|
|
|
#
|
2015-07-15 14:50:11 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:36:52 +01:00
|
|
|
#
|
2009-06-18 17:55:34 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:36:52 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-12-01 10:52:49 +01:00
|
|
|
|
2007-01-16 00:36:52 +01:00
|
|
|
Name: sgml-skel
|
2011-12-27 18:38:43 +01:00
|
|
|
BuildRequires: automake
|
2007-01-16 00:36:52 +01:00
|
|
|
BuildRequires: libxml2
|
|
|
|
Summary: Helper Scripts for the SGML System
|
2014-12-01 10:52:49 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Publishing/SGML
|
2007-01-16 00:36:52 +01:00
|
|
|
Version: 0.6
|
2011-12-27 18:38:43 +01:00
|
|
|
Release: 0
|
2007-01-16 00:36:52 +01:00
|
|
|
Requires: libxml2
|
|
|
|
PreReq: /bin/awk
|
2007-05-15 11:45:14 +02:00
|
|
|
PreReq: /bin/mv
|
2008-05-16 23:59:28 +02:00
|
|
|
PreReq: /bin/chmod
|
2007-01-16 00:36:52 +01:00
|
|
|
# URL:
|
|
|
|
Source0: http://www.suse.de/~ke/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
# :pserver:anoncvs@sources.redhat.com:/cvs/docbook-tools
|
|
|
|
Source1: docbook-tools/sgml-common/bin/install-catalog.in
|
|
|
|
Source2: edit-xml-catalog.sh
|
|
|
|
Patch: sgml-skel-regcat.diff
|
|
|
|
Patch1: sgml-skel-regcat2.diff
|
2008-05-16 23:59:28 +02:00
|
|
|
Patch2: sgml-skel-edit-cat.diff
|
2007-01-16 00:36:52 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-05-16 23:59:28 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:36:52 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
These scripts will help prepare and maintain parts of an SGML system.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Eric Bischoff <eric@caldera.de>
|
|
|
|
Karl Eichwalder <ke@suse.de>
|
|
|
|
|
|
|
|
%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
|
2008-05-16 23:59:28 +02:00
|
|
|
|
2007-01-16 00:36:52 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch -p 1
|
|
|
|
%patch1 -p 1
|
|
|
|
# # cp -p $RPM_SOURCE_DIR/%{name}-README.SuSE .
|
|
|
|
cp %{S:1} .
|
|
|
|
cp %{S:2} .
|
2008-05-16 23:59:28 +02:00
|
|
|
%patch2 -p 0
|
2007-01-16 00:36:52 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
# CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
autoreconf -i -f
|
|
|
|
./configure --prefix=%{_prefix} --infodir=%{_infodir} \
|
|
|
|
--datadir=%{_datadir} --mandir=%{_mandir} \
|
|
|
|
--build $RPM_ARCH-suse-linux
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%{INSTALL_SCRIPT} install-catalog.in $RPM_BUILD_ROOT%{_bindir}/install-catalog
|
|
|
|
%{INSTALL_SCRIPT} edit-xml-catalog.sh \
|
|
|
|
$RPM_BUILD_ROOT%{_bindir}/edit-xml-catalog
|
|
|
|
ln -sf sgml2xmlcat.sh $RPM_BUILD_ROOT%{_bindir}/sgmlcat2x.sh
|
|
|
|
ln -sf install-catalog $RPM_BUILD_ROOT%{_bindir}/install-catalog.sh
|
|
|
|
%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgmldir}
|
|
|
|
%{INSTALL_DIR} $RPM_BUILD_ROOT%{_sysconfdir}/{sgml,xml}
|
|
|
|
%{INSTALL_DIR} $RPM_BUILD_ROOT/var/lib/sgml
|
|
|
|
touch $RPM_BUILD_ROOT%{_sysconfdir}/sgml/catalog
|
|
|
|
xmlcatalog --noout --create $RPM_BUILD_ROOT%{_sysconfdir}/xml/suse-catalog.xml
|
|
|
|
xmlcatalog --noout --create $RPM_BUILD_ROOT%{_sysconfdir}/xml/catalog
|
|
|
|
xmlcatalog --noout --add "nextCatalog" "suse-catalog.xml" "suse-catalog.xml" \
|
|
|
|
$RPM_BUILD_ROOT%{_sysconfdir}/xml/catalog
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
|
2015-07-15 14:50:11 +02:00
|
|
|
%post
|
2015-07-15 15:07:49 +02:00
|
|
|
# only create suse-catalog.xml at installation time; not in the update case
|
2015-07-15 15:12:29 +02:00
|
|
|
if [ "$1" = 1 ]; then
|
|
|
|
[ -r %{_sysconfdir}/xml/suse-catalog.xml ] \
|
|
|
|
|| xmlcatalog --noout --create %{_sysconfdir}/xml/suse-catalog.xml
|
2015-07-15 15:07:49 +02:00
|
|
|
fi
|
2015-07-15 14:50:11 +02:00
|
|
|
|
2007-01-16 00:36:52 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS COPYING NEWS README*
|
|
|
|
%ghost %{_sysconfdir}/sgml/catalog
|
|
|
|
%ghost %{_sysconfdir}/xml/suse-catalog.xml
|
|
|
|
%config %verify(not md5 size mtime) %{_sysconfdir}/xml/catalog
|
|
|
|
%dir %{_sysconfdir}/sgml
|
|
|
|
%dir %{_sysconfdir}/xml
|
|
|
|
%{_bindir}/*
|
|
|
|
%dir /var/lib/sgml
|
|
|
|
|
2007-05-15 11:45:14 +02:00
|
|
|
%changelog
|