]> git.pld-linux.org Git - packages/rt.git/blobdiff - rt.spec
- up to 4.0.17
[packages/rt.git] / rt.spec
diff --git a/rt.spec b/rt.spec
index 94b647633717e34b8247b45c463efec4e9a55f5d..21d2490de24add30c045896a3df7cdc07d5b0df2 100644 (file)
--- a/rt.spec
+++ b/rt.spec
@@ -15,7 +15,6 @@
 %define        perl_dbix_searchbuilder_ver             1.59
 %define        perl_devel_stacktrace_ver               1.19
 %define        perl_digest_md5_ver                     2.27
-%define        perl_file_spec_ver                      0.8
 %define        perl_html_mason_ver                     3:1.43
 %define        perl_html_rewriteattributes_ver         0.05
 %define        perl_html_scrubber_ver                  0.08
 %define        perl_xml_rss_ver                        1.05
 #
 %bcond_with    testdeps        # used for checking dependencies
+%bcond_without apache          # no apache deps. TODO: make subpackage with apache config
 #
 %include       /usr/lib/rpm/macros.perl
 Summary:       Request Tracker
 Summary(pl.UTF-8):     Request Tracker - system do śledzenia zleceń
 Name:          rt
-Version:       4.0.11
+Version:       4.0.17
 Release:       1
 License:       GPL v2
 Group:         Applications
 Source0:       http://download.bestpractical.com/pub/rt/release/%{name}-%{version}.tar.gz
-# Source0-md5: ddf507e9ba9891746224817868c05a34
+# Source0-md5: aad39ab243853f991d8f78e85c1181f8
 Source1:       %{name}-apache_dir.conf
 Source2:       %{name}-apache_vhost.conf
 Source3:       %{name}-apache.conf
@@ -82,7 +82,6 @@ BuildRequires:        perl-Exception-Class
 BuildRequires: perl-FCGI
 BuildRequires: perl-FCGI-ProcManager
 BuildRequires: perl-File-ShareDir
-BuildRequires: perl-File-Spec >= %{perl_file_spec_ver}
 BuildRequires: perl-File-Temp
 BuildRequires: perl-FreezeThaw
 BuildRequires: perl-GD
@@ -141,9 +140,11 @@ BuildRequires:     perl-libnet
 %endif
 BuildRequires: perl-base >= %{perl_ver}
 BuildRequires: rpm-perlprov
+%if %{with apache}
 Requires:      apache-base >= 2.2.0
 Requires:      apache-mod_authz_host >= 2.2.0
 Requires:      apache-mod_perl >= 2.0
+%endif
 Requires:      fonts-TTF-Google-Droid
 Requires:      perl-Apache-DBI
 Requires:      perl-Apache-Session >= %{perl_apache_session_ver}
@@ -165,7 +166,6 @@ Requires:   perl-Devel-StackTrace >= %{perl_devel_stacktrace_ver}
 Requires:      perl-Digest-MD5 >= %{perl_digest_md5_ver}
 Requires:      perl-Encode >= 2.38
 Requires:      perl-FCGI-ProcManager
-Requires:      perl-File-Spec >= %{perl_file_spec_ver}
 Requires:      perl-GD-Graph
 Requires:      perl-GnuPG-Interface
 Requires:      perl-HTML-Mason >= %{perl_html_mason_ver}
@@ -202,6 +202,7 @@ Requires:   perl-XML-RSS >= %{perl_xml_rss_ver}
 Requires:      perl-base >= %{perl_ver}
 Requires:      webapps
 Suggests:      perl-FCGI
+Conflicts:     apache-base < 2.4.0-1
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -299,10 +300,10 @@ rm -r $RPM_BUILD_ROOT%{_datadir}/fonts/TTF
 # *.in, tests
 find $RPM_BUILD_ROOT -type f -name \*.in -exec rm '{}' \;
 
-%triggerin -- apache < 2.2.0, apache-base
+%triggerin -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun -- apache < 2.2.0, apache-base
+%triggerun -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %clean
@@ -319,8 +320,10 @@ rm -rf $RPM_BUILD_ROOT
 # this is generic config that SHOULDN'T BE TOUCHED. Change settings in your local (site) config.
 %attr(640,root,http) %config %{_sysconfdir}/RT_Config.pm
 
+%if %{with apache}
 %dir %attr(750,root,http) %{_webappsdir}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappsdir}/httpd.conf
+%endif
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
 %attr(755,root,root) /etc/cron.daily/rt-clean-sessions
 %attr(755,root,root) %{_bindir}/rt-*
This page took 0.065755 seconds and 4 git commands to generate.