diff options
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | blogc.spec.in | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 25098d5..e5d9469 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,6 +18,7 @@ EXTRA_DIST = \ build-aux/valgrind.sh \ $(top_srcdir)/.version \ autogen.sh \ + blogc.spec \ LICENSE \ README.md \ $(NULL) 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 |