Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 536f2e39b74c1c01b5972443595f6e60 > files > 4

rarian-0.8.1-19.mga9.src.rpm

%define major 0
%define libname %mklibname %name %major
%define libnamedev %mklibname -d %name
%define xmlcatalog      %{_sysconfdir}/xml/catalog

Summary:	Cataloging system for documentation on open systems
Name:		rarian
Version:	0.8.1
Release:	%mkrel 19
Source0:	https://rarian.freedesktop.org/Releases/%{name}-%{version}.tar.bz2
Source1:	scrollkeeper-omf.dtd
# gw https://bugs.freedesktop.org/show_bug.cgi?id=11779
Patch0:		rarian-0.5.4-mv.patch
Patch1:		rarian-0.8.1-xz-support.patch
License:	GPLv2+
Group:		Publishing
Url:		https://rarian.freedesktop.org/
Provides:	scrollkeeper = %version-%release
Obsoletes:	scrollkeeper
Requires(post):	libxml2-utils sgml-common util-linux-ng coreutils
Requires(preun): libxml2-utils sgml-common


%description
Rarian is a cataloging system for the installed documentation.

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.

%package -n	%libname
Group:		System/Libraries
Summary:	Rarian cataloging system library

%description -n	%libname
Rarian is a cataloging system for the installed documentation.

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.

%package -n	%libnamedev
Group:		Development/C
Summary:	Rarian cataloging system - development files
Requires:	%libname = %version
Provides:	%name-devel = %version-%release
Provides:	lib%name-devel = %version-%release
Provides:	scrollkeeper-devel = %version-%release

%description -n	%libnamedev
Rarian is a cataloging system for the installed documentation.

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.

%prep
%setup -q
%autopatch -p1

%build
# to recognize aarch64
autoreconf -vfi

%configure --disable-skdb-update --localstatedir=/var --disable-static
%make_build

%install
%make_install localstatedir=%buildroot/var

