diff options
-rw-r--r-- | blogc.spec.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/blogc.spec.in b/blogc.spec.in index 3840a92..5a8d685 100644 --- a/blogc.spec.in +++ b/blogc.spec.in @@ -6,12 +6,16 @@ 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 +BuildRequires: libcmocka-devel +%if ! 0%{?el6} +BuildRequires: git +%endif %description blogc(1) is a blog compiler. It converts source files and templates into blog/website resources. +%if ! 0%{?el6} %package git-receiver Summary: A simple login shell/git hook to deploy blogc websites Group: System Environment/Shells @@ -19,6 +23,7 @@ Requires: git, tar, make %description git-receiver blogc-git-receiver is a simple login shell/git hook to deploy blogc websites. +%endif %package runserver Summary: A simple HTTP server to test blogc websites @@ -31,7 +36,11 @@ blogc-runserver is a simple HTTP server to test blogc websites. %setup -q -n @PACKAGE_NAME@-@PACKAGE_VERSION@ %build +%if 0%{?el6} +%configure --disable-git-receiver --enable-runserver --enable-tests +%else %configure --enable-git-receiver --enable-runserver --enable-tests +%endif make %{?_smp_mflags} %check @@ -50,10 +59,12 @@ rm -rf $RPM_BUILD_ROOT %doc README.md %license LICENSE +%if ! 0%{?el6} %files git-receiver %{_mandir}/man*/blogc-git-receiver.* %{_bindir}/blogc-git-receiver %license LICENSE +%endif %files runserver %{_mandir}/man*/blogc-runserver.* |