Package librarian: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | %def_enable snapshot %define _name rarian %define major 0.8 # The version of Scrollkeeper that Rarian obsoletes %define skversion 0.3.14 %def_disable static %def_disable check %{?_enable_check:%def_with check} Name: librarian Version: %major.5 Release: alt1 Summary: A documentation meta-data library License: GPL-2.0-or-later Group: System/Libraries Url: http://rarian.freedesktop.org/ Vcs: https://gitlab.freedesktop.org/rarian/rarian.git %if_disabled snapshot Source: https://gitlab.freedesktop.org/rarian/rarian/-/releases/%version/downloads/assets/%_name-%version.tar.bz2 %else Source: %_name-%version.tar %endif Source1: scrollkeeper-omf.dtd Source2: scrollkeeper-cl.dtd Source3: scrollkeeper.filetrigger Provides: %_name-compat = %EVR Obsoletes: %_name-compat < %version-%release Provides: scrollkeeper = %skversion.rarian.%version-%release Provides: libscrollkeeper = %skversion.rarian.%version-%release Obsoletes: scrollkeeper < %skversion.rarian Obsoletes: libscrollkeeper < %skversion.rarian Requires(pre): xml-common, xml-utils, docbook-dtds BuildRequires(pre): rpm-build-compat rpm-build-licenses BuildRequires(pre): rpm-build-gnome >= 0.8 BuildRequires: gcc-c++ tinyxml-devel xsltproc %{?_enable_check:BuildRequires: libcheck-devel man-db info man-pages} %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 devel Summary: Development files for libRarian Group: Development/C Requires: %name = %EVR Obsoletes: libscrollkeeper-devel < %skversion.rarian %description devel This package contains files required to develop applications that use the Rarian library ("librarian"). %if_enabled static %package static Summary: Static Rarian library Group: Development/C Requires: %name-devel = %EVR %description static Static Rarian library (librarian). %endif %prep %setup -n %_name-%version %build echo %version > .tarball-version export VERSION=%version # all mainstreams sets localstatedir in var, but ALT sets it in /var/lib :( %autoreconf %add_optflags %(getconf LFS_CFLAGS) export ac_cv_path_have_bash=/bin/bash %configure \ %{subst_enable static} \ --enable-omf-read \ --disable-skdb-update \ --localstatedir=%_var \ %{subst_with check} %nil %make_build %install install -d %buildroot%_omfdir install -d %buildroot%_localstatedir/%_name/ %makeinstall_std # dtds install -pD -m 644 %SOURCE1 %buildroot%_datadir/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd install -pD -m 644 %SOURCE2 %buildroot%_datadir/xml/scrollkeeper/dtds/scrollkeeper-cl.dtd # posttrans filetrigger install -pD -m 755 %SOURCE3 %buildroot%_rpmlibdir/scrollkeeper.filetrigger %check #export LC_ALL=en_US.utf8 export LD_LIBRARY_PATH=%buildroot%_libdir %make -k check VERBOSE=1 %post %_bindir/rarian-sk-update %_bindir/xmlcatalog --noout --add "public" \ "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \ "%_datadir/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %_sysconfdir/xml/catalog %_bindir/xmlcatalog --noout --add "public" \ "-//Scrollkeeper//DTD Contents List V1.0//EN" \ "%_datadir/xml/scrollkeeper/dtds/scrollkeeper-cl.dtd" %_sysconfdir/xml/catalog %_bindir/rarian-sk-rebuild -q %preun [ $1 = 0 ] || exit 0 %_bindir/xmlcatalog --noout --del \ "%_datadir/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %_sysconfdir/xml/catalog ||: %_bindir/xmlcatalog --noout --del \ "%_datadir/xml/scrollkeeper/dtds/scrollkeeper-cl.dtd" %_sysconfdir/xml/catalog ||: %files %doc AUTHORS COPYING ChangeLog NEWS README TODO MAINTAINERS %_bindir/rarian-example %_bindir/rarian-sk-* %_bindir/scrollkeeper-* %_libdir/librarian.so.* %_datadir/librarian/ %_datadir/help/ %_datadir/xml/scrollkeeper/dtds/ %_rpmlibdir/scrollkeeper.filetrigger %dir %_localstatedir/%_name/ %dir %_omfdir %files devel %_libdir/librarian.so %_includedir/%_name/ %_pkgconfigdir/%_name.pc %if_enabled static %files static %_libdir/librarian.a %endif %changelog * Mon Apr 29 2024 Yuri N. Sedunov <aris@altlinux.org> 0.8.5-alt1 - updated to 0.8.5-2-g1d3d4b0 - added Vcs tag, updated BR * Sat Aug 28 2021 Yuri N. Sedunov <aris@altlinux.org> 0.8.1-alt7 - disabled build of static library - used newer automake * Mon Nov 11 2013 Yuri N. Sedunov <aris@altlinux.org> 0.8.1-alt6 - used automake_1.11 * Mon Jan 16 2012 Yuri N. Sedunov <aris@altlinux.org> 0.8.1-alt5 - used %%autoreconf to fix RPATH problem * Sat Jan 15 2011 Yuri N. Sedunov <aris@altlinux.org> 0.8.1-alt4 - packaged lost .dtds * Wed Nov 10 2010 Yuri N. Sedunov <aris@altlinux.org> 0.8.1-alt3 - rebuild for soname set-versions * Mon Jun 01 2009 Alexey Rusakov <ktirf@altlinux.org> 0.8.1-alt2.1 - Removed unnecessary rpm-build-spec2macro dependency. * Sat Nov 15 2008 Yuri N. Sedunov <aris@altlinux.org> 0.8.1-alt2 - don't call ldconfig in %%post{,un} - implemented posttrans filetrigger * Fri Sep 05 2008 Alexey Shabalin <shaba@altlinux.ru> 0.8.1-alt1 - New version (0.8.1). * Tue Mar 11 2008 Alexey Rusakov <ktirf@altlinux.org> 0.8.0-alt1 - New version (0.8.0). * Tue Feb 05 2008 Alexey Rusakov <ktirf@altlinux.org> 0.7.1-alt1 - New version (0.7.1). * Sat Jan 05 2008 Alexey Rusakov <ktirf@altlinux.org> 0.7.0-alt6 - Pushed away definitions of RPM macros from librarian even further, to rpm-build-gnome package. * Wed Dec 26 2007 Alexey Rusakov <ktirf@altlinux.org> 0.7.0-alt5 - Moved definitions of RPM macros from librarian-devel to librarian, because librarian (not -devel) provides scrollkeeper, and the macros are needed for back-compatibility with scrollkeeper. * Sat Dec 22 2007 Alexey Rusakov <ktirf@altlinux.org> 0.7.0-alt4 - More specfile tweaks: + use rpm-build-licenses, rpm-build-gnome, rpm-build-spec2macro; + build librarian-devel-static conditionally (off by default); + made clauses that obsolete scrollkeeper more exactly in terms of versions. * Wed Dec 12 2007 Vitaly Lipatov <lav@altlinux.ru> 0.7.0-alt3 - add provides/obsoletes rarian-compat * Wed Dec 12 2007 Vitaly Lipatov <lav@altlinux.ru> 0.7.0-alt2 - move omf dir to librarian - add rpm macros - move scripts to librarian, obsolete rarian-compat - add post/preun scripts * Tue Dec 11 2007 Vitaly Lipatov <lav@altlinux.ru> 0.7.0-alt1 - initial build for ALT Linux Sisyphus (spec from PLD) - scrollkeeper is replaced by rarian-compat |