Re: [ATrpms-devel] dovecot spec

2013-07-02 Thread Axel Thimm
Hi,

On Wed, Jun 26, 2013 at 11:43:04AM +0200, Kim Bisgaard wrote:
 Looking in BUILDROOT:
 ls -l BUILDROOT/
 total 8
 drwxr-xr-x. 5 kim users 4096 Jun 26 10:59 dovecot-2.2.4-2_138.fc17.i386
 drwxr-xr-x. 2 kim users 4096 Jun 26 10:59 
 dovecot-2.2.4-2_138.fc17.i386%{_tmpfilesdir}
 
 
 Does not look like _tmpfilesdir is set :-(

:(

 I have remembered that tmpfilesdir should be set to /etc/tmpfiles.d :-)
 
 I have this installed:
 atrpms-rpm-config-203-1.noarch

I decided to hardcode it for now. The macro is only valid for F19 (or
even F20?) upwards.

 Regards,
 Kim
 
 
 On 2013-06-26 11:19, Kim Bisgaard wrote:
 Hi Axel,
 
 I noticed that Dovecot had a 2.2.4 release, but with a warning (in
 2.2.3) that it needed a new version of Pigeonhole.  There is
 currently no new release of Pigeonhole, so I wanted to see what
 would happen if I tried to recompile new Dovecot with old
 Pigeonhole.
 
 I downloaded your src-rpm, updated the version, and tried to rebuild but ran 
 into this error:
 Processing files: dovecot-2.2.4-2_138.fc17.i686
 error: File must begin with /: %_tmpfilesdir/dovecot.conf
 Executing(%doc): /bin/sh -e /home/kim/rpm/tmp/rpm-tmp.M1htXb
 + umask 022
 + cd /home/kim/rpm/BUILD
 + cd dovecot-2.2.4
 + 
 DOCDIR=/home/kim/rpm/BUILDROOT/dovecot-2.2.4-2_138.fc17.i386/usr/share/doc/dovecot-2.2.4
 + export DOCDIR
 + /usr/bin/mkdir -p 
 /home/kim/rpm/BUILDROOT/dovecot-2.2.4-2_138.fc17.i386/usr/share/doc/dovecot-2.2.4
 + cp -pr docinstall/documentation.txt
 docinstall/dovecot-openssl.cnf docinstall/example-config
 docinstall/mkcert.sh docinstall/solr-schema.xml docinstall/wiki
 AUTHORS ChangeLog COPYING COPYING.LGPL COPYING.MIT NEWS README 
 /home/kim/rpm/BUILDROOT/dovecot-2.2.4-2_138.fc17.i386/usr/share/doc/dovecot-2.2.4
 + exit 0
 
 
 RPM build errors:
 File must begin with /: %_tmpfilesdir/dovecot.conf
 
 
 It seems to come from these lines:
 %if %{with systemd}
 %_tmpfilesdir/dovecot.conf
 %{_unitdir}/dovecot.service
 %{_unitdir}/dovecot.socket
 %else
 
 
 But I do not understand why dovecot.conf should go into some
 temp-dir? nor why I have a problem here, since I have the newest
 macros? I have tried to surround it with {}, with no luck. This is
 on FC17.
 
 Hope you can shed some light...
 
 Regards,
 Kim
 
 
 ___
 atrpms-devel mailing list
 atrpms-devel@atrpms.net
 http://lists.atrpms.net/mailman/listinfo/atrpms-devel
 
 
 ___
 atrpms-devel mailing list
 atrpms-devel@atrpms.net
 http://lists.atrpms.net/mailman/listinfo/atrpms-devel
 

-- 
Axel.Thimm at ATrpms.net

___
atrpms-devel mailing list
atrpms-devel@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


Re: [ATrpms-devel] dovecot spec

2013-06-26 Thread Kim Bisgaard

Looking in BUILDROOT:
ls -l BUILDROOT/
total 8
drwxr-xr-x. 5 kim users 4096 Jun 26 10:59 dovecot-2.2.4-2_138.fc17.i386
drwxr-xr-x. 2 kim users 4096 Jun 26 10:59 
dovecot-2.2.4-2_138.fc17.i386%{_tmpfilesdir}


Does not look like _tmpfilesdir is set :-(

I have remembered that tmpfilesdir should be set to /etc/tmpfiles.d :-)

I have this installed:
atrpms-rpm-config-203-1.noarch

Regards,
Kim


On 2013-06-26 11:19, Kim Bisgaard wrote:

Hi Axel,

I noticed that Dovecot had a 2.2.4 release, but with a warning (in 2.2.3) that it needed a new version of Pigeonhole.  There is currently 
no new release of Pigeonhole, so I wanted to see what would happen if I tried to recompile new Dovecot with old Pigeonhole.


I downloaded your src-rpm, updated the version, and tried to rebuild but ran 
into this error:
Processing files: dovecot-2.2.4-2_138.fc17.i686
error: File must begin with /: %_tmpfilesdir/dovecot.conf
Executing(%doc): /bin/sh -e /home/kim/rpm/tmp/rpm-tmp.M1htXb
+ umask 022
+ cd /home/kim/rpm/BUILD
+ cd dovecot-2.2.4
+ 
DOCDIR=/home/kim/rpm/BUILDROOT/dovecot-2.2.4-2_138.fc17.i386/usr/share/doc/dovecot-2.2.4
+ export DOCDIR
+ /usr/bin/mkdir -p 
/home/kim/rpm/BUILDROOT/dovecot-2.2.4-2_138.fc17.i386/usr/share/doc/dovecot-2.2.4
+ cp -pr docinstall/documentation.txt docinstall/dovecot-openssl.cnf docinstall/example-config docinstall/mkcert.sh 
docinstall/solr-schema.xml docinstall/wiki AUTHORS ChangeLog COPYING COPYING.LGPL COPYING.MIT NEWS README 
/home/kim/rpm/BUILDROOT/dovecot-2.2.4-2_138.fc17.i386/usr/share/doc/dovecot-2.2.4

+ exit 0


RPM build errors:
File must begin with /: %_tmpfilesdir/dovecot.conf


It seems to come from these lines:
%if %{with systemd}
%_tmpfilesdir/dovecot.conf
%{_unitdir}/dovecot.service
%{_unitdir}/dovecot.socket
%else


But I do not understand why dovecot.conf should go into some temp-dir? nor why I have a problem here, since I have the newest macros? I 
have tried to surround it with {}, with no luck. This is on FC17.


Hope you can shed some light...

Regards,
Kim


___
atrpms-devel mailing list
atrpms-devel@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-devel



___
atrpms-devel mailing list
atrpms-devel@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


Re: [ATrpms-devel] dovecot

2013-05-25 Thread Kim Bisgaard

Hi again Axel,

Dovecot just got a new version - I have attached new spec files - where 
I have removed configure flags that is not used anymore.


I made sure to use the correct day of week in the changelog ;-)

