File libsieve.spec of Package libsieve

#
# spec file for package libsieve (Version 2.2.7)
#
# 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.

Name:           libsieve
Version:        2.2.7
Release:        0
Summary:        A Library for Parsing, Sorting and Filtering Your Mail

Group:          System Environment/Libraries
# License says LGPL, but source is a mix of LGPL and GPL, so we must use the
# more restrictive GPL tag for the license
License:        GPL
URL:            http://libsieve.sourceforge.net/
Source0:        %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  flex bison libtool


%description 
libSieve provides a library to interpret Sieve scripts, and to execute those
scripts over a given set of messages. The return codes from the libSieve
functions let your program know how to handle the message, and then it's up to
you to make it so. libSieve makes no attempt to have knowledge of how SMTP,
IMAP, or anything else work; just how to parse and deal with a buffer full of
emails. The rest is up to you!

%package -n libsieve1
License:        GPL
Summary:        A Library for Parsing, Sorting and Filtering Your Mail
Group:          System Environment/Libraries
# Added for openSUSE 11.0
Provides:       libsieve
Obsoletes:      libsieve < %{version}

%description -n libsieve1
libSieve provides a library to interpret Sieve scripts, and to execute those
scripts over a given set of messages. The return codes from the libSieve
functions let your program know how to handle the message, and then it's up to
you to make it so. libSieve makes no attempt to have knowledge of how SMTP,
IMAP, or anything else work; just how to parse and deal with a buffer full of
emails. The rest is up to you!



%prep 
%setup -q

%build 
cd src

libtoolize --copy --force
autoreconf --force --install --symlink
%configure 
make %{?_smp_mflags}


%install 
cd src && make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -c -p"
rm -f $RPM_BUILD_ROOT/%{_libdir}/*\.{a,la}


%clean 
rm -rf $RPM_BUILD_ROOT

%post   -n libsieve1 -p /sbin/ldconfig
%postun -n libsieve1 -p /sbin/ldconfig 

%files -n libsieve1
%defattr(-,root,root,-) 
%{_libdir}/*.so.*
%doc AUTHORS COPYING NEWS README

%package devel
Summary: A Library for Parsing, Sorting and Filtering Your Mail

Group: Development/Libraries
# Added for openSUSE 11.0

Requires: libsieve = %{version}-%{release}

%description devel
libSieve provides a library to interpret Sieve scripts, and to execute those
scripts over a given set of messages. The return codes from the libSieve
functions let your program know how to handle the message, and then it's up to
you to make it so. libSieve makes no attempt to have knowledge of how SMTP,
IMAP, or anything else work; just how to parse and deal with a buffer full of
emails. The rest is up to you!

These are the development libraries.

%files devel
%defattr(-,root,root,-) 
%{_libdir}/*.so
%{_libdir}/pkgconfig/libsieve.pc
%{_includedir}/*

%changelog 
* Mon Jun 28 2010 Baji Zsolt <bajizs@cnt.rs> - 2.2.7-1
- changed version to 2.2.7
- removed debug_package

* Tue Sep 23 2007 Baji Zsolt <bajizs@cnt.rs> - 2.2.6-1
- 2.2.6
- added autoreconf to solve libtool.m4 and ltmain.sh version poblem
- added build requirements
- remove cleanin RPM_BUILD_ROOT in install section
- fixed openSUSE 11.0 building

* Mon Jan 29 2007 Bernard Johnson <bjohnson@symetrix.com> - 2.2.4-2
- add note regarding why license tag is GPL
- sed surgery on Makefile.in files so that CFLAGS is passed properly

* Sun Jan 28 2007 Bernard Johnson <bjohnson@symetrix.com> - 2.2.4-1
- 2.2.4
- change license to GPL based on https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=216723#c11
- install files preserving timestamps

* Sat Jan 27 2007 Bernard Johnson <bjohnson@symetrix.com> - 2.1.13-4
- add fully versioned dependency on main package for -devel
- remove .a library from -devel
- do not call autoconf, use configure file
- direct download url for source0
- remove buildrequires for autoconf and m4

* Mon Dec 11 2006 Bernard Johnson <bjohnson@symetrix.com> - 2.1.13-3
- added repotag for anyone who may want to use it
- move ldconfig calls to post and postun with -p
- minor spec file cleanups

* Sat Nov 25 2006 Bernard Johnson <bjohnson@symetrix.com> - 2.1.13-2
- bump release to -2
- move .so to -devel
- change %%post command to avoid fork of a shell interpreter

* Sat Nov 18 2006 Bernard Johnson <bjohnson@symetrix.com> - 2.1.13-1.1.sc
- start with fedora extras template for spec file

* Wed Oct 11 2006 Bernard Johnson <bjohnson@symetrix.com> - 2.1.13-1.sc
— Initial package
openSUSE Build Service is sponsored by