Hello community,

here is the log from the commit of package mlocate for openSUSE:Factory checked 
in at 2013-06-05 12:56:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mlocate (Old)
 and      /work/SRC/openSUSE:Factory/.mlocate.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mlocate"

Changes:
--------
New Changes file:

--- /dev/null   2013-05-23 01:40:31.032032505 +0200
+++ /work/SRC/openSUSE:Factory/.mlocate.new/mlocate.changes     2013-06-05 
12:56:07.000000000 +0200
@@ -0,0 +1,92 @@
+-------------------------------------------------------------------
+Mon Jun  3 12:09:09 UTC 2013 - [email protected]
+
+- Add COPYING to %docs macro as reported by cfarrell.
+
+-------------------------------------------------------------------
+Mon Jun  3 11:41:23 UTC 2013 - [email protected]
+
+- license update: GPL-2.0
+  Multiple instances of (c) Red Hat GPL-2.0 licensing
+
+-------------------------------------------------------------------
+Thu May 30 11:29:26 UTC 2013 - [email protected]
+
+- Fixup provide/obsolete to really work + cleanup spec
+
+-------------------------------------------------------------------
+Thu May 30 10:49:45 UTC 2013 - [email protected]
+
+- More work wrt previous change. Provide/obsolete findutils-locate.
+
+-------------------------------------------------------------------
+Thu May 30 09:26:59 UTC 2013 - [email protected]
+
+- Do not use sgid but require user to be in group locate
+  in order to be able to search.
+
+-------------------------------------------------------------------
+Sun Dec  2 11:04:25 UTC 2012 - [email protected]
+
+- Whitespace / format the spec a bit.
+
+-------------------------------------------------------------------
+Tue Nov 20 20:54:44 UTC 2012 - [email protected]
+
+- Try to shutup the suid error. 
+
+-------------------------------------------------------------------
+Tue Nov 20 20:51:58 UTC 2012 - [email protected]
+
+- Run the perm stuff only on new enough suse.
+
+-------------------------------------------------------------------
+Tue Nov 20 20:45:46 UTC 2012 - [email protected]
+
+- Update the verify to adhere specs.
+
+-------------------------------------------------------------------
+Tue Nov 20 20:42:25 UTC 2012 - [email protected]
+
+- Adhere to specs to exit 0 on pre.
+
+-------------------------------------------------------------------
+Tue Nov 20 20:39:51 UTC 2012 - [email protected]
+
+- Add buildroot definition to have it on sle
+
+-------------------------------------------------------------------
+Tue Nov 20 20:33:41 UTC 2012 - [email protected]
+
+- require pwdutils for pre phase
+
+-------------------------------------------------------------------
+Mon Nov 12 14:29:49 UTC 2012 - [email protected]
+
+- silence error about PIE, thanks to darix for suggestions on irc.
+
+-------------------------------------------------------------------
+Mon Nov 12 13:45:07 UTC 2012 - [email protected]
+
+- version bump to latest
+
+-------------------------------------------------------------------
+Mon Oct 31 14:56:45 UTC 2011 - [email protected]
+
+- spec cleanup
+
+-------------------------------------------------------------------
+Fri Aug  5 07:57:11 UTC 2011 - [email protected]
+
+- Update the docs list
+
+-------------------------------------------------------------------
+Thu Aug  4 20:03:44 UTC 2011 - [email protected]
+
+- Punt useless clean section
+
+-------------------------------------------------------------------
+Thu Aug  4 14:37:22 UTC 2011 - [email protected]
+
+- Initial version 0.24 of mlocate package
+

New:
----
  mlocate-0.26.tar.xz
  mlocate-cron.conf
  mlocate.changes
  mlocate.cron
  mlocate.spec
  updatedb.conf

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mlocate.spec ++++++
#
# spec file for package mlocate
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mlocate
Version:        0.26
Release:        0
Summary:        An utility for finding files by name
License:        GPL-2.0
Group:          System/Monitoring
Url:            https://fedorahosted.org/mlocate/
Source0:        
https://fedorahosted.org/releases/m/l/%name/%name-%version.tar.xz
Source1:        updatedb.conf
Source2:        %name.cron
Source3:        %name-cron.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gettext-tools
BuildRequires:  grep
BuildRequires:  sed
BuildRequires:  xz
Requires(pre):  permissions
Requires(pre):  pwdutils
Requires:       cron
Provides:       findutils:/usr/bin/locate
# findutils is at version 4.5 so we need newer
# provides here to get it really obsoleted
Provides:       findutils-locate = 5.%{version}
Obsoletes:      findutils-locate < 5.%{version}

%description
A new locate implementation. The m character
stands for merging, because updatedb reuses the
existing database to avoid re-reading most of the
file system.

User must bemember of locate group in order to
use this package.

%package lang
Summary:        Language translation files for mlocate
Group:          System/Localization

%description lang
A new locate implementation. The m character
stands for merging, because updatedb reuses the
existing database to avoid re-reading most of the
file system.

