scrollkeeper.spec
author dermotm
Mon, 24 Jul 2006 12:30:39 +0000
branchgnome-2-10
changeset 19949 94f49bf19351
parent 19733 2ce91108f14e
permissions -rw-r--r--
access control test #4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     1
#
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     2
# spec file for package scrollkeeper 
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     3
#
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     5
# This file and all modifications and additions to the pristine
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     6
# package are under the same license as the package itself.
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     7
#
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
     8
Name:         scrollkeeper 
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
     9
License:      LGPL
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    10
Group:        Utilities/Text
1440
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    11
Version:      0.3.14
19643
798139c9a46e 2005-08-03 Laszlo Peter <[email protected]>
laca
parents: 19374
diff changeset
    12
Release:      44
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
    13
Distribution: Java Desktop System
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    14
Vendor:	      Sun Microsystems, Inc.
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    15
Summary:      Cataloging System for Documentation 
1440
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    16
Source:       http://ftp.gnome.org/pub/GNOME/sources/scrollkeeper/0.3/scrollkeeper-%{version}.tar.bz2
19719
d184ca39d269 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19693
diff changeset
    17
Source1:      scrollkeeper-update.1.gz
1440
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    18
Source2:      scrollkeeper.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    19
Source3:      scrollkeeper.conf.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    20
Source4:      scrollkeeper-config.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    21
Source5:      scrollkeeper-devel.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    22
Source6:      scrollkeeper-extract.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    23
Source7:      scrollkeeper-gen-seriesid.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    24
Source8:      scrollkeeper-get-cl.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    25
Source9:      scrollkeeper-get-content-list.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    26
Source10:     scrollkeeper-get-extended-content-list.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    27
Source11:     scrollkeeper-get-index-from-docpath.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    28
Source12:     scrollkeeper-get-toc-from-docpath.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    29
Source13:     scrollkeeper-get-toc-from-id.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    30
Source14:     scrollkeeper-install.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    31
Source15:     scrollkeeper-preinstall.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    32
Source16:     scrollkeeper-rebuilddb.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    33
Source17:     scrollkeeper-uninstall.1.gz
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
    34
Patch1:	      scrollkeeper-01-binddomain.diff
19733
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    35
Patch2:	      scrollkeeper-02-merge-lang.diff
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    36
Patch3:	      scrollkeeper-03-help-sections.diff
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    37
Patch4:	      scrollkeeper-04-remove-man.diff
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    38
Patch5:       scrollkeeper-05-no-included-libintl.diff
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    39
Patch6:       scrollkeeper-06-rebuilddb-logdir.diff
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    40
Patch7:       scrollkeeper-07-write_omf_file.diff
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    41
URL:          http://www.gnome.org
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    42
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    43
Autoreqprov:  on
1272
9942132788b5 #4907449
mattk
parents: 1206
diff changeset
    44
Prereq:       docbook_4
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    45
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    46
%define my_localstatedir /var
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    47
%define xmlcatalog      %{_sysconfdir}/xml/catalog
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    48
%define INSTALL_DIR install -d -m755
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    49
%define INSTALL_SCRIPT install -m75
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    50
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
    51
%define intltool_version 0.30
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    52
%define docbook_4_version 4.2
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
    53
%define libxml2_version 2.6.7
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
    54
%define libxslt_version 1.1.2
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    55
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    56
Requires:     intltool >= %{intltool_version}
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    57
Requires:     docbook_4 >= %{docbook_4_version}
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    58
Requires:     libxml2 >= %{libxml2_version}
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    59
Requires:     libxslt >= %{libxslt_version}
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    60
BuildRequires: libxml2-devel >= %{libxml2_version}
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    61
BuildRequires: libxslt-devel >= %{libxslt_version}
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    62
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    63
%define my_localstatedir /var
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    64
%define xmlcatalog      %{_sysconfdir}/xml/catalog
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    65
%define INSTALL_DIR install -d -m755
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    66
%define INSTALL_SCRIPT install -m755
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    67
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    68
%description
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    69
ScrollKeeper is a cataloging system for documentation. It manages
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    70
documentation metadata (as specified by the Open Source Metadata
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    71
Framework (OMF)) and provides a simple API to allow help browsers to
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    72
find, sort, and search the document catalog.
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    73
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    74
It will also be able to communicate with catalog servers on the Net to
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    75
search for documents which are not on the local system.
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    76
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    77
%prep
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    78
%setup -q
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    79
%patch1 -p1
19733
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    80
%patch2 -p1
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    81
%patch3 -p1
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    82
%patch4 -p1
19733
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    83
%patch5 -p1 -b .no-included-libintl
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    84
%patch6 -p1 -b .rebuilddb-logdir
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    85
%patch7 -p1
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    86
4455
aea26bce3124 2004-11-05 Takao Fujiwara <[email protected]>
fujiwara
parents: 4409
diff changeset
    87
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
    88
