Code

second version of french .po still 300 ;-) to translate
[nagiosplug.git] / Makefile.am
index f427a11a4f9099dd50d1876e3e2a479553e27130..21778407f54ff8503cbed21076b5199dbd410602 100644 (file)
@@ -12,14 +12,18 @@ localedir = $(datadir)/locale
 DEFS = -DLOCALEDIR=\"$(localedir)\"
 
 dist-hook:
-       make THANKS nagios-plugins.spec
+       make THANKS nagios-plugins.spec pkg/fedora/nagios-plugins.spec
 
 test:
        cd plugins; $(MAKE) test
        cd plugins-scripts; $(MAKE) test
 
 nagios-plugins.spec: nagios-plugins.spec.in
-       sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;" $? > $@
+       sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;s/^%%{requires}$$//" $? > $@
+
+pkg/fedora/nagios-plugins.spec: nagios-plugins.spec.in
+       $(top_srcdir)/mkinstalldirs pkg/fedora
+       sed "s/%%{VERSION}/${VERSION}/;s/%%{RELEASE}/${RELEASE}/;/^# Requires$$/r $(top_srcdir)/pkg/fedora/requires" $? > $@
 
 # Solaris pkgmk
 BUILDDIR = build-solaris