rm -f %buildroot%{_libdir}/*.la

mkdir -p %buildroot/var/lib/rarian
touch %buildroot/var/lib/rarian/rarian-update-mtimes
install -D -m 644 %SOURCE1 %buildroot%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd

# (doktor5000) filetrigger was useless as /usr/bin/rarian-sk-update script doesn't do anything as skip_omf_translate=1 is defined - it will simply quit with exit 0

%post
  if [ "$1" = "1" ]; then
%_bindir/rarian-sk-update
%{_bindir}/xmlcatalog --noout --add "public" \
        "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \
        "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %xmlcatalog
fi
%_bindir/rarian-sk-rebuild > /dev/null || true

%preun
if [ "$1" = "0" -a -f %xmlcatalog -a -x %{_bindir}/xmlcatalog ] ; then
  %{_bindir}/xmlcatalog --noout --del \
	"%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %xmlcatalog
fi

%postun
if [ "$1" = "0" ]; then
  # rarian is being removed, not upgraded.  
  rm -f %_datadir/help/*.document
fi

%files
%doc README NEWS 
%_bindir/rarian*
%_bindir/scrollkeeper*
%dir %_datadir/help/
%_datadir/help/rarian.document
%_datadir/librarian
%dir %{_datadir}/xml/scrollkeeper/
%dir %{_datadir}/xml/scrollkeeper/dtds/
%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd
%dir /var/lib/rarian
%ghost /var/lib/rarian/rarian-update-mtimes

%files -n %libname
%_libdir/librarian.so.%{major}*

%files -n %libnamedev
%doc ChangeLog TODO
%_libdir/librarian.so
%_includedir/rarian
%_libdir/pkgconfig/rarian.pc


%changelog
* Tue Mar 15 2022 umeabot <umeabot> 0.8.1-19.mga9
+ Revision: 1792290
- Mageia 9 Mass Rebuild

* Fri Feb 14 2020 umeabot <umeabot> 0.8.1-18.mga8
+ Revision: 1516366
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%configure2_5x

* Sun Sep 23 2018 umeabot <umeabot> 0.8.1-17.mga7
+ Revision: 1300780
- Mageia 7 Mass Rebuild

* Sun Jun 03 2018 wally <wally> 0.8.1-16.mga7
+ Revision: 1233985
- fix build on aarch64
+ kekepower <kekepower>
- Use new make macros

* Fri Feb 12 2016 doktor5000 <doktor5000> 0.8.1-15.mga6
+ Revision: 957620
- drop old deprecated filetrigger

* Thu Feb 04 2016 umeabot <umeabot> 0.8.1-14.mga6
+ Revision: 934806
- Mageia 6 Mass Rebuild

* Wed Oct 15 2014 umeabot <umeabot> 0.8.1-13.mga5
+ Revision: 751228
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.8.1-12.mga5
+ Revision: 688614
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 0.8.1-11.mga4
+ Revision: 517995
- Mageia 4 Mass Rebuild

* Mon Jan 14 2013 umeabot <umeabot> 0.8.1-10.mga3
+ Revision: 380200
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Feb 15 2012 ovitters <ovitters> 0.8.1-9.mga2
+ Revision: 209271
- clean spec

* Wed Nov 30 2011 fwang <fwang> 0.8.1-8.mga2
+ Revision: 174358
- drop .la files

* Tue Mar 15 2011 misc <misc> 0.8.1-7.mga2
+ Revision: 71529
- add a Requires on coreutils, needed to run rarian-sk-update, spotted by jbj buildbot

* Sun Jan 09 2011 blino <blino> 0.8.1-7.mga1
+ Revision: 3243
- remove old scrollkeeper migration
- imported package rarian


* Sun Oct 24 2010 Per Øyvind Karlsen <peroyvind@mandriva.org> 0.8.1-6mdv2011.0
+ Revision: 587817
- add xz support (P1)
- remove old ldconfig scriptlet for ancient releases
- cosmetics

* Wed Mar 17 2010 Oden Eriksson <oeriksson@mandriva.com> 0.8.1-5mdv2010.1
+ Revision: 523891
- rebuilt for 2010.1

* Thu Sep 03 2009 Christophe Fergeau <cfergeau@mandriva.com> 0.8.1-4mdv2010.0
+ Revision: 426875
- rebuild

* Sat Mar 07 2009 Antoine Ginies <aginies@mandriva.com> 0.8.1-3mdv2009.1
+ Revision: 351580
- rebuild

* Thu Sep 11 2008 Thierry Vignaud <tv@mandriva.org> 0.8.1-2mdv2009.0
+ Revision: 283750
- fix description

* Mon Sep 01 2008 Götz Waschk <waschk@mandriva.org> 0.8.1-1mdv2009.0
+ Revision: 278578
- new version

* Thu Aug 07 2008 Thierry Vignaud <tv@mandriva.org> 0.8.0-3mdv2009.0
+ Revision: 265616
- rebuild early 2009.0 package (before pixel changes)

* Tue Jun 10 2008 Pixel <pixel@mandriva.com> 0.8.0-2mdv2009.0
+ Revision: 217385
- add rpm filetrigger running scrollkeeper-update when rpm install/remove omf files
- do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Sun Mar 09 2008 Götz Waschk <waschk@mandriva.org> 0.8.0-1mdv2008.1
+ Revision: 183052
- new version

* Sat Mar 01 2008 Adam Williamson <awilliamson@mandriva.org> 0.7.1-4mdv2008.1
+ Revision: 177135
- requires(post) util-linux-ng, not getopt (there is no package called getopt, the getopt binary is in util-linux-ng)

* Sat Mar 01 2008 Olivier Blin <oblin@mandriva.com> 0.7.1-3mdv2008.1
+ Revision: 176989
- require getopt in post (for rarian-sk-update)
- require sgml-common in post/preun (for /etc/xml/catalog)

* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 0.7.1-2mdv2008.1
+ Revision: 171076
- rebuild
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake

  + Funda Wang <fwang@mandriva.org>
    - clearify the SOURCE and URL

* Tue Jan 08 2008 Götz Waschk <waschk@mandriva.org> 0.7.1-1mdv2008.1
+ Revision: 146375
- new version
- drop patch 1

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Tue Nov 27 2007 Götz Waschk <waschk@mandriva.org> 0.7.0-1mdv2008.1
+ Revision: 113305
- new version

* Thu Nov 15 2007 Frederic Crozat <fcrozat@mandriva.com> 0.6.0-2mdv2008.1
+ Revision: 108915
- Update patch1 for upstream submittion (fd.o bug #13255)
- Add comments to specfile and backup extension to patches

* Wed Sep 12 2007 Götz Waschk <waschk@mandriva.org> 0.6.0-1mdv2008.0
+ Revision: 84769
- new version

* Tue Aug 21 2007 Per Øyvind Karlsen <peroyvind@mandriva.org> 0.5.8-2mdv2008.0
+ Revision: 68289
- add lzma support P1

* Tue Aug 14 2007 Götz Waschk <waschk@mandriva.org> 0.5.8-1mdv2008.0
+ Revision: 63137
- new version
- drop patch 1

* Wed Aug 08 2007 Götz Waschk <waschk@mandriva.org> 0.5.6-3mdv2008.0
+ Revision: 60087
- fix a crash

* Wed Aug 01 2007 Götz Waschk <waschk@mandriva.org> 0.5.6-2mdv2008.0
+ Revision: 57402
- add scrollkeeper omf DTD

* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.6-1mdv2008.0
+ Revision: 57222
- new version

* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-5mdv2008.0
+ Revision: 57106
- fix error on uninstallation
- fix postun again

* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-4mdv2008.0
+ Revision: 57024
- fix summary
- fix postun script
- handle generated file in var as ghost file

* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-3mdv2008.0
+ Revision: 57000
- fix localstatedir

* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-2mdv2008.0
+ Revision: 56982
- fix rarian-sk-rebuild call in the post script

* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-1mdv2008.0
+ Revision: 56965
- Import rarian



* Tue Jul 31 2007 Götz Waschk <waschk@mandriva.org> 0.5.4-1mdv2008.0
- initial package