diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-10-15 18:24:10 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-10-15 18:24:10 +0200 |
commit | 80add780beda1f537994024e8587255c871edf71 (patch) | |
tree | 5ab01cbf5ceffd4e4533abb4adca3a63121a9f5a /blogc.spec.in | |
parent | 921620e3df696442b688024c499541862bcd03eb (diff) | |
download | blogc-80add780beda1f537994024e8587255c871edf71.tar.gz blogc-80add780beda1f537994024e8587255c871edf71.tar.bz2 blogc-80add780beda1f537994024e8587255c871edf71.zip |
build: do not build git-receiver for el6. git is too old
Diffstat (limited to 'blogc.spec.in')
-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.* |