avatar
Rosa has added 63009bb297
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "rarian-0.8.1.tar.bz2": 9b3f1bad1cdbb0de51d6f74431b20eb3647edc5a
view file @ 63009bb297
... ... --- /dev/null
... ... +++ b/rarian-0.5.4-mv.patch
... ... @@ -0,0 +1,11 @@
1
--- rarian-0.5.4/util/rarian-sk-update.in~	2007-07-29 13:50:45.000000000 +0200
2
+++ rarian-0.5.4/util/rarian-sk-update.in	2007-07-31 15:58:46.000000000 +0200
3
@@ -230,7 +230,7 @@ process_directory ()
4
 				print_verbose "Directory resonsible for $entry has been removed.  Deleting"
5
 				filenames=${filenames#$entry}
6
 				filenames=${filenames#;}
7
-				mv $entry $tmpdir
8
+				mv ${output_dir}/$entry $tmpdir
9
 			done
10
 
11
 		fi
view file @ 63009bb297
... ... --- /dev/null
... ... +++ b/rarian-0.8.1-xz-support.patch
... ... @@ -0,0 +1,107 @@
1
diff --git a/librarian/rarian-info.c b/librarian/rarian-info.c
2
index aa247bf..3f54d12 100644
3
--- a/librarian/rarian-info.c
4
+++ b/librarian/rarian-info.c
5
@@ -277,6 +277,21 @@ process_check_file()
6
     current_entry->base_filename = filename;
7
     return TRUE;
8
   }
9
+  sprintf (filename, "%s/%s.info.xz", current_entry->base_path,
10
+		  current_entry->name);
11
+  if (!stat(filename, &fileinfo)) {
12
+    current_entry->compression = INFO_ENCODING_XZ;
13
+    current_entry->base_filename = filename;
14
+    return TRUE;
15
+  }
16
+  sprintf (filename, "%s/%s.xz", current_entry->base_path,
17
+		  current_entry->name);
18
+  if (!stat(filename, &fileinfo)) {
19
+    current_entry->compression = INFO_ENCODING_XZ;
20
+    current_entry->base_filename = filename;
21
+    return TRUE;
22
+  }
23
+
24
   sprintf (filename, "%s/%s.info", current_entry->base_path,
25
 	   current_entry->name);
26
   if (!stat(filename, &fileinfo)) {
27
@@ -381,6 +396,39 @@ process_check_file()
28
     current_entry->base_filename = filename;
29
     return TRUE;
30
     }
31
+    sprintf (filename, "%s/%s/%s.info.xz", current_entry->base_path,
32
+		    current_entry->name, current_entry->name);
33
+    if (!stat(filename, &fileinfo)) {
34
+    /* Add to base path */
35
+    char *new_base = malloc (sizeof(char) * (strlen(current_entry->base_path) +
36
+					    (strlen(current_entry->name) *2) +
37
+					    2));
38
+    sprintf (new_base, "%s/%s", current_entry->base_path,
39
+		    current_entry->name);
40
+    free(current_entry->base_path);
41
+    current_entry->base_path = new_base;
42
+    
43
+    current_entry->compression = INFO_ENCODING_XZ;
44
+    current_entry->base_filename = filename;
45
+    return TRUE;
46
+    }
47
+        
48
+    sprintf (filename, "%s/%s/%s.xz", current_entry->base_path,
49
+		    current_entry->name, current_entry->name);
50
+    if (!stat(filename, &fileinfo)) {
51
+	    /* Add to base path */
52
+    char *new_base = malloc (sizeof(char) * (strlen(current_entry->base_path) +
53
+					    (strlen(current_entry->name) *2) +
54
+					    2));
55
+    sprintf (new_base, "%s/%s", current_entry->base_path,
56
+    current_entry->name);
57
+    free(current_entry->base_path);
58
+    current_entry->base_path = new_base;
59
+    
60
+    current_entry->compression = INFO_ENCODING_XZ;
61
+    current_entry->base_filename = filename;
62
+    return TRUE;
63
+    }
64
 
65
   sprintf (filename, "%s/%s/%s.info", current_entry->base_path,
66
 	   current_entry->name, current_entry->name);
67
diff --git a/librarian/rarian-info.h b/librarian/rarian-info.h
68
index eb3e3b1..268b517 100644
69
--- a/librarian/rarian-info.h
70
+++ b/librarian/rarian-info.h
71
@@ -44,6 +44,7 @@ extern "C" {
72
     INFO_ENCODING_GZIP,
73
     INFO_ENCODING_BZIP,
74
     INFO_ENCODING_LZMA,
75
+    INFO_ENCODING_XZ,
76
     INFO_ENCODING_UNKNOWN,
77
   } RrnInfoCompression;
78
 
79
diff --git a/librarian/rarian-man.c b/librarian/rarian-man.c
80
index 9ad9c1b..66606f5 100644
81
--- a/librarian/rarian-man.c
82
+++ b/librarian/rarian-man.c
83
@@ -239,7 +239,7 @@ get_name_for_file (char *filename, char **subsect)
84
 
85
   /* We assume, like reasonable people, that man pages
86
    * have one of the forms:
87
-   * manname.sect.{gz,bz,bz2,lzma}
88
+   * manname.sect.{gz,bz,bz2,lzma,xz}
89
    * manname.sect
90
    * If it doesn't, things will probably break but we return
91
    * our "best guess" (i.e. everything up to the suffix)
92
@@ -250,9 +250,12 @@ get_name_for_file (char *filename, char **subsect)
93
     if (!suffix) {
94
       suffix = strrstr(filename, ".bz");
95
     }
96
-      if (!suffix) {
97
-        suffix = strrstr(filename, ".lzma");
98
-      }
99
+    if (!suffix) {
100
+	suffix = strrstr(filename, ".lzma");
101
+    }
102
+    if (!suffix) {
103
+	suffix = strrstr(filename, ".xz");
104
+    }    
105
   }
106
   if (suffix)
107
     cut = rrn_strndup (filename, suffix-filename);
... ... --- /dev/null
... ... +++ b/rarian.spec
... ... @@ -0,0 +1,286 @@
1
%define major 0
2
%define libname %mklibname %name %major
3
%define libnamedev %mklibname -d %name
4
%define xmlcatalog      %{_sysconfdir}/xml/catalog
5
6
Summary:	Cataloging system for documentation on open systems
7
Name:		rarian
8
Version:	0.8.1
9
Release:	%mkrel 10
10
Source0:	http://rarian.freedesktop.org/Releases/%{name}-%{version}.tar.bz2
11
Source1:	scrollkeeper-omf.dtd
12
# gw https://bugs.freedesktop.org/show_bug.cgi?id=11779
13
Patch0:		rarian-0.5.4-mv.patch
14
Patch1:		rarian-0.8.1-xz-support.patch
15
License:	GPLv2+
16
Group:		Publishing
17
Url:		http://rarian.freedesktop.org/
18
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
19
Provides:	scrollkeeper = %version-%release
20
Obsoletes:	scrollkeeper
21
Requires(post):	libxml2-utils sgml-common util-linux-ng
22
Requires(preun): libxml2-utils sgml-common
23
24
25
%description
26
Rarian is a cataloging system for the installed documentation.
27
28
Rarian is designed to be a replacement for scrollkeeper.  It is
29
currently undergoing heavy development.  As of writing, rarian can be
30
installed in place of scrollkeeper and everything will work okay.
31
32
%package -n	%libname
33
Group:		System/Libraries
34
Summary:	Rarian cataloging system library
35
36
%description -n	%libname
37
Rarian is a cataloging system for the installed documentation.
38
39
Rarian is designed to be a replacement for scrollkeeper.  It is
40
currently undergoing heavy development.  As of writing, rarian can be
41
installed in place of scrollkeeper and everything will work okay.
42
43
%package -n	%libnamedev
44
Group:		Development/C
45
Summary:	Rarian cataloging system - development files
46
Requires:	%libname = %version
47
Provides:	%name-devel = %version-%release
48
Provides:	lib%name-devel = %version-%release
49
Provides:	scrollkeeper-devel = %version-%release
50
51
%description -n	%libnamedev
52
Rarian is a cataloging system for the installed documentation.
53
54
Rarian is designed to be a replacement for scrollkeeper.  It is
55
currently undergoing heavy development.  As of writing, rarian can be
56
installed in place of scrollkeeper and everything will work okay.
57
58
%prep
59
%setup -q
60
%patch0 -p1 -b .mv~
61
%patch1 -p1 -b .xz~
62
63
%build
64
%configure2_5x --disable-skdb-update --localstatedir=/var
65
%make
66
67
%install
68
rm -rf $RPM_BUILD_ROOT
69
%makeinstall_std localstatedir=%buildroot/var
70
mkdir -p %buildroot/var/lib/rarian
71
touch %buildroot/var/lib/rarian/rarian-update-mtimes
72
install -D -m 644 %SOURCE1 %buildroot%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd
73
74
%clean
75
rm -rf $RPM_BUILD_ROOT
76
77
%post
78
  if [ "$1" = "1" ]; then
79
%_bindir/rarian-sk-update
80
%{_bindir}/xmlcatalog --noout --add "public" \
81
        "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \
82
        "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %xmlcatalog
83
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
84
        "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/" \
85
        "file:///usr/share/xml/scrollkeeper/dtds/" %xmlcatalog
86
fi
87
%_bindir/rarian-sk-rebuild > /dev/null || true
88
89
%preun
90
if [ "$1" = "0" -a -f %xmlcatalog -a -x %{_bindir}/xmlcatalog ] ; then
91
  %{_bindir}/xmlcatalog --noout --del \
92
	"%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %xmlcatalog
93
fi
94
95
%postun
96
if [ "$1" = "0" ]; then
97
  # rarian is being removed, not upgraded.  
98
  rm -f %_datadir/help/*.document
99
fi
100
101
%triggerpostun -- scrollkeeper < 0.5.6-2mdv
102
%{_bindir}/xmlcatalog --noout --add "public" \
103
        "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \
104
        "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %xmlcatalog
105
106
%triggerin -- %{_datadir}/omf/*/*.omf
107
%{_bindir}/scrollkeeper-update -q
108
109
%triggerpostun -- %{_datadir}/omf/*/*.omf
110
%{_bindir}/scrollkeeper-update -q
111
112
%files
113
%defattr(-,root,root)
114
%doc README NEWS 
115
%_bindir/rarian*
116
%_bindir/scrollkeeper*
117
%dir %_datadir/help/
118
%_datadir/help/rarian.document
119
%_datadir/librarian
120
%dir %{_datadir}/xml/scrollkeeper/
121
%dir %{_datadir}/xml/scrollkeeper/dtds/
122
%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd
123
%dir /var/lib/rarian
124
%ghost /var/lib/rarian/rarian-update-mtimes
125
126
%files -n %libname
127
%defattr(-,root,root)
128
%_libdir/librarian.so.%{major}*
129
130
%files -n %libnamedev
131
%defattr(-,root,root)
132
%doc ChangeLog TODO
133
%_libdir/librarian.so
134
%_libdir/librarian.a
135
%_libdir/librarian.la
136
%_includedir/rarian
137
%_libdir/pkgconfig/rarian.pc
138
139
140
141
142
%changelog
143
* Thu May 05 2011 Oden Eriksson <oeriksson@mandriva.com> 0.8.1-10mdv2011.0
144
+ Revision: 669408
145
- mass rebuild
146
147
* Sat Feb 26 2011 Götz Waschk <waschk@mandriva.org> 0.8.1-9
148
+ Revision: 640157
149
- fix xml catalog for new gtk-doc
150
151
* Sun Feb 13 2011 Funda Wang <fwang@mandriva.org> 0.8.1-8
152
+ Revision: 637583
153
- correctly match real omf files
154
155
* Sat Feb 12 2011 Götz Waschk <waschk@mandriva.org> 0.8.1-7
156
+ Revision: 637362
157
- replace rpm filetrigger script by rpm5 version
158
159
* Sun Oct 24 2010 Per Øyvind Karlsen <peroyvind@mandriva.org> 0.8.1-6mdv2011.0
160
+ Revision: 587817
161
- add xz support (P1)
162
- remove old ldconfig scriptlet for ancient releases
163
- cosmetics
164
165
* Wed Mar 17 2010 Oden Eriksson <oeriksson@mandriva.com> 0.8.1-5mdv2010.1
166
+ Revision: 523891
167
- rebuilt for 2010.1
168
169
* Thu Sep 03 2009 Christophe Fergeau <cfergeau@mandriva.com> 0.8.1-4mdv2010.0
170
+ Revision: 426875
171
- rebuild
172
173
* Sat Mar 07 2009 Antoine Ginies <aginies@mandriva.com> 0.8.1-3mdv2009.1
174
+ Revision: 351580
175
- rebuild
176
177
* Thu Sep 11 2008 Thierry Vignaud <tv@mandriva.org> 0.8.1-2mdv2009.0
178
+ Revision: 283750
179
- fix description
180
181
* Mon Sep 01 2008 Götz Waschk <waschk@mandriva.org> 0.8.1-1mdv2009.0
182
+ Revision: 278578
183
- new version
184
185
* Thu Aug 07 2008 Thierry Vignaud <tv@mandriva.org> 0.8.0-3mdv2009.0
186
+ Revision: 265616
187
- rebuild early 2009.0 package (before pixel changes)
188
189
* Tue Jun 10 2008 Pixel <pixel@mandriva.com> 0.8.0-2mdv2009.0
190
+ Revision: 217385
191
- add rpm filetrigger running scrollkeeper-update when rpm install/remove omf files
192
- do not call ldconfig in %%post/%%postun, it is now handled by filetriggers
193
194
* Sun Mar 09 2008 Götz Waschk <waschk@mandriva.org> 0.8.0-1mdv2008.1
195
+ Revision: 183052
196
- new version
197
198
* Sat Mar 01 2008 Adam Williamson <awilliamson@mandriva.org> 0.7.1-4mdv2008.1
199
+ Revision: 177135
200
- requires(post) util-linux-ng, not getopt (there is no package called getopt, the getopt binary is in util-linux-ng)
201
202
* Sat Mar 01 2008 Olivier Blin <oblin@mandriva.com> 0.7.1-3mdv2008.1
203
+ Revision: 176989
204
- require getopt in post (for rarian-sk-update)
205
- require sgml-common in post/preun (for /etc/xml/catalog)
206
207
* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 0.7.1-2mdv2008.1
208
+ Revision: 171076
209
- rebuild
210
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake
211
212
  + Funda Wang <fwang@mandriva.org>
213
    - clearify the SOURCE and URL
214
215
* Tue Jan 08 2008 Götz Waschk <waschk@mandriva.org> 0.7.1-1mdv2008.1
216
+ Revision: 146375
217
- new version
218
- drop patch 1
219
220
  + Olivier Blin <oblin@mandriva.com>
221
    - restore BuildRoot
222
223
  + Thierry Vignaud <tv@mandriva.org>
224
    - kill re-definition of %%buildroot on Pixel's request
225
226
* Tue Nov 27 2007 Götz Waschk <waschk@mandriva.org> 0.7.0-1mdv2008.1
227
+ Revision: 113305
228
- new version
229
230
* Thu Nov 15 2007 Frederic Crozat <fcrozat@mandriva.com> 0.6.0-2mdv2008.1
231
+ Revision: 108915
232
- Update patch1 for upstream submittion (fd.o bug #13255)
233
- Add comments to specfile and backup extension to patches
234
235
* Wed Sep 12 2007 Götz Waschk <waschk@mandriva.org> 0.6.0-1mdv2008.0
236
+ Revision: 84769
237
- new version
238
239
* Tue Aug 21 2007 Per Øyvind Karlsen <peroyvind@mandriva.org> 0.5.8-2mdv2008.0
240
+ Revision: 68289
241
- add lzma support P1
242
243
* Tue Aug 14 2007 Götz Waschk <waschk@mandriva.org> 0.5.8-1mdv2008.0
244
+ Revision: 63137
245
- new version
246
- drop patch 1
247
248
* Wed Aug 08 2007 Götz Waschk <waschk@mandriva.org> 0.5.6-3mdv2008.0
249
+ Revision: 60087
250
- fix a crash
251
252
* Wed Aug 01 2007 Götz Waschk <waschk@mandriva.org> 0.5.6-2mdv2008.0
253
+ Revision: 57402
254
- add scrollkeeper omf DTD
255
256
* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.6-1mdv2008.0
257
+ Revision: 57222
258
- new version
259
260
* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-5mdv2008.0
261
+ Revision: 57106
262
- fix error on uninstallation
263
- fix postun again
264
265
* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-4mdv2008.0
266
+ Revision: 57024
267
- fix summary
268
- fix postun script
269
- handle generated file in var as ghost file
270
271
* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-3mdv2008.0
272
+ Revision: 57000
273
- fix localstatedir
274
275
* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-2mdv2008.0
276
+ Revision: 56982
277
- fix rarian-sk-rebuild call in the post script
278
279
* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-1mdv2008.0
280
+ Revision: 56965
281
- Import rarian
282
283
284
285
* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-1mdv2008.0
286
- initial package
view file @ 63009bb297
... ... --- /dev/null
... ... +++ b/scrollkeeper-omf.dtd
... ... @@ -0,0 +1,223 @@
1
<!-- 
2
Open Source Metadata Framework (OMF XML DTD) Version 1.1
3
4
Copyright (C) 1999, 2000  Kendall Grant Clark. All rights reserved.
5
6
$Id: scrollkeeper-omf.dtd,v 1.4 2003/06/22 12:13:42 malcolmt Exp $
7
8
To use the OMF.dtd, an FPI like the following works:
9
10
"-//Open Source Metadata Framework (OMF) //DTD OMF.dtd V1.1//EN"
11
12
Permission to use, copy, modify and distribute the OMF DTD and its
13
accompanying documentation for any purpose and without fee is hereby
14
granted in perpetuity, provided that the above copyright notice and
15
this paragraph appear in all copies.  The copyright holders make no
16
representation about the suitability of the DTD for any purpose.  It
17
is provided "as is" without expressed or implied warranty. If you
18
modify the OMF DTD in any way, except for declaring and referencing
19
additional sets of general entities, declaring additional notations,
20
please label your DTD as a variant of OMF. This license requirement is
21
stated solely in the interests of maintaining data interchange
22
capability.
23
     
24
Please direct all queries, comments, and suggestions about OMF to
25
Kendall Grant Clark, kclark@ntlug.org, or to Open Source Research
26
Team's mailing list:ldp-meta@franklin.oic.unc.edu 
27
28
                                                                   -->
29
30
<!--
31
Scrollkeeper Open Source Metadata Framework (SK OMF XML DTD) Version 1.0
32
33
Copyright (C) 2002 Eric Baudais. All rights reserved.
34
35
To use the scrollkeeper.dtd, an FPI like the following works:
36
"-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN"
37
38
Permission to use, copy, modify and distribute the OMF DTD and its
39
accompanying documentation for any purpose and without fee is hereby
40
granted in perpetuity, provided that the above copyright notice and
41
this paragraph appear in all copies.  The copyright holders make no
42
representation about the suitability of the DTD for any purpose.  It
43
is provided "as is" without expressed or implied warranty. If you
44
modify the Scrollkeeper OMF DTD in any way, except for declaring and 
45
referencing additional sets of general entities, declaring additional 
46
notations, please label your DTD as a variant of Scrollkeeper. This 
47
license requirement is stated solely in the interests of maintaining 
48
data interchange capability.
49
                                                                   -->
50
51
<!-- ............................................................. -->
52
<!-- Entity Sets ................................................. -->
53
<!-- ............................................................. -->
54
55
<!ENTITY % licenseTypes PUBLIC
56
"-//Open Source Metadata Framework (OMF)//ENTITIES License Types//EN"
57
"licenseTypes.mod"                                                   >
58
<!-- %licenseTypes; -->
59
60
<!ENTITY % countryCodes PUBLIC
61
"-//Open Source Metadata Framework (OMF)//ENTITIES Country Codes//EN"
62
"countryCodes.mod"                                                   >
63
<!-- %countryCodes; -->
64
65
<!ENTITY % languageCodes PUBLIC
66
"-//Open Source Metadata Framework (OMF)//ENTITIES Language Codes//EN"
67
"languageCodes.mod"                                                  >
68
<!-- %languageCodes; -->
69
70
<!ENTITY % linuxDistributions PUBLIC
71
"-//Open Source Metadata Framework (OMF)//ENTITIES Linux Distributions//EN"
72
"linuxDistributions.mod"                                             >
73
<!-- %linuxDistributions; -->
74
75
<!-- ............................................................. -->
76
<!-- ............................................................. -->
77
78
<!-- ............................................................. -->
79
<!-- Internal Entities ........................................... -->
80
<!-- ............................................................. -->
81
<!ENTITY % base.attribute.set
82
"id        ID                                 #IMPLIED
83
modified   CDATA                              #IMPLIED
84
created    CDATA                              #IMPLIED"              >
85
86
<!ENTITY % core.attribute.set
87
"%base.attribute.set;
88
agent      CDATA                              #IMPLIED
89
status     CDATA                              #IMPLIED"              >
90
91
<!ENTITY % url.attribute.set
92
"url       CDATA                              #REQUIRED
93
%core.attribute.set;"                                                >
94
95
<!ENTITY % value.attribute.set
96
"value     CDATA                              #REQUIRED
97
%core.attribute.set;"                                                >
98
99
<!-- ............................................................. -->
100
<!-- ............................................................. -->
101
102
<!-- ............................................................. -->
103
<!-- Element Declarations......................................... -->
104
<!-- ............................................................. -->
105
<!--                    omf root element                           -->
106
<!ELEMENT  omf          (resource)+                                  >
107
<!ATTLIST  omf
108
             %base.attribute.set;                                    >
109
110
<!--                    resource                                   -->
111
<!ELEMENT  resource     (creator+, maintainer*, contributor*, title, 
112
                         date, version*, subject*, description?, 
113
                         type*, coverage*, format, identifier, 
114
                         language, relation*, source*, rights*)      >
115
116
<!ATTLIST  resource
117
             %core.attribute.set;                                    >
118
<!--                    creator                                    -->
119
<!ELEMENT  creator      (#PCDATA)                                    >
120
<!ATTLIST  creator
121
             %core.attribute.set;                                    >
122
123
<!--                    maintainer                                 -->
124
<!ELEMENT  maintainer   (#PCDATA)                                    >
125
<!ATTLIST  maintainer
126
             %core.attribute.set;                                    >
127
128
<!--                    contributor                                -->
129
<!ELEMENT  contributor  (#PCDATA)                                    >
130
<!ATTLIST  contributor
131
             %core.attribute.set;                                    >
132
133
<!--                    title                                      -->
134
<!ELEMENT  title        (#PCDATA)                                    >
135
<!ATTLIST  title
136
             %core.attribute.set;                                    >
137
138
<!--                    version                                    -->
139
<!ELEMENT  version      EMPTY                                        >
140
<!ATTLIST  version
141
             identifier CDATA                              #REQUIRED
142
             date       CDATA                              #REQUIRED
143
             description CDATA                             #IMPLIED
144
             %core.attribute.set;                                    >
145
146
<!--                    date                                       -->
147
<!ELEMENT  date         (#PCDATA)                                    >
148
<!ATTLIST  date
149
             %core.attribute.set;                                    >
150
<!--                    description                                -->
151
<!ELEMENT  description  (#PCDATA)                                    >
152
<!ATTLIST  description
153
             %core.attribute.set;                                    >
154
155
<!--                    subject                                    -->
156
<!ELEMENT  subject      EMPTY                                        >
157
<!ATTLIST  subject
158
             category   CDATA                              #REQUIRED
159
             %core.attribute.set;                                    >
160
161
<!--                    type                                       -->
162
<!--                    See coreTypes.mod, an entity set
163
                        comprising a formal vocabulary for type    -->
164
<!ELEMENT  type         (#PCDATA)                                    >
165
<!ATTLIST  type
166
             %core.attribute.set;                                    >
167
168
<!--                    format                                     -->
169
<!ELEMENT  format       EMPTY                                        >
170
<!ATTLIST  format
171
             mime       CDATA                              #REQUIRED 
172
             dtd        CDATA                              #IMPLIED
173
             %core.attribute.set;                                    >
174
175
<!--                    identifier                                 -->
176
<!ELEMENT  identifier   EMPTY                                        >
177
<!ATTLIST  identifier
178
             %url.attribute.set;                                     >
179
 
180
<!--                    source                                     -->
181
<!ELEMENT  source       (#PCDATA)                                    >
182
<!ATTLIST  source
183
             %core.attribute.set;                                    >
184
185
<!--                    language                                   -->
186
<!--                    see languageCodes.mod, an entity set
187
                        comprising a formal vocabulary for
188
                        language, derived from ISO 639 and 639-2   -->
189
<!ELEMENT  language     EMPTY                                        >
190
<!ATTLIST  language
191
             code       CDATA                              #REQUIRED
192
             name       CDATA                              #IMPLIED
193
             src        CDATA                              #IMPLIED
194
             %core.attribute.set;                                    >
195
196
<!--                    relation                                   -->
197
<!ELEMENT  relation     EMPTY                                        >
198
<!ATTLIST  relation
199
             seriesid   CDATA                              #REQUIRED
200
             %core.attribute.set;                                    >
201
202
<!--                    coverage                                   -->
203
<!ELEMENT  coverage     EMPTY                                        >
204
<!ATTLIST  coverage
205
             geographic   CDATA                            #IMPLIED
206
             distribution CDATA                            #IMPLIED
207
             kernel       CDATA                            #IMPLIED
208
             architecture CDATA                            #IMPLIED
209
             os           CDATA                            #IMPLIED
210
             %core.attribute.set;                                    >
211
<!--                    rights                                     -->
212
<!--                    see licenseTypes.mod, an entity set
213
                        comprising a formal vocabulary for rights  -->
214
<!ELEMENT  rights       EMPTY                                        >
215
<!ATTLIST  rights
216
             type       CDATA                              #IMPLIED
217
             license    CDATA                              #IMPLIED
218
             license.version CDATA                         #IMPLIED
219
             holder     CDATA                              #IMPLIED
220
             %core.attribute.set;                                    >
221
<!-- ............................................................. -->
222
<!-- ............................................................. -->
223

Comments