updated piler.spec file

This commit is contained in:
SJ 2015-02-24 10:29:34 +01:00
parent daf6e904b7
commit 1bc91cbf79

View File

@ -1,6 +1,6 @@
%define name piler %define name piler
%define version 0.1.25 %define version 1.1.1
%define release 2 %define release 1
Summary: an email archiving application Summary: an email archiving application
Name: %{name} Name: %{name}
@ -8,11 +8,12 @@ Version: %{version}
Release: %{release} Release: %{release}
License: gpl License: gpl
Group: Networking/Mail Group: Networking/Mail
Source0: master.tar.gz Source0: %{name}-%{version}.tar.gz
URL: http://www.mailpiler.org/ URL: http://www.mailpiler.org/
Buildroot: /tmp/aa Buildroot: /tmp/aa
BuildRequires: openssl-devel, tcp_wrappers, poppler-utils, libzip-devel, catdoc, mysql-devel, tnef, unrtf, tre-devel BuildRequires: openssl-devel, tcp_wrappers-devel, poppler-utils, libzip-devel, catdoc, mysql-devel, tnef, unrtf, tre-devel
Requires: mysql, openssl, tcp_wrappers, libzip, poppler-utils, catdoc, tnef, unrtf, tre Requires: mysql, openssl, tcp_wrappers, libzip, poppler-utils, catdoc, tnef, unrtf, tre, httpd, php, php-mysql
Provides: libpiler.so()(64bit)
%description %description
piler is an email archiving application. piler is an email archiving application.
@ -21,14 +22,22 @@ piler is an email archiving application.
%setup %setup
%build %build
./configure --localstatedir=/var --enable-starttls --enable-tcpwrappers --with-database=mysql ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var --enable-starttls --enable-tcpwrappers --with-database=mysql
make clean all make clean all
%install %install
mkdir -p /root/rpmbuild/BUILDROOT/piler-0.1.25-2.x86_64/etc/init.d mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p /root/rpmbuild/BUILDROOT/piler-0.1.25-2.x86_64/usr/local/lib make install DESTDIR=$RPM_BUILD_ROOT
make install DESTDIR=/root/rpmbuild/BUILDROOT/piler-0.1.25-2.x86_64
# Gotta also copy over a few other things
mkdir -p $RPM_BUILD_ROOT/var/www
cp -ar %{_topdir}/BUILD/%{name}-%{version}/webui $RPM_BUILD_ROOT/var/piler/www
mkdir -p $RPM_BUILD_ROOT/usr/share/piler
cp -r %{_topdir}/BUILD/%{name}-%{version}/contrib $RPM_BUILD_ROOT/usr/share/piler
# Fix the base piler.conf file
cp -f %{_topdir}/BUILD/%{name}-%{version}/etc/example.conf $RPM_BUILD_ROOT/etc/piler.conf.dist
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -38,34 +47,34 @@ make install DESTDIR=/root/rpmbuild/BUILDROOT/piler-0.1.25-2.x86_64
%dir /var/piler/store %dir /var/piler/store
%dir /var/piler/stat %dir /var/piler/stat
%dir /var/run/piler %dir /var/run/piler
%attr(0655,piler,piler) /usr/local/bin/pileraget %attr(0655,piler,piler) /usr/bin/pileraget
%attr(0655,piler,piler) /usr/local/bin/pilerexport %attr(0655,piler,piler) /usr/bin/pilerexport
%attr(0655,piler,piler) /usr/local/bin/pilerget %attr(0655,piler,piler) /usr/bin/pilerget
%attr(0655,piler,piler) /usr/local/bin/pilerpurge %attr(0655,piler,piler) /usr/bin/pilerpurge
%attr(0655,piler,piler) /usr/local/bin/pilerimport %attr(0655,piler,piler) /usr/bin/pilerimport
%attr(0655,piler,piler) /usr/local/bin/reindex %attr(0655,piler,piler) /usr/bin/reindex
/etc/init.d/rc.piler /etc/init.d/rc.piler
/etc/init.d/rc.pilergetd /etc/init.d/rc.pilergetd
/etc/init.d/rc.searchd /etc/init.d/rc.searchd
%attr(0640,root,piler) /usr/local/etc/piler.conf %attr(0640,root,piler) /etc/piler.conf
/usr/local/etc/sphinx.conf.dist /etc/sphinx.conf.dist
/usr/local/sbin/piler /usr/sbin/piler
/usr/local/sbin/pilergetd /usr/sbin/pilergetd
/usr/local/sbin/pilerconf /usr/sbin/pilerconf
/usr/local/lib/libpiler.a /usr/lib64/libpiler.a
/usr/local/lib/libpiler.so /usr/lib64/libpiler.so
/usr/local/lib/libpiler.so.0 /usr/lib64/libpiler.so.0
/usr/local/lib/libpiler.so.0.1.1 /usr/lib64/libpiler.so.0.1.1
/usr/local/libexec/piler/daily-report.php /usr/libexec/piler/daily-report.php
/usr/local/libexec/piler/generate_stats.php /usr/libexec/piler/generate_stats.php
/usr/local/libexec/piler/gmail-imap-import.php /usr/libexec/piler/gmail-imap-import.php
/usr/local/libexec/piler/indexer.delta.sh /usr/libexec/piler/indexer.delta.sh
/usr/local/libexec/piler/indexer.main.sh /usr/libexec/piler/indexer.main.sh
/usr/local/libexec/piler/import.sh /usr/libexec/piler/import.sh
/usr/local/libexec/piler/postinstall.sh /usr/libexec/piler/postinstall.sh
/usr/local/libexec/piler/purge.sh /usr/libexec/piler/purge.sh
/usr/local/share/piler/db-mysql-root.sql.in /usr/share/piler/db-mysql-root.sql.in
/usr/local/share/piler/db-mysql.sql /usr/share/piler/db-mysql.sql
%pre %pre
@ -77,10 +86,10 @@ if [ -d /var/piler ]; then chmod 755 /var/piler; fi
%post %post
chown -R piler:piler /var/run/piler /var/piler chown -R piler:piler /var/run/piler /var/piler
echo /usr/local/lib > /etc/ld.so.conf.d/piler.conf echo /usr/lib > /etc/ld.so.conf.d/piler.conf
ldconfig ldconfig
echo this is the postinstall stuff... echo this is the postinstall stuff...
echo run /usr/local/libexec/piler/postinstall.sh manually to configure piler echo run /usr/libexec/piler/postinstall.sh manually to configure piler
%postun %postun
userdel piler userdel piler
@ -88,6 +97,9 @@ groupdel piler
%changelog %changelog
* Tue Feb 24 2015 Janos Suto
- 1.1.1 release of piler
* Fri Nov 1 2013 Janos Suto * Fri Nov 1 2013 Janos Suto
- Fixed a bug causing issues when reading the retention|archiving_rules tables - Fixed a bug causing issues when reading the retention|archiving_rules tables