%build
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    89
%ifos linux
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    90
if [ -x /usr/bin/getconf ]; then
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    91
  CPUS=`getconf _NPROCESSORS_ONLN`
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    92
fi
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    93
%else
3846
9ab79af72b15 2004-09-05 Laszlo Peter <[email protected]>
laca
parents: 3679
diff changeset
    94
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    95
%endif
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    96
if test "x$CPUS" = "x" -o $CPUS = 0; then
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    97
  CPUS=1
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    98
fi
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    99
1698
7aa2a09c56ac *** empty log message ***
laca
parents: 1674
diff changeset
   100
glib-gettextize -f
1674
07fd160acb5c 2004-02-15 Laszlo Peter <[email protected]>
laca
parents: 1660
diff changeset
   101
libtoolize --force
07fd160acb5c 2004-02-15 Laszlo Peter <[email protected]>
laca
parents: 1660
diff changeset
   102
aclocal -I %{_datadir}/aclocal
07fd160acb5c 2004-02-15 Laszlo Peter <[email protected]>
laca
parents: 1660
diff changeset
   103
automake -a -c -f
07fd160acb5c 2004-02-15 Laszlo Peter <[email protected]>
laca
parents: 1660
diff changeset
   104
autoconf
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   105
CFLAGS="$RPM_OPT_FLAGS" \
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   106
  ./configure \
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   107
	--prefix=%{_prefix} \
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   108
	--sysconfdir=%{_sysconfdir} \
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   109
	--mandir=%{_mandir} \
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   110
	--localstatedir=%{my_localstatedir} \
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   111
	--with-omfdirs=%{_datadir}/omf
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
   112
LANG=C LC_ALL=C make -j $CPUS
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   113
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   114
%install
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   115
LANG=C LC_ALL=C make DESTDIR=$RPM_BUILD_ROOT install
1659
f40f153cb8b5 *** empty log message ***
laca
parents: 1609
diff changeset
   116
%ifos linux
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   117
%find_lang %{name}
1659
f40f153cb8b5 *** empty log message ***
laca
parents: 1609
diff changeset
   118
%endif
1522
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   119
install -d $RPM_BUILD_ROOT%{_mandir}/man1
19719
d184ca39d269 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19693
diff changeset
   120
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1
1522
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   121
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   122
install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   123
install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   124
install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   125
install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   126
install --mode=0644 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   127
install --mode=0644 %SOURCE8 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   128
install --mode=0644 %SOURCE9 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   129
install --mode=0644 %SOURCE10 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   130
install --mode=0644 %SOURCE11 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   131
install --mode=0644 %SOURCE12 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   132
install --mode=0644 %SOURCE13 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   133
install --mode=0644 %SOURCE14 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   134
install --mode=0644 %SOURCE15 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   135
install --mode=0644 %SOURCE16 $RPM_BUILD_ROOT%{_mandir}/man1
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   136
install --mode=0644 %SOURCE17 $RPM_BUILD_ROOT%{_mandir}/man1
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
   137
#FIXME - should this be packaged or not ?
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
   138
rm $RPM_BUILD_ROOT/var/log/scrollkeeper.log
19374
962cfaf0f172 Remove scrollkeeper files so that it builds
mattk
parents: 19370
diff changeset
   139
