ba260a0
#
ba260a0
# spec file for package lbdb
ba260a0
#
ba260a0
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
ba260a0
# Copyright (c) 2011 Red Hat, Inc
ba260a0
#
ba260a0
# All modifications and additions to the file contributed by third parties
ba260a0
# remain the property of their copyright owners, unless otherwise agreed
ba260a0
# upon. The license for this file, and modifications and additions to the
ba260a0
# file, is the same license as for the pristine package itself (unless the
ba260a0
# license for the pristine package is not an Open Source License, in which
ba260a0
# case the license is the MIT License). An "Open Source License" is a
ba260a0
# license that conforms to the Open Source Definition (Version 1.9)
ba260a0
# published by the Open Source Initiative.
ba260a0
ba260a0
# Please submit bugfixes or comments via http://bugzilla.redhat.com
ba260a0
#
ba260a0
ba260a0
Name:           lbdb
ba260a0
Summary:        Address Database for mutt
aa2ddc7
Version:        0.41
8100dd1
Release:        10%{?dist}
ba260a0
License:        GPLv2+
ba260a0
Url:            http://www.spinnaker.de/lbdb/
ba260a0
Source:         http://www.spinnaker.de/debian/lbdb_%{version}.tar.gz
ba260a0
# change default modules list
085629c
Patch0: 0001-Change-default-methods.patch
ba260a0
# fix path of evolution-addressbook-export
085629c
Patch1: 0002-Look-up-evolution-addressbook-export-in-libexec-rath.patch
ba260a0
# fix hostname lookup if multiple domains are listed in resolv.conf
085629c
Patch2: 0003-Fix-hostname-lookup-if-multiple-domains-are-listed-i.patch
085629c
085629c
Igor Gnatenko 3db41b9
BuildRequires:  gcc
756f33c
BuildRequires: /usr/bin/pod2man
afdd8e0
BuildRequires:  abook
c7eac71
BuildRequires:  gnupg2
c7eac71
BuildRequires:  finger
eaf1313
BuildRequires:  perl-generators
ba260a0
Requires:       perl(Net::LDAP)
ba260a0
Requires:       perl(Getopt::Long)
ba260a0
ba260a0
%description
ba260a0
The Little Brother's Database (lbdb) consists of a set of small tools
ba260a0
that collect mail addresses from several sources and offer these
ba260a0
addresses to the external query feature of the Mutt mail reader.
ba260a0
ba260a0
ba260a0
%prep
ba260a0
%setup -q -n lbdb-%{version}
085629c
%patch0 -p1
ba260a0
%patch1 -p1
ba260a0
%patch2 -p1
ba260a0
ba260a0
ba260a0
%build
ba260a0
# lbdb uses libdir in most of its helper programs to find the absolute path
ba260a0
# to these binaries, that's why it's forcefully set to %_libexecdir/lbdb.
ba260a0
# Another option would be to s/libdir/libexecdir in the helpers, but there
ba260a0
# are about 15 programs to patch, so this approach is easier.
c7eac71
%configure --libdir=%{_libexecdir}/lbdb --with-evolution-addressbook-export=auto --with-gpg=/usr/bin/gpg2
ba260a0
make %{?_smp_mflags}
ba260a0
ba260a0
ba260a0
%install
ba260a0
BUILD_ROOT=${RPM_BUILD_ROOT} make \
ba260a0
        install_prefix=${RPM_BUILD_ROOT} \
ba260a0
        sysconfdir=%{_sysconfdir} \
ba260a0
        mandir=%{_mandir} \
ba260a0
        libdir=%{_libexecdir}/lbdb \
ba260a0
        install
