Version 1.8.8
[pazpar2-moved-to-github.git] / pazpar2.spec
index 93f3fe5..1cdd1b5 100644 (file)
@@ -8,11 +8,11 @@ Group: Applications/Internet
 Vendor: Index Data ApS <info@indexdata.dk>
 Source: pazpar2-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: libyaz5-devel >= 5.0.0
+BuildRequires: libyaz5-devel >= 5.7.0
 Packager: Adam Dickmeiss <adam@indexdata.dk>
 URL: http://www.indexdata.com/pazpar2
 Summary: pazpar2 daemon
-Requires: libyaz5 >= 5.0.0
+Requires: libyaz5 >= 5.7.0
 Requires: pazpar2-xsl
 
 %description
@@ -26,6 +26,14 @@ Group: Data
 Requires: pazpar2
 
 %post
+for f in /usr/share/pazpar2/xsl/*.xsl; do
+       e=/etc/pazpar2/`basename $f`
+       if test -f $e; then
+               if diff $e $f >/dev/null; then
+                       rm $e
+               fi
+       fi
+done
 if [ $1 = 1 ]; then
        /sbin/chkconfig --add pazpar2
        /sbin/service pazpar2 start > /dev/null 2>&1