Regards,
Kim

On 19-05-2013 09:22, Axel Thimm wrote:

Thanks Kim,

I had already uploaded new packages. Can you check whether they
already have your changes?

BTW I just found out that for EL6/5 I forgot to place it in the
testing repo, it's in the stable until the next update.





dovecot.spec.gz
Description: GNU Zip compressed data


dovecot-pigeonhole.spec.gz
Description: GNU Zip compressed data
___
atrpms-devel mailing list
atrpms-devel@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-devel

Re: [ATrpms-devel] dovecot

2013-05-21 Thread Axel Thimm
On Mon, May 20, 2013 at 08:53:59PM +0200, Kim Bisgaard wrote:
 
 I have a machine following f19, are the spec-files for f18 in good
 shape? because if they are I can start to see if they will compile
 there...
 
 probably the reason people use ATrpms is for the good shape of
 packages, so yes, they are in quite good shape, and while I haven't
 looked into the major changes in f19, I'm quite confident that they
 will rebuilt quite fine against current development/19 repos.
 
 That is a fact that I can follow 100%, but there are a number of
 packages that has not been available (compiled) for f18. Among them
 is gstreamer-plugins-ugly, spamassassin and avidemux.

Yes, that's true - what I meant is that the packages update to f18
should be building fine on f19. There are some important packages that
don't build as is on f18, so that's next.

There are already some f19 packages on dl.atrpms.net ... :)
-- 
Axel.Thimm at ATrpms.net

___
atrpms-devel mailing list
atrpms-devel@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


Re: [ATrpms-devel] dovecot

