ingo-h3/ingo-h3.spec

117 lines
3.7 KiB
RPMSpec
Raw Normal View History

# $Id: ingo-h3.spec,v 1.1 2016/02/04 12:41:41 vip-ire Exp $
%define apachedir /etc/httpd
%define apacheuser www
%define apachegroup www
%define contentdir /home/httpd
Summary: The email filter rules manager for Horde.
Name: ingo-h3
Version: 1.2.5
Release: 1%{?dist}
License: LGPL
Group: Applications/Horde
Source: ftp://ftp.horde.org/pub/ingo/tarballs/ingo-h3-%{version}.tar.gz
#Patch0:
URL: http://www.horde.org/
BuildArchitectures: noarch
BuildRoot: /tmp/horde-root
AutoReq: no
Requires: horde >= 3.2
Requires: php >= 4.3.0
Requires: httpd >= 2.0.46
Prereq: /usr/bin/perl
%description
Ingo is an email filter rules manager. It can generate Sieve and procmail
scripts and upload them to the server (using a timsieved or VFS FTP driver,
respectively). It can also create and execute IMAP commands to run filter
rules.
The Horde Project writes web applications in PHP and releases them under
Open Source licenses. For more information (including help with Horde
and its modules) please visit http://www.horde.org/.
This package contains customizations for SME Server
and will probably not work properly on other Linux systems.
%prep
%setup -q -n %{name}-%{version}
#%patch0 -p1
%build
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{apachedir}/conf
mkdir -p $RPM_BUILD_ROOT%{contentdir}/html/horde/ingo
cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde/ingo
chmod go-rwx $RPM_BUILD_ROOT%{contentdir}/html/horde/ingo/test.php
cd $RPM_BUILD_ROOT%{contentdir}/html/horde/ingo/config
for d in *.dist; do
d0=`basename $d .dist`
if [ ! -f "$d0" ]; then
cp -p $d $d0
fi
done
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post
%postun
%files
%defattr(-,root,root)
# Include top level with %dir so not all files are sucked in
%dir %{contentdir}/html/horde/ingo
# Include top-level files by hand
%{contentdir}/html/horde/ingo/*.php
# Include these dirs so that all files _will_ get sucked in
%{contentdir}/html/horde/ingo/js
%{contentdir}/html/horde/ingo/lib
%{contentdir}/html/horde/ingo/locale
%{contentdir}/html/horde/ingo/po
%{contentdir}/html/horde/ingo/scripts
%{contentdir}/html/horde/ingo/templates
%{contentdir}/html/horde/ingo/themes
# Mark documentation files with %doc and %docdir
%doc %{contentdir}/html/horde/ingo/LICENSE
%doc %{contentdir}/html/horde/ingo/README
%docdir %{contentdir}/html/horde/ingo/docs
%{contentdir}/html/horde/ingo/docs
# Mark configuration files with %config and use secure permissions
# (note that .dist files are considered software; don't mark %config)
%attr(750,root,%{apachegroup}) %dir %{contentdir}/html/horde/ingo/config
%defattr(640,root,%{apachegroup})
%{contentdir}/html/horde/ingo/config/.htaccess
%{contentdir}/html/horde/ingo/config/*.dist
%config %{contentdir}/html/horde/ingo/config/*.php
%config %{contentdir}/html/horde/ingo/config/*.xml
%changelog
* Fri Jul 14 2023 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.
* Sun Nov 07 2010 John H. Bennett III <bennettj@johnbennettservices.com> 1.2.5-1
- Update to Ingo 1.2.5 [SME: 6352]
* Mon May 10 2010 John H. Bennett III <bennettj@johnbennettservices.com> 1.2.4-1
- Update to Ingo 1.2.4 [SME: 5940]
* Sat Feb 13 2010 John H. Bennett III <bennettj@johnbennettservices.com> 1.2.3-1
- Update to Ingo 1.2.3 [SME: 5777]
* Tue Oct 13 2009 John H. Bennett III <bennettj@johnbennettservices.com> 1.2.2-1
- Update to Ingo 1.2.2 [SME: 5511]
* Tue Sep 16 2008 John H. Bennett III <bennettj@johnbennettservices.com> 1.2.1-1
- Update to Ingo 1.2.1 [SME: 4567]
* Mon Jun 2 2008 John H. Bennett III <bennettj@johnbennettservices.com> 1.2-1
- initial RPM roll for Ingo 1.2