]> git.pld-linux.org Git - packages/egroupware.git/blobdiff - egroupware.spec
- use system Vera fonts
[packages/egroupware.git] / egroupware.spec
index 85103ba0823bc0d78034c782def0c3d82953de35..f6d75ff6660490b13b1dc3f7ba440c5e20e757a2 100644 (file)
@@ -1,24 +1,29 @@
 # TODO
-# - subpackages
+# - subpackages for applications
+# - separate htdocs and includedirs
 # - everything
 Summary:       eGroupWare - a web-based groupware suite written in PHP
 Summary(pl):   eGroupWAre - oparte na WWW oprogramowanie do pracy grupowej napisane w PHP
 Name:          egroupware
 Version:       1.0.0.009
-Release:       0.13
+Release:       0.17
 Epoch:         0
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://dl.sourceforge.net/egroupware/eGroupWare-%{version}.tar.bz2
 # Source0-md5: 2ed2f3041ab4ff235f56ed23dfa7274b
 Source1:       %{name}.conf
+Patch0:                %{name}-setup.patch
+Patch1:                %{name}-ttfdir.patch
 URL:           http://www.egroupware.org/
+BuildRequires: sed >= 4.0
 Requires:      %{name}(DB_Driver)
 Requires:      php >= 3:4.1.2
 Requires:      php-gd
 Requires:      php-mbstring
 Requires:      php-pcre
 Requires:      php-cli
+Requires:      fonts-TTF-bitstream-vera
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -38,6 +43,22 @@ Aktualnie dost
 adresow±, kalendarz, infolog (notatki, rzeczy do zrobienia, rozmowy
 telefoniczne), zarz±dzanie tre¶ci±, forum, zak³adki, wiki.
 
+%package setup
+Summary:       eGroupware setup package
+Summary(pl):   Pakiet do wstêpnej konfiguracji eGroupware
+Group:         Applications/WWW
+PreReq:                %{name} = %{epoch}:%{version}-%{release}
+
+%description setup
+Install this package to configure initial eGroupware installation. You
+should uninstall this package when you're done, as it considered
+insecure to keep the setup files in place.
+
+%description setup -l pl
+Ten pakiet nale¿y zainstalowaæ w celu wstêpnej konfiguracji eGroupware po
+pierwszej instalacji. Potem nale¿y go odinstalowaæ, jako ¿e
+pozostawienie plików instalacyjnych mog³oby byæ niebezpieczne.
+
 %package db-mysql
 Summary:       eGroupware DB Driver for MySQL
 Summary(pl):   Sterownik bazy danych eGroupware dla MySQL-a
@@ -86,6 +107,12 @@ eGroupware.
 
 # remove CVS control files
 find -name CVS -print0 | xargs -0 rm -rf
+# undos the sources
+find -regex '.*\.\(php\|inc\|html\|txt\|js\)$' -print0 | xargs -0 sed -i -e 's,
+$,,'
+
+%patch0 -p1
+%patch1 -p1
 
 # GPL
 rm -f doc/LICENSE
@@ -93,6 +120,9 @@ rm -f doc/LICENSE
 # no need.
 rm -rf doc/rpm-build
 
+# using PLD package
+rm -rf projects/ttf-bitstream-vera-1.10
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
@@ -104,11 +134,14 @@ infolog jinn manual messenger news_admin phpbrain phpgwapi phpldapadmin \
 phpsysinfo polls preferences projects registration setup sitemgr stocks tts \
 wiki $RPM_BUILD_ROOT%{_appdir}
 
-#needed by install script
-install header.inc.php.template $RPM_BUILD_ROOT%{_appdir} 
+> $RPM_BUILD_ROOT%{_sysconfdir}/header.php
+ln -s %{_sysconfdir}/header.php $RPM_BUILD_ROOT%{_appdir}/header.inc.php
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 
+# needed by setup script
+install header.inc.php.template $RPM_BUILD_ROOT%{_appdir}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -128,10 +161,10 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(710,root,http) %dir %{_sysconfdir}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/header.php
 %doc doc/*
 %dir %{_appdir}
 %{_appdir}/*.php
-%{_appdir}/header.inc.php.template
 %{_appdir}/addressbook
 %{_appdir}/admin
 %{_appdir}/backup
@@ -159,7 +192,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_appdir}/preferences
 %{_appdir}/projects
 %{_appdir}/registration
-%{_appdir}/setup
 %{_appdir}/sitemgr
 %{_appdir}/stocks
 %{_appdir}/tts
@@ -183,6 +215,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_appdir}/fudforum/setup
 %{_appdir}/fudforum/templates
 
+%files setup
+%defattr(644,root,root,755)
+%{_appdir}/header.inc.php.template
+%{_appdir}/setup
+
 %files db-mysql
 %defattr(644,root,root,755)
 
This page took 0.100593 seconds and 4 git commands to generate.