2013-05-20 Thread Kim Bisgaard


I have a machine following f19, are the spec-files for f18 in good
shape? because if they are I can start to see if they will compile
there...


probably the reason people use ATrpms is for the good shape of
packages, so yes, they are in quite good shape, and while I haven't
looked into the major changes in f19, I'm quite confident that they
will rebuilt quite fine against current development/19 repos.


That is a fact that I can follow 100%, but there are a number of 
packages that has not been available (compiled) for f18. Among them is 
gstreamer-plugins-ugly, spamassassin and avidemux.



Regards
Kim

___
atrpms-devel mailing list
atrpms-devel@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


Re: [ATrpms-devel] dovecot

2013-05-19 Thread Kim Bisgaard

Hi Axel,

I'm sure that they do, as I only added what was needed to get it to 
compile and package all files.


You just too fast - I wanted to send clamav too - but you had done i too 
before I got there!


I have a machine following f19, are the spec-files for f18 in good 
shape? because if they are I can start to see if they will compile there...


Thanks for the good repo!!! - I will go play with upgrading to 
mythtv-0.26 on my f17 machine :-)


Regards,
Kim

On 19-05-2013 09:22, Axel Thimm wrote:

Thanks Kim,

I had already uploaded new packages. Can you check whether they
already have your changes?



___
atrpms-devel mailing list
atrpms-devel@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


Re: [ATrpms-devel] dovecot

2013-05-19 Thread Axel Thimm
Hi,

On Sun, May 19, 2013 at 09:53:55AM +0200, Kim Bisgaard wrote:
 Hi Axel,
 
 I'm sure that they do, as I only added what was needed to get it to
 compile and package all files.
 
 You just too fast - I wanted to send clamav too - but you had done i
 too before I got there!
 
 I have a machine following f19, are the spec-files for f18 in good
 shape? because if they are I can start to see if they will compile
 there...

probably the reason people use ATrpms is for the good shape of
packages, so yes, they are in quite good shape, and while I haven't
looked into the major changes in f19, I'm quite confident that they
will rebuilt quite fine against current development/19 repos.

I guess soon we'll officially start building against f19. Features are
100% and the beta is just a few days ahead.

 Thanks for the good repo!!! - I will go play with upgrading to
 mythtv-0.26 on my f17 machine :-)

Great!!! Let's know how that works out!

 Regards,
 Kim
 
 On 19-05-2013 09:22, Axel Thimm wrote:
 Thanks Kim,
 
 I had already uploaded new packages. Can you check whether they
 already have your changes?
 
 
 ___
 atrpms-devel mailing list
 atrpms-devel@atrpms.net
 http://lists.atrpms.net/mailman/listinfo/atrpms-devel
 

-- 
Axel.Thimm at ATrpms.net

___
atrpms-devel mailing list
atrpms-devel@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-devel


Re: [ATrpms-devel] dovecot

2013-05-18 Thread Kim Bisgaard

Hi Axel,

On 29-09-2012 15:46, Kim Bisgaard wrote:

Hi,

A lot of versions have rushed under the bridge ... and dovecot is at
2.1.10 and pigeonhole is at 0.3.3.


Status now is 2.2.1 for dovecot and 0.4.0 for pigeonhole. I have 
attached spec-files :-) I have been using them since 10/5-2013 on

f17-i686

Regards,
Kim



I build for myself updated packages for f16 based on these versions.

If others are interested in doing the same:
yum install atrpms-rpm-config
Getting the Atrpms src.rpm packages for your OS and install them (will
only install the source)
change the version number to fit in the spec-files
downloaded sources (look in the spec-files)
rpmbuild -bb rpm/SPEC/package.spec
yum localinstall package.rpm

