]> git.pld-linux.org Git - packages/lms.git/blobdiff - lms.spec
- up to 1.10.5 (Neith)
[packages/lms.git] / lms.spec
index dac74562912ca578e3ed7fa33863b8007de88d52..6e3ed1de897fbff280222a10544e97aa668b8768 100644 (file)
--- a/lms.spec
+++ b/lms.spec
@@ -7,7 +7,7 @@
 %bcond_without lmsd            # without lmsd daemon
 #
 %define                lmsver          1.10
-%define                lmssubver       1
+%define                lmssubver       5
 Summary:       LAN Managment System
 Summary(pl.UTF-8):     System Zarządzania Siecią Lokalną
 Name:          lms
@@ -16,7 +16,7 @@ Release:      1
 License:       GPL v2
 Group:         Networking/Utilities
 Source0:       http://www.lms.org.pl/download/%{lmsver}/%{name}-%{version}.tar.gz
-# Source0-md5: 8719b8534c8792a84e2436f00ea48a49
+# Source0-md5: 512b0ef7540758e65a7439cc7ab7ac52
 Source1:       %{name}.conf
 Source2:       %{name}.init
 Source3:       %{name}.sysconfig
@@ -30,7 +30,7 @@ BuildRequires:        flex
 %{?with_lmsd:BuildRequires:    mysql-devel}
 %{?with_lmsd:BuildRequires:    postgresql-devel}
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 1.461
 %{?with_lmsd:Requires(post,preun):     /sbin/chkconfig}
 Requires:      Smarty >= 2.6.18-2
 Requires:      php(gd)
@@ -44,7 +44,7 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _sysconfdir     /etc/%{name}
 %define                _lmsdir         %{_datadir}/%{name}
 %define                _lmsvar         /var/lib/%{name}
-%define                _smartyplugindir        /usr/share/php/Smarty/plugins
+%define                _smartyplugindir        %{php_data_dir}/Smarty/plugins
 %define                _webapps        /etc/webapps
 %define                _webapp         %{name}
 
@@ -257,34 +257,6 @@ fi
 %triggerun -- apache < 2.2.0, apache-base
 %webapp_unregister httpd %{_webapp}
 
-%triggerpostun -- %{name} <= 1.0.4
-echo "WARNING!!!"
-echo "_READ_ and upgrade LMS database:"
-echo "MySQL: /usr/share/doc/%{name}-%{version}/UPGRADE-1.0-1.5.mysql.gz"
-echo "PostgreSQL: /usr/share/doc/%{name}-%{version}/UPGRADE-1.0-1.5.pgsql.gz"
-
-%triggerpostun -- %{name} <= 1.2.0
-echo "BEWARE:"
-echo "Automatic upgrade from LMS<= 1.2.0 is NO LONGER SUPPORTED by lms team"
-echo "You are advised to upgrade it manually"
-echo
-
-%triggerpostun -- %{name} < 1.6.6-1.4
-# nuke very-old config location (this mostly for Ra)
-if [ -f /etc/httpd/httpd.conf ]; then
-       sed -i -e "/^Include.*%{name}.conf/d" /etc/httpd/httpd.conf
-fi
-
-# migrate from httpd (apache2) config dir
-if [ -f /etc/httpd/%{name}.conf.rpmsave ]; then
-       cp -f %{_webapps}/%{_webapp}/httpd.conf{,.rpmnew}
-       mv -f /etc/httpd/%{name}.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf
-fi
-
-rm -f /etc/httpd/httpd.conf/99_%{name}.conf
-/usr/sbin/webapp register httpd %{_webapp}
-%service -q httpd reload
-
 %files
 %defattr(644,root,root,755)
 %doc doc/{AUTHORS,ChangeLog,INSTALL,README*,lms*}
This page took 0.275697 seconds and 4 git commands to generate.