Package mswatch: Specfile

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

Name: mswatch
Version: 1.2.0
Release: alt2.svn20120312
Summary: Watch mailstores for changes and initiate mailbox syncs
License: GPLv2+
Group: Networking/Mail
Url: http://mswatch.sourceforge.net/

Source: %name-%version.tar

Patch1: %name-%version-debian-gcc6.patch

BuildRequires: flex gcc-c++ glib2-devel

%description
mswatch is a command line unix program that keeps two mailboxes
synchronized more efficiently and with shorter delays than periodically
synchronizing the two mailboxes.
mswatch watches mailboxes to know when to initiate mailbox syncs. Using
mswatch, your mail synchronization program can be called on demand
instead of through polling, resulting in prompter mail delivery and
lower bandwidth usage and server load.
mswatch is designed to work in conjunction with mailbox synchronization
programs, currently supports watching Linux (2.4+) hosted Maildirs
(including Maildir folders, Maildir++), and is licensed under the GNU
GPL. Future support for additional mailbox formats, especially for mbox,
is planned.

%prep
%setup
%patch1 -p1

%build
%add_optflags -D_FILE_OFFSET_BITS=64

%autoreconf
%configure \
	--disable-static \
	%nil

%make_build

%install
%makeinstall

# libraries are unused, remove them
rm -f %buildroot%_libdir/*.so*

%files
%doc AUTHORS ChangeLog INTERFACES NEWS README THANKS TODO generalized mswatchrc.sample
%_bindir/*
%_man1dir/*

%changelog
* Wed Sep 01 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.0-alt2.svn20120312
- Fixed build with LTO.

* Fri Sep 15 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.0-alt1.svn20120312.1
- Fixed build with gcc-6.

* Tue Sep 16 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.0-alt1.svn20120312
- Version 1.2.0

* Fri Dec 07 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.1-alt1.1
- Fixed build with glibc 2.16

* Sun Jul 04 2010 Andrey Rahmatullin <wrar@altlinux.org> 1.1.1-alt1
- initial build