commit 40ec261acbe587b3f15e33afc5782f83dfe4389c Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:16:10 2019 -0400 Package init diff --git a/rarian-0.8.1-categories.patch b/rarian-0.8.1-categories.patch new file mode 100644 index 0000000..2745ffd --- /dev/null +++ b/rarian-0.8.1-categories.patch @@ -0,0 +1,53 @@ +diff -up rarian-0.8.1/librarian/rarian-omf.cpp.categories rarian-0.8.1/librarian/rarian-omf.cpp +--- rarian-0.8.1/librarian/rarian-omf.cpp.categories 2008-09-01 14:40:21.000000000 -0400 ++++ rarian-0.8.1/librarian/rarian-omf.cpp 2008-11-10 19:42:02.000000000 -0500 +@@ -637,28 +637,28 @@ omf_process_category (char *omf_cat) + result = strdup ("Filesystem"); + } else if (!strncmp (next, "Networking", 10)) { + result = strdup ("Network"); +- } else if (!strncmp (next, "Configuration", 13)) { +- /* Yet another don't care */ +- result = strdup ("Settings"); +- } else if (!strncmp (next, "Hardware", 8)) { +- /* Another don't care */ +- result = strdup ("HardwareSettings"); +- } else if (!strncmp (next, "Package Management", 18)) { +- result = strdup ("PackageManager"); +- } else if (!strncmp (next, "Security", 8)) { +- result = strdup ("Security"); +- } else if (!strncmp (next, "Services", 8)) { +- next = &(next[8]); +- while (*next == '|') next++; +- if (!next || *next == 0) { +- result = strdup ("System"); +- } else if (!strncmp (next, "Printing", 8)) { +- result = strdup ("Printing"); +- } else { +- result = strdup ("System"); +- } + } else { +- goto failed; ++ goto failed; ++ } ++ } else if (!strncmp (next, "Configuration", 13)) { ++ /* Yet another don't care */ ++ result = strdup ("Settings"); ++ } else if (!strncmp (next, "Hardware", 8)) { ++ /* Another don't care */ ++ result = strdup ("HardwareSettings"); ++ } else if (!strncmp (next, "Package Management", 18)) { ++ result = strdup ("PackageManager"); ++ } else if (!strncmp (next, "Security", 8)) { ++ result = strdup ("Security"); ++ } else if (!strncmp (next, "Services", 8)) { ++ next = &(next[8]); ++ while (*next == '|') next++; ++ if (!next || *next == 0) { ++ result = strdup ("System"); ++ } else if (!strncmp (next, "Printing", 8)) { ++ result = strdup ("Printing"); ++ } else { ++ result = strdup ("System"); + } + } else { + goto failed; diff --git a/rarian-0.8.1.tar.bz2 b/rarian-0.8.1.tar.bz2 new file mode 100644 index 0000000..d272ba8 Binary files /dev/null and b/rarian-0.8.1.tar.bz2 differ diff --git a/rarian.spec b/rarian.spec new file mode 100644 index 0000000..cee6349 --- /dev/null +++ b/rarian.spec @@ -0,0 +1,108 @@ +Name: rarian +Version: 0.8.1 +Release: 22 +License: LGPLv2+ +Summary: Documentation meta-data library +URL: http://rarian.freedesktop.org/ +Source: http://download.gnome.org/sources/rarian/0.8/rarian-%{version}.tar.bz2 +#This is from http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd +Source1: scrollkeeper-omf.dtd + +# This patch is from Fedora +Patch1: rarian-0.8.1-categories.patch + +Requires(post): libxml2 +Requires(postun): libxml2 +Requires: libxslt coreutils util-linux gawk + +BuildRequires: gcc-c++ libxslt-devel + +%description +Rarian is designed to be a replacement for scrollkeeper. It is +currently undergoing heavy development. As of writing, rarian can be +installed in place of scrollkeeper and everything will work okay (as +far as my testing indicates) + +%package compat +License: GPLv2+ +Summary: Extra files for compatibility with scrollkeeper +Requires: rarian = %{version}-%{release} +Requires(post): rarian +Provides: scrollkeeper = 0.4 +Obsoletes: scrollkeeper <= 0.3.14 + +%description compat +This package contains files needed to maintain backward-compatibility with +scrollkeeper. + +%package devel +Summary: Development files for Rarian +Requires: rarian = %{version}-%{release} +Requires: pkgconfig + +%description devel +This package contains files required to develop applications that use the +Rarian library ("librarian"). + +%package_help + +%prep +%autosetup -p1 + +%build +%configure --disable-skdb-update +%make_build V=1 + +%install +%make_install +mkdir -p %buildroot%{_datadir}/xml/scrollkeeper/dtds +cp %{SOURCE1} %buildroot%{_datadir}/xml/scrollkeeper/dtds +%delete_la_and_a + +%post -p /sbin/ldconfig + +%post compat +%{_bindir}/rarian-sk-update +# Add OMF DTD to XML catalog. +CATALOG=/etc/xml/catalog +/usr/bin/xmlcatalog --noout --add "rewriteSystem" \ + "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" \ + "/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG >& /dev/null || : +/usr/bin/xmlcatalog --noout --add "rewriteURI" \ + "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" \ + "/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG >& /dev/null || : + +%postun -p /sbin/ldconfig + +%postun compat + +# Delete OMF DTD from XML catalog. +if [ $1 = 0 ]; then + CATALOG=/etc/xml/catalog + /usr/bin/xmlcatalog --noout --del \ + "/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG >& /dev/null || : +fi + +%files +%license COPYING COPYING.LIB COPYING.UTILS +%doc README ChangeLog NEWS AUTHORS +%{_bindir}/rarian-example +%{_libdir}/librarian.so.* +%{_datadir}/librarian + +%files compat +%{_bindir}/rarian-sk-* +%{_bindir}/scrollkeeper-* +%{_datadir}/xml/scrollkeeper + +%files devel +%{_includedir}/rarian +%{_libdir}/librarian.so +%{_libdir}/pkgconfig/rarian.pc + +%files help +%{_datadir}/help + +%changelog +* Tue Aug 27 2019 openEuler Buildteam - 0.8.1-22 +- Package init diff --git a/scrollkeeper-omf.dtd b/scrollkeeper-omf.dtd new file mode 100644 index 0000000..6b84137 --- /dev/null +++ b/scrollkeeper-omf.dtd @@ -0,0 +1,223 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +