X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=pazpar2.spec;h=7a6dc29ec04a4f26f4a6875261be5620deb71641;hb=d96989af3aa0eb866948a3f6564e5b384a980fdf;hp=93f3fe544fbe9aebeccb654e95e8de04f1da4417;hpb=4e7fbc817463e9a6e558e22816d3290778e06b5e;p=pazpar2-moved-to-github.git diff --git a/pazpar2.spec b/pazpar2.spec index 93f3fe5..7a6dc29 100644 --- a/pazpar2.spec +++ b/pazpar2.spec @@ -1,5 +1,4 @@ -%define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n') -Summary: Metasearcher +%define idmetaversion %(. ./IDMETA; echo $VERSION) Name: pazpar2 Version: %{idmetaversion} Release: 1.indexdata @@ -8,11 +7,11 @@ Group: Applications/Internet Vendor: Index Data ApS Source: pazpar2-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root -BuildRequires: libyaz5-devel >= 5.0.0 +BuildRequires: libyaz5-devel >= 5.12.0 Packager: Adam Dickmeiss URL: http://www.indexdata.com/pazpar2 Summary: pazpar2 daemon -Requires: libyaz5 >= 5.0.0 +Requires: libyaz5 >= 5.12.0 Requires: pazpar2-xsl %description @@ -26,6 +25,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