rm -rf $RPM_BUILD_ROOT/%{my_localstatedir}
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   140
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   141
%post
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   142
if [ $1 = 2 ]; then
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   143
  # Upgrading
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   144
  echo "`date +"%b %d %X"` Upgrading to ScrollKeeper `scrollkeeper-config --version`..." >> %{my_localstatedir}/log/scrollkeeper.log
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   145
fi
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   146
if [ $1 = 1 ]; then
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   147
  # Installing
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   148
  echo "`date +"%b %d %X"` Installing ScrollKeeper `scrollkeeper-config --version`..." >> %{my_localstatedir}/log/scrollkeeper.log
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   149
fi
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   150
scrollkeeper-rebuilddb -p %{my_localstatedir}/lib/scrollkeeper >> %{my_localstatedir}/log/scrollkeeper.log 2>&1
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   151
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   152
hkdir="`scrollkeeper-config --pkglocalstatedir`"
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   153
[ -n "$hkdir" ] && rm -rf $hkdir/zh_HK && ln -s zh_TW  $hkdir/zh_HK
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   154
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   155
/sbin/ldconfig
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   156
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   157
#
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   158
# Add OMF DTD to XML catalog. In theory, we should be updating the SGML
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   159
# catalog as well and
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   160
#
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   161
CATALOG=/etc/xml/catalog
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   162
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   163
 "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" \
1522
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   164
 "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   165
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   166
 "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd" \
1522
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   167
 "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   168
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   169
%postun
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   170
rm -rf /var/lib/scrollkeeper/zh_HK
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   171
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   172
if [ $1 = 0 ]; then
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   173
  # Scrollkeeper is being removed, not upgraded.
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   174
  #  ie. erase {my_localstatedir}/lib/scrollkeeper.
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   175
  rm -rf %{my_localstatedir}/lib/scrollkeeper
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   176
  rm -rf %{my_localstatedir}/log/scrollkeeper.log
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   177
  rm -rf %{my_localstatedir}/log/scrollkeeper.log.1
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   178
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   179
  CATALOG=/etc/xml/catalog
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   180
  /usr/bin/xmlcatalog --noout --del \
1522
c8efb7f0f398 2004-01-10 Laszlo Peter <[email protected]>
laca
parents: 1440
diff changeset
   181
    "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" $CATALOG
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   182
fi
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   183
/sbin/ldconfig
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   184
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   185
%clean
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   186
rm -rf $RPM_BUILD_ROOT
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   187
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   188
%files -f %{name}.lang
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   189
%defattr(-,root,root)
1440
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
   190
