Re: [ATrpms-devel] atrpms-rpm-config for rhel6

2013-05-18 Thread John Pilkington

On 17/05/13 22:05, John Pilkington wrote:

On 17/05/13 20:35, Axel Thimm wrote:

Hi,

thanks for the repost - on el6 both depmod and ldconfig are pulled
from the proper locations, in the last days I built tons of packages
and could not see the issue.

There was an issue with f18 builds, but never with el6.

Thanks, Axel.

On Fri, May 17, 2013 at 10:34:58AM +0100, John Pilkington wrote:

Hi Axel:  Welcome back.  I'm replying to the gossamer-threads
version, so no thread.

Copy of Stephen Collier's post on users' list, 9 April:

The macro on line 79 of /etc/rpm/macros.atrpms doesn't seem to be
working properly. Needed for F18 I guess. I have temporary changed
it to build with /usr/sbin/ldconfig changed back to /sbin/ldconfig
and same for depmod a few lines later.

Cheers,

John P



I certainly saw this problem.  It looks as if 'our' target environments
weren't being recognised as el6.  Mine was Scientific Linux, or perhaps
CentOS.  Would be nice to fix it for future use, but not immediately
critical if the 'official' builds are ok.



/etc/redhat-release  contains Scientific Linux release 6.4 (Carbon)

(without quotes), so it's not recognised in the first few lines of 
macros.atrpms and gets the Fedora 18 default?



___
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   \