%define majversion %(echo %version | cut -d. -f 1-2) Name: libscrollkeeper Version: 0.3.14 Release: 7mamba Summary: A cataloging system for documentation on open systems Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://scrollkeeper.sourceforge.net/ Source: https://download.gnome.org/sources/scrollkeeper/%{majversion}/scrollkeeper-%{version}.tar.bz2 # patches stolen from fedora Patch0: %{name}-0.3.11-validate-warning.patch Patch1: %{name}-0.3.14-fix-mkdir-segfault.patch Patch2: %{name}-0.3.14-norebuilddb.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: liblzma-devel BuildRequires: libxml2-devel BuildRequires: libxslt-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: libglib-devel BuildRequires: xml-common BuildRequires: libxml2-utils BuildRequires: gettext BuildRequires: docbook-dtds BuildRequires: docbook-xsl %description ScrollKeeper is a cataloging system for documentation on open systems. It manages documentation metadata (as specified by the Open Source Metadata Framework(OMF)) and provides a simple API to allow help browsers to find, sort, and search the document catalog. It will also be able to communicate with catalog servers on the Net to search for documents which are not on the local system. %package devel Summary: Devel package for libscrollkeeper Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel ScrollKeeper is a cataloging system for documentation on open systems. It manages documentation metadata (as specified by the Open Source Metadata Framework(OMF)) and provides a simple API to allow help browsers to find, sort, and search the document catalog. It will also be able to communicate with catalog servers on the Net to search for documents which are not on the local system. This package contains static libraries and header files need for development. %prep %setup -q -n scrollkeeper-%{version} %patch0 -p1 -b .validate-warning %patch1 -p0 -b .fix-mkdir-segfault %patch2 -p0 %build %configure \ --enable-shared \ --disable-static %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %find_lang scrollkeeper > %{buildroot}%{_localstatedir}/log/scrollkeeper.log %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post /sbin/ldconfig if [ $1 = 2 ]; then echo "`date +"%b %d %X"` Upgrading to ScrollKeeper `scrollkeeper-config --version`..." \ >> %{_localstatedir}/log/scrollkeeper.log fi if [ $1 = 1 ]; then echo "`date +"%b %d %X"` Installing ScrollKeeper `scrollkeeper-config --version`..." >> \ %{_localstatedir}/log/scrollkeeper.log fi scrollkeeper-rebuilddb -p %{_localstatedir}/lib/scrollkeeper \ >> %{_localstatedir}/log/scrollkeeper.log 2>&1 # Add OMF DTD to XML catalog /usr/bin/xmlcatalog --noout --add "rewriteSystem" \ "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" \ "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" /etc/xml/catalog /usr/bin/xmlcatalog --noout --add "rewriteURI" \ "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" \ "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" /etc/xml/catalog exit 0 %postun if [ $1 = 0 ]; then /usr/bin/xmlcatalog --noout --del \ "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" /etc/xml/catalog fi /sbin/ldconfig exit 0 %files -f scrollkeeper.lang %defattr(-,root,root) %{_bindir}/scrollkeeper-extract %{_bindir}/scrollkeeper-gen* %{_bindir}/scrollkeeper-get* %{_bindir}/scrollkeeper-install %{_bindir}/scrollkeeper-preinstall %{_bindir}/scrollkeeper-rebuilddb %{_bindir}/scrollkeeper-uninstall %{_bindir}/scrollkeeper-update %{_libdir}/*.so.* %{_datadir}/scrollkeeper/ %config(noreplace) %{_sysconfdir}/scrollkeeper.conf %dir %{_datadir}/omf %{_datadir}/omf/scrollkeeper %{_datadir}/xml/scrollkeeper %{_datadir}/doc/scrollkeeper-%{version}/* %dir %{_localstatedir}/lib/scrollkeeper/ %ghost %{_localstatedir}/log/scrollkeeper.log %{_mandir}/man?/* %doc AUTHORS COPYING* NEWS README TODO %doc scrollkeeper-spec.txt %files devel %defattr(-,root,root) %{_bindir}/scrollkeeper-config %{_libdir}/*.la %{_libdir}/*.so %changelog * Wed Jun 02 2021 Automatic Build System 0.3.14-7mamba - automatic rebuild by autodist * Wed Jun 02 2021 Automatic Build System 0.3.14-6mamba - automatic rebuild by autodist * Tue Aug 24 2010 Silvan Calarco 0.3.14-5mamba - old specfile updated - added norebuilddb patch to fix make install - fixed postun script * Tue Apr 24 2007 Davide Madrisan 0.3.14-4mamba - removed duplicate scrollkeeper-config binary from the main package - do not build the static library * Fri Jan 12 2007 Davide Madrisan 0.3.14-3qilnx - rebuild xml catalog when installing/removing/updating the package * Thu Apr 28 2005 Davide Madrisan 0.3.14-2qilnx - rebuilt * Sun Jul 04 2004 Silvan Calarco 0.3.14-1qilnx - first build