%doc COPYING AUTHORS README NEWS INSTALL
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   191
%{_bindir}/*
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   192
%{_libdir}/*
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   193
%{_sysconfdir}/*
1440
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
   194
%{_mandir}/*
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   195
%{_datadir}/xml/scrollkeeper
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   196
%{_datadir}/scrollkeeper
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
   197
%{_datadir}/doc/scrollkeeper-%{version}/*
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   198
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   199
%changelog
19370
916935586171 Fixes to build
mattk
parents: 19365
diff changeset
   200
* Wed Jun 08 2005 - [email protected]
19374
962cfaf0f172 Remove scrollkeeper files so that it builds
mattk
parents: 19370
diff changeset
   201
- Remove /var to %files for packageing as rpmbuild was failing
19370
916935586171 Fixes to build
mattk
parents: 19365
diff changeset
   202
3301
eeab40d9f324 scrollkeeper.spec, SUNWgnome-libs.spec: Remove omf/scrollkeeper dir from share
dc144907
parents: 3294
diff changeset
   203
* Sat Jul 10 2004 - [email protected]
eeab40d9f324 scrollkeeper.spec, SUNWgnome-libs.spec: Remove omf/scrollkeeper dir from share
dc144907
parents: 3294
diff changeset
   204
- Remove omf/scrollkeeper dir from %files because the docs have been removed.
eeab40d9f324 scrollkeeper.spec, SUNWgnome-libs.spec: Remove omf/scrollkeeper dir from share
dc144907
parents: 3294
diff changeset
   205
3279
5d64ee516a02 Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents: 3263
diff changeset
   206
* Thu Jul 08 2004 - [email protected]
5d64ee516a02 Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents: 3263
diff changeset
   207
- Updated l10n content to scrollkeeper-l10n-po-1.2.tar.bz2
5d64ee516a02 Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents: 3263
diff changeset
   208
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
   209
* Thu Jul 08 2004 - [email protected]
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
   210
- ported to rpm4
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
   211
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
   212
* Wed Jul 07 2004 - [email protected]
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
   213
- added "-j $CPUS" to make to speed up builds
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
   214
2736
bd6e69980863 Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents: 2619
diff changeset
   215
* Wed May 12 2004 - [email protected]
bd6e69980863 Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents: 2619
diff changeset
   216
- Updated l10n content to scrollkeeper-l10n-po-1.1.tar.bz2
bd6e69980863 Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents: 2619
diff changeset
   217
2350
9adca2a8c84f Uprevved l10n tarballs to version 1.0
damiend
parents: 2280
diff changeset
   218
* Mon Mar 29 2004 - [email protected]
9adca2a8c84f Uprevved l10n tarballs to version 1.0
damiend
parents: 2280
diff changeset
   219
- Updated l10n content to scrollkeeper-l10n-po-1.0.tar.bz2
9adca2a8c84f Uprevved l10n tarballs to version 1.0
damiend
parents: 2280
diff changeset
   220
1674
07fd160acb5c 2004-02-15 Laszlo Peter <[email protected]>
laca
parents: 1660
diff changeset
   221
* Sun Feb 15 2004 - [email protected]
07fd160acb5c 2004-02-15 Laszlo Peter <[email protected]>
laca
parents: 1660
diff changeset
   222
- Add patch to disable building the included libintl on Solaris
07fd160acb5c 2004-02-15 Laszlo Peter <[email protected]>
laca
parents: 1660
diff changeset
   223
- Add patch to create the log in $DESTDIR during make install
07fd160acb5c 2004-02-15 Laszlo Peter <[email protected]>
laca
parents: 1660
diff changeset
   224
1604
974df79ff5cb *** empty log message ***
mattk
parents: 1543
diff changeset
   225
* Mon Feb 09 2004 - [email protected]
974df79ff5cb *** empty log message ***
mattk
parents: 1543
diff changeset
   226
- Bump l10n tarball version, and update for Cinnabar
974df79ff5cb *** empty log message ***
mattk
parents: 1543
diff changeset
   227
1440
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
   228
* Mon Dec 15 2003 - [email protected]
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
   229
- Bump to 0.3.14 and merge patches.
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
   230
1206
1722fc05ac6c SUN -> Java Desktop System, change for quick start user guide
mattk
parents: 1195
diff changeset
   231
* Tue Oct 07 2003 - [email protected]
1722fc05ac6c SUN -> Java Desktop System, change for quick start user guide
mattk
parents: 1195
diff changeset
   232
- Update for Java Desktop System Tag
1722fc05ac6c SUN -> Java Desktop System, change for quick start user guide
mattk
parents: 1195
diff changeset
   233
1134
701fb40a20f1 Bug 4915914
mattk
parents: 1130
diff changeset
   234
* Fri Sep 12 2003 - [email protected]
701fb40a20f1 Bug 4915914
mattk
parents: 1130
diff changeset
   235
- Bug 4915914
701fb40a20f1 Bug 4915914
mattk
parents: 1130
diff changeset
   236
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   237
* Tue Aug 26 2003 - [email protected]
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   238
- upgrade to new tarball (pulling in a number of fixes we need)
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   239
  and reorder the patches
1440
0be9ae577da5 2003-12-15 Glynn Foster <[email protected]>
gman
parents: 1272
diff changeset
   240
1124
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   241
* Thu Aug 21 2003 - [email protected]
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   242
- Changing the section searching behaviour to use categorycode 
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   243
  attribute instead of the l10n'd title/text(). This fixes bug
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   244
  4901844.
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   245
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   246
* Mon Aug 18 2003 - [email protected]
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   247
- Help sections patch
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   248
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   249
* Thu Jul 10 2003 - [email protected]
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   250
- Added .po tarball
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   251
- Removed temporary zh_HK cp hack.
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   252
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   253
* Wed Jun 26 2003 - [email protected]
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   254
- Add -p1 to the patches, remove %patch5 cause it's one too many (-;
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   255
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   256
* Wed Jun 26 2003 - [email protected]
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   257
- Add patches 01-05 from sun-patches
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   258
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   259
* Wed May 14 2003 - [email protected]
f03c7eeb58ee upgrade tarball and rename all Scrollkeeper patches that we keep
lk86177
parents:
diff changeset
   260
- Initial Sun release