This package installs language translation files
for mlocate if required by multilingual
environments.

%prep
%setup -q

%build
export CFLAGS="%optflags -fPIE"
export LDFLAGS="-pie"
%configure --localstatedir=%_localstatedir/lib --enable-nls
make groupname=locate

%install
rm -rf %buildroot
make DESTDIR=%buildroot groupname=locate install
%find_lang %name || echo -n >> %name.lang
mkdir -p %buildroot%_localstatedir/lib/%name
echo -n >> %buildroot%_localstatedir/lib/%name/%name.db
mkdir -p %buildroot%_sysconfdir
install -p -m 644 %SOURCE1 %buildroot%_sysconfdir
install -p -m 644 %SOURCE3 %buildroot%_sysconfdir
mkdir -p %buildroot%_sysconfdir/cron.daily
install -p -m 755 %SOURCE2 %buildroot%_sysconfdir/cron.daily

%pre
getent group locate >/dev/null || groupadd -r locate
exit 0

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README NEWS COPYING
%config(noreplace) %_sysconfdir/updatedb.conf
%config(noreplace) %_sysconfdir/mlocate-cron.conf
%_sysconfdir/cron.daily/%name.cron
%attr(0710,root,locate) %_bindir/locate
%_bindir/updatedb
%_mandir/man*/*
%dir %attr(0710,root,locate) %_localstatedir/lib/mlocate
%ghost %_localstatedir/lib/mlocate/mlocate.db

%files lang -f %name.lang
%defattr(-,root,root,-)

%changelog
++++++ mlocate-cron.conf ++++++
# nice value to run at: see -n in nice(1)
NICE="19"

# ionice class to run at: see -c in ionice(1)
# you have to install sys-apps/util-linux manually
IONICE_CLASS="2"

# ionice priority to run at: see -n in ionice(1)
IONICE_PRIORITY="7"
++++++ mlocate.cron ++++++
#! /bin/sh
set -e

# check if we run on battery and if so then don't run
if which on_ac_power >/dev/null 2>&1; then
        ON_BATTERY=0
        on_ac_power >/dev/null 2>&1 || ON_BATTERY=$?
        if [ "${ON_BATTERY}" -eq 1 ]; then
                        exit 0
        fi
fi

# check if we are already running (lockfile)
LOCKFILE="/var/lock/mlocate.daily.lock"
if [ -e "${LOCKFILE}" ]; then
        echo >&2 "Warning: \"${LOCKFILE}\" already present, not running 
updatedb."
        exit 1
fi
touch "${LOCKFILE}"
# trap the lockfile only if we really run the updatedb
trap "rm -f ${LOCKFILE}" EXIT

# source the user specified variables
if [ -f /etc/mlocate-cron.conf ]; then
        . /etc/mlocate-cron.conf
fi

# check the config file
NODEVS=""
if [ ! -f /etc/updatedb.conf ]; then
        NODEVS=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" { 
print $2 }')
fi

# alter the priority of the updatedb process
if [ -x /usr/bin/renice ]; then
        /usr/bin/renice +${NICE:-19} -p $$ > /dev/null 2>&1
fi
if [ -x /usr/bin/ionice ] && /usr/bin/ionice -c3 true 2>/dev/null; then
        /usr/bin/ionice -c${IONICE_CLASS:-2} -n${IONICE_PRIORITY:-7} -p $$ > 
/dev/null 2>&1
fi

# run the updatedb if possible
if [ -x /usr/bin/updatedb ]; then
        /usr/bin/updatedb -f "${NODEVS}"
else
        echo >&2 "Warning: \"/usr/bin/updatedb\" is not executable, unable to 
run updatedb."
        exit 0
fi
++++++ updatedb.conf ++++++
# /etc/updatedb.conf: config file for mlocate

# This file sets variables that are used by updatedb.
# For more info, see the updatedb.conf(5) manpage.

# Filesystems that are pruned from updatedb database
PRUNEFS="afs anon_inodefs auto autofs bdev binfmt binfmt_misc cgroup cifs coda 
configfs cramfs cpuset debugfs devpts devtmps devfs devpts ecryptfs eventpollfs 
exofs futexfs ftpfs fuse fusectl gfs gfs2 hostfs hugetlbfs inotifyfs iso9660 
jffs2 lustre misc mqueue ncpfs nfs NFS nfs4 nfsd nnpfs ocfs ocfs2 pipefs proc 
ramfs rpc_pipefs securityfs selinuxfs sfs shfs smbfs sockfs spufs sshfs subfs 
supermount sysfs tmpfs ubifs udf usbfs vboxsf vperfctrfs"

# Paths which are pruned from updatedb database
PRUNEPATHS="/tmp /var/tmp /var/cache /var/lock /var/run /var/spool"

# Folder names that are pruned from updatedb database
PRUNENAMES=".git .hg .svn CVS"

# Skip bind mounts.
PRUNE_BIND_MOUNTS="yes"
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to