For F16 and F17 i think you should add these args [[--with systemd 1]]
to the rpmbuild command, not convinced that atrpms-rpm-config knows what
to default for each OS :-(

Regards,
Kim

___
atrpms-devel mailing list
atrpms-devel@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-devel
%bcond_without inotify
%bcond_with forcequota2
%bcond_without pidfile
%bcond_without solr
%bcond_without systemd
%bcond_without rquota

Summary: Dovecot Secure imap server
Name: dovecot
Epoch: 1
Version: 2.2.1
Release: 2_132%{?dist}
License: MIT
Group: System Environment/Daemons

URL: http://www.dovecot.org/
Source0: http://www.dovecot.org/releases/2.2/%{name}-%{version}.tar.gz
Source1: dovecot.init
Source2: dovecot.pam
Source3: maildir-migration.txt
Source9: dovecot.sysconfig
Source10: dovecot.tmpfilesd

#our own
Source14: dovecot.conf.5

Source88: dovecot.logrotate
Patch1: dovecot-2.1-defaultconfig.patch
Patch2: dovecot-1.0.beta2-mkcert-permissions.patch
Patch3: dovecot-1.0.rc7-mkcert-paths.patch
Patch4: dovecot-2.1-privatetmp.patch
Patch102: dovecot-1.1.3-pam-setcred.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: autoconf, automake, libtool, gettext-devel
BuildRequires: gcc-c++
BuildRequires: krb5-devel
BuildRequires: openssl-devel
BuildRequires: openldap-devel, cyrus-sasl-devel
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel, bzip2-devel
BuildRequires: libcap-devel
%{?with_solr:BuildRequires: libcurl-devel expat-devel}
%{?with_lucene:BuildRequires: clucene-core-devel}
%{?with_rquota:BuildRequires: quota-devel}
# Explicit Runtime Requirements
#Requires: openssl = 0.9.7f-4
Requires: openssl
Requires: shadow-utils
%if %{with systemd}
Requires: systemd
%else
Requires: initscripts, chkconfig
%endif

Provides: %{name}-pgsql = %{evr}, %{name}-mysql = %{evr}
Obsoletes: %{name}-pgsql  %{epoch}:%{version}-%{release}, %{name}-mysql  %{epoch}:%{version}-%{release}, %{name}-sqlite  %{epoch}:%{version}-%{release}, %{name}-ldap  %{epoch}:%{version}-%{release}, %{name}-gssapi  %{epoch}:%{version}-%{release}
Conflicts: %{name}-pgsql  %{epoch}:%{version}-%{release}, %{name}-mysql  %{epoch}:%{version}-%{release}, %{name}-sqlite  %{epoch}:%{version}-%{release}, %{name}-ldap  %{epoch}:%{version}-%{release}, %{name}-gssapi  %{epoch}:%{version}-%{release}

BuildRequires: postgresql-devel
BuildRequires: mysql-devel
BuildRequires: sqlite-devel
BuildRequires: db4-devel

%define ssldir %{_sysconfdir}/pki/%{name}

%description
Dovecot is an IMAP server for Linux/UNIX-like systems, written with security 
primarily in mind.  It also contains a small POP3 server.  It supports mail 
in either of maildir or mbox formats.

%package devel
Summary: Libraries and headers for Dovecot
Group: Development/Libraries
Requires: %name = %{epoch}:%{version}-%{release}
Requires: openssl-devel

%description devel
This package contains development files for linking against %{name}.

%prep
%setup -q
%patch1 -p1 -b .default-settings
%patch2 -p1 -b .mkcert-permissions
%patch3 -p1 -b .mkcert-paths
%patch4 -p1 -b .privatetmp
sed -i '/DEFAULT_INCLUDES *=/s|$| '$(pkg-config --cflags libclucene-core)| src/plugins/fts-lucene/Makefile.in
%patch102 -p1 -b .pam-setcred
cat Makefile.am  Makefile.am.bak
echo 'ACLOCAL_AMFLAGS=-I .'  Makefile.am
cat Makefile.am.bak  Makefile.am

%build
#autoreconf -ifv
#required for fdpass.c line 125,190: dereferencing type-punned pointer will break strict-aliasing rules
#export CFLAGS=$RPM_OPT_FLAGS -fno-strict-aliasing
%configure   \
--disable-dependency-tracking \
INSTALL_DATA=install -c -p -m644 \
--docdir=%{_docdir}/%{name}-%{version} \
--enable-header-install  \
--disable-static \
--with-nss   \
--with-shadow\
--with-pam   \
--with-gssapi=plugin \
--with-ldap=plugin   \
--with-sql=plugin\
--with-pgsql \
--with-mysql \
--with-sqlite\
--with-zlib  \
--with-sql-drivers   \
--with-libcap\
--with-db\
--with-ssl=openssl   \