ba260a0
ba260a0
ba260a0
%files
ba260a0
%doc README COPYING INSTALL TODO
ba260a0
%config(noreplace) %{_sysconfdir}/*
ba260a0
%{_bindir}/*
ba260a0
%{_libexecdir}/lbdb/*
ba260a0
%dir %{_libexecdir}/lbdb
ba260a0
%doc %{_mandir}/man?/*
ba260a0
ba260a0
%changelog
8100dd1
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-10
8100dd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8100dd1
6ea54fd
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-9
6ea54fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6ea54fd
11eaa76
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-8
11eaa76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
11eaa76
ccf2bb9
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-7
ccf2bb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ccf2bb9
8334e4f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-6
8334e4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8334e4f
c560584
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-5
c560584
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c560584
abb0a87
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-4
abb0a87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
abb0a87
a5c1d91
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-3
a5c1d91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a5c1d91
077caed
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-2
077caed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
077caed
aa2ddc7
* Mon May 09 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.41-1
aa2ddc7
- Update to upstream release 0.41
aa2ddc7
  Resolves: rhbz#1259881
aa2ddc7
5fbb3d9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-3
5fbb3d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5fbb3d9
82ab3a8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.39-2
82ab3a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
82ab3a8
085629c
* Thu Aug 28 2014 Christophe Fergeau <cfergeau@redhat.com> 0.39-1
085629c
- Update to lbdb 0.39
085629c
a867ca7
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-10
a867ca7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a867ca7
a7dbc77
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-9
a7dbc77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a7dbc77
afdd8e0
* Sun Nov 10 2013 Omair Majid <omajid@redhat.com> - 0.38-8
afdd8e0
- Add BuildRequires: abook to include abook support
afdd8e0
ebcbaa1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-7
ebcbaa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ebcbaa1
d7f5f03
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.38-6
d7f5f03
- Perl 5.18 rebuild
d7f5f03
756f33c
* Wed Mar 06 2013 Christophe Fergeau <cfergeau@redhat.com> - 0.38-5
756f33c
- Add BuildRequires: pod2man, this has been split to a separate package in
756f33c
  rawhide and is no longer available in the build roots by default
756f33c
b37a173
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-4
b37a173
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b37a173
5a44cff
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-3
5a44cff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5a44cff
ba260a0
* Sun Mar 04 2012 Christophe Fergeau <cfergeau@redhat.com> - 0.38-2
ba260a0
- add %%{?dist} in release
ba260a0
- remove use of BuildRoot:
ba260a0
- remove use of %%defattr
ba260a0
- remove usage instruction from %%description
ba260a0
- comment patches
ba260a0
ba260a0
* Mon Sep 19 2011 Christophe Fergeau <cfergeau@redhat.com> - 0.38-1
ba260a0
- new version 0.38
ba260a0
  * adapt the spec file for fedora use
ba260a0
ba260a0
* Tue Feb  8 2011 lnussel@suse.de
ba260a0
- Suggest perl(Net::LDAP) (bnc#669969)
ba260a0
* Wed May 19 2010 lnussel@suse.de
ba260a0
- new version 0.37
ba260a0
  * Fix bashisms in m_bbdb
ba260a0
  * Fix query shell functions to catch non-zero exit status in case they
ba260a0
    get invoked in set -e context.
ba260a0
  * m_evolution: support line breaks and long lines.
ba260a0
  * Fix documentation concerning the quotes on lbdbq call
ba260a0
- fix path to evolution-addressbook-export
ba260a0
* Tue Nov  3 2009 coolo@novell.com
ba260a0
- updated patches to apply with fuzz=0
ba260a0
* Thu Oct  2 2008 lnussel@suse.de
ba260a0
- new version 0.36
ba260a0
  * Remove duplicate "See also: mutt" from lbdbq.man.
ba260a0
  * Update configure using autconf 2.61.
ba260a0
  * Apply charset conversation patch by Peter Colberg based on code by
ba260a0
    Tobias Schlemmer.
ba260a0
  * Remove duplicate declaration of $ignorant.
ba260a0
  * Handle mail addresses in mutt_ldap_query correct. Thanks to Colin
ba260a0
    Watson <cjwatson@debian.org> for providing a patch.
ba260a0
  * Mention ldapi URIs in mutt_ldap_query man page.
ba260a0
  * Protect "make distclean" by checking whether makefile exists.
ba260a0
  * Upgrade to Standards-Version 3.8.0:
ba260a0
  - Fix Homepage header in control file.
ba260a0
  * Add copyright holders to debian/copyright file.
ba260a0
  * Remove outdated override.Lintian.
ba260a0
* Fri Aug 10 2007 lnussel@suse.de
ba260a0
- new version 0.35.1
ba260a0
  * supports ldaps
ba260a0
* Wed May 16 2007 lnussel@suse.de
ba260a0
- new version 0.34
ba260a0
  * vcquery: avoid free() on unallocated memory if fullname is not set.
ba260a0
  * vcquery: Use value of concatenated N fields if FN field is missing.
ba260a0
- fix hostname lookup if multiple domains are listed in resolv.conf
ba260a0
* Mon Oct 16 2006 lnussel@suse.de
ba260a0
- new version 0.33
ba260a0
  * Add SORT_OUTPUT=reverse_comment to do reverse sort by the third column
ba260a0
    (most recent m_inmail timestamp at the top).
ba260a0
  * Comment out LDAP_NICKS in lbdb.rc because this should only be an
ba260a0
    example and if it is set there it overrides other LDAP settings
ba260a0
* Thu Aug 24 2006 lnussel@suse.de
ba260a0
- new version 0.32
ba260a0
- fix path to evolution-addressbook-export
ba260a0
* Wed Jan 25 2006 mls@suse.de
ba260a0
- converted neededforbuild to BuildRequires
ba260a0
* Mon May  9 2005 lnussel@suse.de
ba260a0
- update to version 0.30
ba260a0
* Fri Feb 27 2004 lnussel@suse.de
ba260a0
- run configure similar to the original debian package to reduce
ba260a0
  neededforbuild and to fix evolution addressbook query
ba260a0
- add gpg to default address query methods
ba260a0
* Thu Feb 26 2004 lnussel@suse.de
ba260a0
- update to version 0.29
ba260a0
* Sun Feb  8 2004 lnussel@suse.de
ba260a0
- update to version 0.28.2
ba260a0
- use %%optflags, fix aliasing problems
ba260a0
* Wed Feb 12 2003 lnussel@suse.de
ba260a0
- new version 0.26.2
ba260a0
  * new ldap option $ignorant
ba260a0
  * support for multiple abook address books
ba260a0
* Fri Aug 16 2002 ro@suse.de
ba260a0
- removed emtpy post/postun scripts (#17916)
ba260a0
* Thu Apr 25 2002 lnussel@suse.de
ba260a0
- new version 0.26
ba260a0
- now uses m_getent instead of m_passwd (lbdb.rc.dif)
ba260a0
- moved files from %%{_prefix}/lib to %%{_libdir}/lbdb
ba260a0
* Tue Jul 24 2001 lnussel@suse.de
ba260a0
- new version 0.25
ba260a0
* Tue Mar 20 2001 lnussel@suse.de
ba260a0
- new version 0.24
ba260a0
- added finger to neededforbuild
ba260a0
* Wed Feb  7 2001 lnussel@suse.de
ba260a0
- new version 0.23
ba260a0
- neededforbuild: ypbind -> yp-tools
ba260a0
* Thu Nov 30 2000 ro@suse.de
ba260a0
- neededforbuild: ypclient -> ypbind
ba260a0
* Thu Oct 12 2000 lnussel@suse.de
ba260a0
- new version 0.21.1
ba260a0
- cleaned up spec file
ba260a0
- changed Group to Applications/Mail
ba260a0
* Tue Aug 29 2000 lnussel@suse.de
ba260a0
- initial check in