Package init
This commit is contained in:
commit
40ec261acb
53
rarian-0.8.1-categories.patch
Normal file
53
rarian-0.8.1-categories.patch
Normal file
@ -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;
|
||||
BIN
rarian-0.8.1.tar.bz2
Normal file
BIN
rarian-0.8.1.tar.bz2
Normal file
Binary file not shown.
108
rarian.spec
Normal file
108
rarian.spec
Normal file
@ -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 <buildteam@openeuler.org> - 0.8.1-22
|
||||
- Package init
|
||||
223
scrollkeeper-omf.dtd
Normal file
223
scrollkeeper-omf.dtd
Normal file
@ -0,0 +1,223 @@
|
||||
<!--
|
||||
Open Source Metadata Framework (OMF XML DTD) Version 1.1
|
||||
|
||||
Copyright (C) 1999, 2000 Kendall Grant Clark. All rights reserved.
|
||||
|
||||
$Id: scrollkeeper-omf.dtd,v 1.3 2002/04/20 03:56:48 muet Exp $
|
||||
|
||||
To use the OMF.dtd, an FPI like the following works:
|
||||
|
||||
"-//Open Source Metadata Framework (OMF) //DTD OMF.dtd V1.1//EN"
|
||||
|
||||
Permission to use, copy, modify and distribute the OMF DTD and its
|
||||
accompanying documentation for any purpose and without fee is hereby
|
||||
granted in perpetuity, provided that the above copyright notice and
|
||||
this paragraph appear in all copies. The copyright holders make no
|
||||
representation about the suitability of the DTD for any purpose. It
|
||||
is provided "as is" without expressed or implied warranty. If you
|
||||
modify the OMF DTD in any way, except for declaring and referencing
|
||||
additional sets of general entities, declaring additional notations,
|
||||
please label your DTD as a variant of OMF. This license requirement is
|
||||
stated solely in the interests of maintaining data interchange
|
||||
capability.
|
||||
|
||||
Please direct all queries, comments, and suggestions about OMF to
|
||||
Kendall Grant Clark, kclark@ntlug.org, or to Open Source Research
|
||||
Team's mailing list:ldp-meta@franklin.oic.unc.edu
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Scrollkeeper Open Source Metadata Framework (SK OMF XML DTD) Version 1.0
|
||||
|
||||
Copyright (C) 2002 Eric Baudais. All rights reserved.
|
||||
|
||||
To use the scrollkeeper.dtd, an FPI like the following works:
|
||||
"-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN"
|
||||
|
||||
Permission to use, copy, modify and distribute the OMF DTD and its
|
||||
accompanying documentation for any purpose and without fee is hereby
|
||||
granted in perpetuity, provided that the above copyright notice and
|
||||
this paragraph appear in all copies. The copyright holders make no
|
||||
representation about the suitability of the DTD for any purpose. It
|
||||
is provided "as is" without expressed or implied warranty. If you
|
||||
modify the Scrollkeeper OMF DTD in any way, except for declaring and
|
||||
referencing additional sets of general entities, declaring additional
|
||||
notations, please label your DTD as a variant of Scrollkeeper. This
|
||||
license requirement is stated solely in the interests of maintaining
|
||||
data interchange capability.
|
||||
-->
|
||||
|
||||
<!-- ............................................................. -->
|
||||
<!-- Entity Sets ................................................. -->
|
||||
<!-- ............................................................. -->
|
||||
|
||||
<!ENTITY % licenseTypes PUBLIC
|
||||
"-//Open Source Metadata Framework (OMF)//ENTITIES License Types//EN"
|
||||
"licenseTypes.mod" >
|
||||
<!-- %licenseTypes; -->
|
||||
|
||||
<!ENTITY % countryCodes PUBLIC
|
||||
"-//Open Source Metadata Framework (OMF)//ENTITIES Country Codes//EN"
|
||||
"countryCodes.mod" >
|
||||
<!-- %countryCodes; -->
|
||||
|
||||
<!ENTITY % languageCodes PUBLIC
|
||||
"-//Open Source Metadata Framework (OMF)//ENTITIES Language Codes//EN"
|
||||
"languageCodes.mod" >
|
||||
<!-- %languageCodes; -->
|
||||
|
||||
<!ENTITY % linuxDistributions PUBLIC
|
||||
"-//Open Source Metadata Framework (OMF)//ENTITIES Linux Distributions//EN"
|
||||
"linuxDistributions.mod" >
|
||||
<!-- %linuxDistributions; -->
|
||||
|
||||
<!-- ............................................................. -->
|
||||
<!-- ............................................................. -->
|
||||
|
||||
<!-- ............................................................. -->
|
||||
<!-- Internal Entities ........................................... -->
|
||||
<!-- ............................................................. -->
|
||||
<!ENTITY % base.attribute.set
|
||||
"id ID #IMPLIED
|
||||
modified CDATA #IMPLIED
|
||||
created CDATA #IMPLIED" >
|
||||
|
||||
<!ENTITY % core.attribute.set
|
||||
"%base.attribute.set;
|
||||
agent CDATA #IMPLIED
|
||||
status CDATA #IMPLIED" >
|
||||
|
||||
<!ENTITY % url.attribute.set
|
||||
"url CDATA #REQUIRED
|
||||
%core.attribute.set;" >
|
||||
|
||||
<!ENTITY % value.attribute.set
|
||||
"value CDATA #REQUIRED
|
||||
%core.attribute.set;" >
|
||||
|
||||
<!-- ............................................................. -->
|
||||
<!-- ............................................................. -->
|
||||
|
||||
<!-- ............................................................. -->
|
||||
<!-- Element Declarations......................................... -->
|
||||
<!-- ............................................................. -->
|
||||
<!-- omf root element -->
|
||||
<!ELEMENT omf (resource)+ >
|
||||
<!ATTLIST omf
|
||||
%base.attribute.set; >
|
||||
|
||||
<!-- resource -->
|
||||
<!ELEMENT resource (creator+, maintainer*, contributor*, title,
|
||||
date, version*, subject*, description?,
|
||||
type*, coverage*, format, identifier,
|
||||
language, relation, source*, rights*) >
|
||||
|
||||
<!ATTLIST resource
|
||||
%core.attribute.set; >
|
||||
<!-- creator -->
|
||||
<!ELEMENT creator (#PCDATA) >
|
||||
<!ATTLIST creator
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- maintainer -->
|
||||
<!ELEMENT maintainer (#PCDATA) >
|
||||
<!ATTLIST maintainer
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- contributor -->
|
||||
<!ELEMENT contributor (#PCDATA) >
|
||||
<!ATTLIST contributor
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- title -->
|
||||
<!ELEMENT title (#PCDATA) >
|
||||
<!ATTLIST title
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- version -->
|
||||
<!ELEMENT version EMPTY >
|
||||
<!ATTLIST version
|
||||
identifier CDATA #REQUIRED
|
||||
date CDATA #REQUIRED
|
||||
description CDATA #IMPLIED
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- date -->
|
||||
<!ELEMENT date (#PCDATA) >
|
||||
<!ATTLIST date
|
||||
%core.attribute.set; >
|
||||
<!-- description -->
|
||||
<!ELEMENT description (#PCDATA) >
|
||||
<!ATTLIST description
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- subject -->
|
||||
<!ELEMENT subject EMPTY >
|
||||
<!ATTLIST subject
|
||||
category CDATA #REQUIRED
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- type -->
|
||||
<!-- See coreTypes.mod, an entity set
|
||||
comprising a formal vocabulary for type -->
|
||||
<!ELEMENT type (#PCDATA) >
|
||||
<!ATTLIST type
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- format -->
|
||||
<!ELEMENT format EMPTY >
|
||||
<!ATTLIST format
|
||||
mime CDATA #REQUIRED
|
||||
dtd CDATA #IMPLIED
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- identifier -->
|
||||
<!ELEMENT identifier EMPTY >
|
||||
<!ATTLIST identifier
|
||||
%url.attribute.set; >
|
||||
|
||||
<!-- source -->
|
||||
<!ELEMENT source (#PCDATA) >
|
||||
<!ATTLIST source
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- language -->
|
||||
<!-- see languageCodes.mod, an entity set
|
||||
comprising a formal vocabulary for
|
||||
language, derived from ISO 639 and 639-2 -->
|
||||
<!ELEMENT language EMPTY >
|
||||
<!ATTLIST language
|
||||
code CDATA #REQUIRED
|
||||
name CDATA #IMPLIED
|
||||
src CDATA #IMPLIED
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- relation -->
|
||||
<!ELEMENT relation EMPTY >
|
||||
<!ATTLIST relation
|
||||
seriesid CDATA #REQUIRED
|
||||
%core.attribute.set; >
|
||||
|
||||
<!-- coverage -->
|
||||
<!ELEMENT coverage EMPTY >
|
||||
<!ATTLIST coverage
|
||||
geographic CDATA #IMPLIED
|
||||
distribution CDATA #IMPLIED
|
||||
kernel CDATA #IMPLIED
|
||||
architecture CDATA #IMPLIED
|
||||
os CDATA #IMPLIED
|
||||
%core.attribute.set; >
|
||||
<!-- rights -->
|
||||
<!-- see licenseTypes.mod, an entity set
|
||||
comprising a formal vocabulary for rights -->
|
||||
<!ELEMENT rights EMPTY >
|
||||
<!ATTLIST rights
|
||||
type CDATA #IMPLIED
|
||||
license CDATA #IMPLIED
|
||||
license.version CDATA #IMPLIED
|
||||
holder CDATA #IMPLIED
|
||||
%core.attribute.set; >
|
||||
<!-- ............................................................. -->
|
||||
<!-- ............................................................. -->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user