Only put *.xsl files in pazpar2-xsl package
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 30 Apr 2014 07:42:53 +0000 (09:42 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 30 Apr 2014 07:42:53 +0000 (09:42 +0200)
So we can have test stuff in there as well

debian/rules
pazpar2.spec

index 994e621..4546ede 100755 (executable)
@@ -38,7 +38,7 @@ override_dh_auto_install:
        cp debian/ap2pazpar2-js.cfg debian/pazpar2-js/etc/pazpar2
        mv debian/tmp/usr/share/pazpar2/js/pz2.js debian/pazpar2-js/usr/share/pazpar2/js/
 # pazpar2-xsl package
-       cp -r etc/xsl debian/pazpar2-xsl/usr/share/pazpar2
+       cp  etc/xsl/*.xsl debian/pazpar2-xsl/usr/share/pazpar2/xsl
 
 override_dh_installchangelogs:
        dh_installchangelogs NEWS
index 3b91541..93f3fe5 100644 (file)
@@ -90,8 +90,8 @@ cp etc/default.xml ${RPM_BUILD_ROOT}/etc/pazpar2/services-available/
 cp etc/services/*.xml ${RPM_BUILD_ROOT}/etc/pazpar2/services-available/
 cp etc/settings/*.xml ${RPM_BUILD_ROOT}/etc/pazpar2/settings/
 cp -r etc/settings/mkc ${RPM_BUILD_ROOT}/etc/pazpar2/settings
-mkdir -p ${RPM_BUILD_ROOT}/usr/share/pazpar2
-cp -r etc/xsl ${RPM_BUILD_ROOT}/usr/share/pazpar2
+mkdir -p ${RPM_BUILD_ROOT}/usr/share/pazpar2/xsl
+cp etc/xsl/*.xsl ${RPM_BUILD_ROOT}/usr/share/pazpar2/xsl
 mkdir -p ${RPM_BUILD_ROOT}/etc/rc.d/init.d
 install -m755 rpm/pazpar2.init ${RPM_BUILD_ROOT}/etc/rc.d/init.d/pazpar2
 echo "Alias /pazpar2 /usr/share/pazpar2" >${RPM_BUILD_ROOT}/etc/pazpar2/ap2pazpar2-js.cfg