Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
sgmltools-lite
sgmltools-lite.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sgmltools-lite.spec of Package sgmltools-lite
# # spec file for package sgmltools-lite (Version 3.0.2) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: sgmltools-lite # openjade-devel is not required BuildRequires: docbook-dsssl-stylesheets lynx openjade python sgml-skel w3m Summary: SGML Converter Suite %define syscfgsgml %{_sysconfdir}/sgml Version: 3.0.2 Release: 1301 Group: Productivity/Publishing/SGML Requires: python w3m Requires: iso_ent docbook-dsssl-stylesheets docbook_3 docbook_4 openjade opensp %define regcat /usr/bin/sgml-register-catalog PreReq: %{regcat} #Provides: License: GPL-2.0+ Url: http://sourceforge.net/projects/sgmltools-lite/ Source: http://download.sourceforge.net/sgmltools-lite/sgmltools-lite-%{version}.tar.gz Patch: sgmltools-lite-html.diff BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description SGML Converter Suite written in Python. %define INSTALL install -m755 -s %define INSTALL_SCRIPT install -m755 %define INSTALL_DIR install -d -m755 %define INSTALL_DATA install -m644 %prep %setup -q %patch -p 1 %build # `make clean' is needed for 3.0.2 (spurious config.* files) # 2000-11-02 07:02:08 CET -ke- make clean CFLAGS=$RPM_OPT_FLAGS \ ./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \ --with-etcsgml=%{syscfgsgml} make %install #make install prefix=$RPM_BUILD_ROOT/usr # make install.man mkdir -p $RPM_BUILD_ROOT%{_bindir} %{INSTALL_SCRIPT} bin/sgmltools $RPM_BUILD_ROOT%{_bindir} %{INSTALL_SCRIPT} bin/sgmlwhich $RPM_BUILD_ROOT%{_bindir} %define sgmldir %{_datadir}/sgml %define sgmltoolsdir %{sgmldir}/stylesheets/sgmltools %define sgmltoolsdtddir %{sgmldir}/dtd/sgmltools %define sgmltoolspythondir %{sgmldir}/misc/sgmltools/python %define sgmltoolspythonbackendsdir %{sgmltoolspythondir}/backends mkdir -p $RPM_BUILD_ROOT%{sgmltoolsdir} for i in dsssl/*.dsl dsssl/*.cat; do \ %{INSTALL_DATA} $i $RPM_BUILD_ROOT%{sgmltoolsdir}; \ done mkdir -p $RPM_BUILD_ROOT%{sgmltoolsdtddir} for i in dtd/[a-z]*; do \ %{INSTALL_DATA} $i $RPM_BUILD_ROOT%{sgmltoolsdtddir}; \ done mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 %{INSTALL_DATA} man/sgmltools.1 $RPM_BUILD_ROOT%{_mandir}/man1/sgmltools-lite.1 mkdir -p $RPM_BUILD_ROOT%{sgmltoolspythonbackendsdir} for i in python/*.py; do \ %{INSTALL_DATA} $i $RPM_BUILD_ROOT%{sgmltoolspythondir}; \ done for i in python/backends/*.py; do \ %{INSTALL_DATA} $i $RPM_BUILD_ROOT%{sgmltoolspythonbackendsdir}; \ done %{INSTALL_DATA} VERSION $RPM_BUILD_ROOT%{sgmldir}/misc/sgmltools mkdir -p $RPM_BUILD_ROOT%{syscfgsgml} %{INSTALL_DATA} aliases $RPM_BUILD_ROOT%{syscfgsgml}/aliases # catalog is maintained by sgml-skel 2003-05-26 16:13:37 CEST -ke- # # install -m 644 catalog.suse $RPM_BUILD_ROOT%{syscfgsgml}/catalog # :> $RPM_BUILD_ROOT%{syscfgsgml}/catalog # for c in `echo %{sgmldir}/CATALOG.iso_ent \ # %{sgmldir}/CATALOG.docbook-dsssl-stylesheets \ # %{sgmldir}/CATALOG.docbook_[0-9] \ # %{sgmldir}/openjade/catalog \ # %{buildroot}%{sgmltoolsdir}/*cat \ # %{buildroot}%{sgmltoolsdtddir}/catalog*` ; do # if [ -f $c ] ; then # # remove %{buildroot} from filenames installed with this package # echo CATALOG \"$c\" | sed 's:%{buildroot}::' \ # >> $RPM_BUILD_ROOT%{syscfgsgml}/catalog # else # echo CATALOG $c is missing. && exit 1 # fi # done # # sed 's:/local::' catalog.suse >> $RPM_BUILD_ROOT%{syscfgsgml}/catalog %post if [ -x %{regcat} ]; then %{regcat} -a %{sgmltoolsdir}/sgmltools.cat >/dev/null 2>&1 fi exit 0 %preun if [ -x %{regcat} ]; then %{regcat} -r %{sgmltoolsdir}/sgmltools.cat >/dev/null 2>&1 fi exit 0 %clean rm -fr $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README POSTINSTALL index.html COPYING %config %{syscfgsgml}/aliases # config file now maintained dynamically by sgml-register-catalog # %config %{syscfgsgml}/catalog %{_bindir}/* %{_mandir}/*/* %{sgmldir}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor