+
+if BUILDING_RPM
+EXTRA_DIST += chimara.spec
+rpm: chimara.spec dist
+ $(ECHO) "Building RPM package..."; \
+ $(RPMBUILD) -ta --clean $(PACKAGE)-$(VERSION).tar.gz
+else
+rpm:
+ @$(ECHO) \
+ "To build an RPM package, you must run configure with --enable-rpm."; \
+ exit 1
+endif