aboutsummaryrefslogtreecommitdiffstats
path: root/blogc.spec.in
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-10-11 23:52:36 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-10-11 23:52:36 +0200
commit20bbc715578bff5f5b2433334a39750f083d0305 (patch)
treec0e92e88b329a098d8d5e9d5914953ca210e729b /blogc.spec.in
parentbbe4028f33626c7928c36d78f176b21bbeaa7655 (diff)
downloadblogc-20bbc715578bff5f5b2433334a39750f083d0305.tar.gz
blogc-20bbc715578bff5f5b2433334a39750f083d0305.tar.bz2
blogc-20bbc715578bff5f5b2433334a39750f083d0305.zip
build: run tests while building rpm
Diffstat (limited to 'blogc.spec.in')
-rw-r--r--blogc.spec.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/blogc.spec.in b/blogc.spec.in
index bd7952e..3840a92 100644
--- a/blogc.spec.in
+++ b/blogc.spec.in
@@ -6,6 +6,7 @@ Group: Applications/Text
Summary: A blog compiler
URL: @PACKAGE_URL@
Source0: https://github.com/blogc/blogc/releases/download/v@PACKAGE_VERSION@/blogc-@PACKAGE_VERSION@.tar.xz
+BuildRequires: libcmocka-devel, git
%description
blogc(1) is a blog compiler. It converts source files and templates into
@@ -30,9 +31,12 @@ blogc-runserver is a simple HTTP server to test blogc websites.
%setup -q -n @PACKAGE_NAME@-@PACKAGE_VERSION@
%build
-%configure --enable-git-receiver --enable-runserver
+%configure --enable-git-receiver --enable-runserver --enable-tests
make %{?_smp_mflags}
+%check
+make check
+
%install
rm -rf $RPM_BUILD_ROOT
%make_install