commit 13a444c07b45b736a2526a83e159137561e043ee Author: CentOS Sources Date: Tue May 7 08:45:44 2019 -0400 import rarian-0.8.1-19.el8 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..136c72c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rarian-0.8.1.tar.bz2 diff --git a/.rarian.metadata b/.rarian.metadata new file mode 100644 index 0000000..1ce2f9d --- /dev/null +++ b/.rarian.metadata @@ -0,0 +1 @@ +9b3f1bad1cdbb0de51d6f74431b20eb3647edc5a SOURCES/rarian-0.8.1.tar.bz2 diff --git a/SOURCES/rarian-0.8.1-categories.patch b/SOURCES/rarian-0.8.1-categories.patch new file mode 100644 index 0000000..2745ffd --- /dev/null +++ b/SOURCES/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/SOURCES/scrollkeeper-omf.dtd b/SOURCES/scrollkeeper-omf.dtd new file mode 100644 index 0000000..6b84137 --- /dev/null +++ b/SOURCES/scrollkeeper-omf.dtd @@ -0,0 +1,223 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SPECS/rarian.spec b/SPECS/rarian.spec new file mode 100644 index 0000000..4af17fa --- /dev/null +++ b/SPECS/rarian.spec @@ -0,0 +1,243 @@ +### Abstract ### + +Name: rarian +Version: 0.8.1 +Release: 19%{?dist} +License: LGPLv2+ +Group: System Environment/Base +Summary: Documentation meta-data library +URL: http://rarian.freedesktop.org/ +Source: http://download.gnome.org/sources/rarian/0.8/rarian-%{version}.tar.bz2 +Source1: scrollkeeper-omf.dtd +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +### Patch ### + +# RH bug #453342 +Patch1: rarian-0.8.1-categories.patch + +### Dependencies ### + +Requires(post): libxml2 +Requires(postun): libxml2 +# for /usr/bin/xmlcatalog + +Requires: libxslt +# for /usr/bin/xsltproc +Requires: coreutils, util-linux, gawk +# for basename, getopt, awk, etc + +### Build Dependencies ### + +BuildRequires: libxslt-devel + +%description +Rarian is a documentation meta-data library that allows access to documents, +man pages and info pages. It was designed as a replacement for scrollkeeper. + +%package compat +License: GPLv2+ +Group: System Environment/Base +Summary: Extra files for compatibility with scrollkeeper +Requires: rarian = %{version}-%{release} +Requires(post): rarian +# The scrollkeeper version is arbitrary. It just +# needs to be greater than what we're obsoleting. +Provides: scrollkeeper = 0.4 +Obsoletes: scrollkeeper <= 0.3.14 + +%description compat +This package contains files needed to maintain backward-compatibility with +scrollkeeper. + +%package devel +Group: Development/Languages +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"). + +%prep +%setup -q +%patch1 -p1 -b .categories + +%build + +%configure --disable-skdb-update +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/xml/scrollkeeper/dtds +cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/xml/scrollkeeper/dtds + +rm -rf $RPM_BUILD_ROOT%{_libdir}/librarian.a +rm -rf $RPM_BUILD_ROOT%{_libdir}/librarian.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%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 +%defattr(-,root,root,-) +%doc README COPYING COPYING.LIB COPYING.UTILS ChangeLog NEWS AUTHORS +%{_bindir}/rarian-example +%{_libdir}/librarian.so.* +%{_datadir}/librarian +%{_datadir}/help + +%files compat +%defattr(-,root,root,-) +%{_bindir}/rarian-sk-* +%{_bindir}/scrollkeeper-* +%{_datadir}/xml/scrollkeeper + +%files devel +%defattr(644,root,root,755) +%{_includedir}/rarian +%{_libdir}/librarian.so +%{_libdir}/pkgconfig/rarian.pc + +%changelog +* Fri Feb 09 2018 Fedora Release Engineering - 0.8.1-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.8.1-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.8.1-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.8.1-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.8.1-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 0.8.1-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 0.8.1-13 +- Rebuilt for GCC 5 C++11 ABI change + +* Sun Aug 17 2014 Fedora Release Engineering - 0.8.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 0.8.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.8.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.8.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 0.8.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.8.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 0.8.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Jul 26 2009 Fedora Release Engineering - 0.8.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 0.8.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Nov 22 2008 Matthew Barnes - 0.8.1-3 +- Shorten the summary. + +* Mon Nov 10 2008 Matthew Barnes - 0.8.1-2 +- Add patch for RH bug #453342 (OMF category parsing). + +* Mon Sep 01 2008 Matthew Barnes - 0.8.1-1 +- Update to 0.8.1 + +* Sun May 4 2008 Matthias Clasen - 0.8.0-2 +- Fix source url + +* Mon Feb 18 2008 Matthew Barnes - 0.8.0-1 +- Update to 0.8.0 +- Silence xmlcatalog commands (RH bug #433315). + +* Mon Feb 18 2008 Matthew Barnes - 0.7.1-3 +- Require libxml2 in %%post and %%postun (RH bug #433268). + +* Sat Feb 09 2008 Matthew Barnes - 0.7.1-2 +- Install XML DTD for scrollkeeper OMF files (RH bug #431088). + +* Tue Jan 08 2008 - Bastien Nocera - 0.7.1-1 +- Update to 0.7.1 + +* Mon Nov 26 2007 Matthew Barnes - 0.7.0-1 +- Update to 0.7.0 + +* Tue Nov 06 2007 Matthew Barnes - 0.6.0-2 +- Own /usr/share/help (RH bug #363311). + +* Wed Sep 12 2007 Matthew Barnes - 0.6.0-1 +- Update to 0.6.0 +- Remove patch for RH bug #254301 (fixed upstream). + +* Thu Aug 30 2007 Matthew Barnes - 0.5.8-3 +- Add patch for RH bug #254301 (rarian-sk-config --omfdir). + +* Wed Aug 22 2007 Matthew Barnes - 0.5.8-2 +- Mass rebuild + +* Mon Aug 13 2007 Matthew Barnes - 0.5.8-1 +- Update to 0.5.8 + +* Thu Aug 9 2007 Matthias Clasen - 0.5.6-5 +- Move Provides and Obsoletes in the same package, to + avoid unnessary complications + +* Sat Aug 4 2007 Matthias Clasen - 0.5.6-4 +- Add a few missing Requires + +* Thu Aug 02 2007 Matthew Barnes - 0.5.6-3 +- Fix the Obsoletes/Provides relationship. + +* Wed Aug 01 2007 Matthew Barnes - 0.5.6-2 +- More package review feedback (#250150). + +* Wed Aug 01 2007 Matthew Barnes - 0.5.6-1 +- Update to 0.5.6 + +* Tue Jul 31 2007 Matthew Barnes - 0.5.4-2 +- Incorporate package review suggestions. + +* Mon Jul 30 2007 Matthew Barnes - 0.5.4-1 +- Initial packaging.