aboutsummaryrefslogtreecommitdiffstats
path: root/blogc.spec.in
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-06-30 01:56:16 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-06-30 01:56:16 +0200
commit1f508f7e99be4b44f893aefddfaf84ea233fa769 (patch)
tree320405b8db495dc40dc06112234f68be92cfd253 /blogc.spec.in
parent9d2a4d278fc90aebb81ee326fdff4856e123dccc (diff)
downloadblogc-1f508f7e99be4b44f893aefddfaf84ea233fa769.tar.gz
blogc-1f508f7e99be4b44f893aefddfaf84ea233fa769.tar.bz2
blogc-1f508f7e99be4b44f893aefddfaf84ea233fa769.zip
build: do not build blogc-runserver for el6
Diffstat (limited to 'blogc.spec.in')
-rw-r--r--blogc.spec.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/blogc.spec.in b/blogc.spec.in
index 469992c..6ff8e49 100644
--- a/blogc.spec.in
+++ b/blogc.spec.in
@@ -6,7 +6,9 @@ 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
+%if ! 0%{?el6}
BuildRequires: libevent-devel >= 2.0, file-devel
+%endif
%description
blogc(1) is a blog compiler. It converts source files and templates into
@@ -20,6 +22,7 @@ Requires: git, tar, make
%description git-receiver
blogc-git-receiver is a simple login shell/git hook to deploy blogc websites.
+%if ! 0%{?el6}
%package runserver
Summary: A simple HTTP server to test blogc websites
Group: Development/Tools
@@ -27,12 +30,17 @@ Requires: libevent >= 2.0, file-libs
%description runserver
blogc-runserver is a simple HTTP server to test blogc websites.
+%endif
%prep
%setup -q -n @PACKAGE_NAME@-@PACKAGE_VERSION@
%build
+%if 0%{?el6}
+%configure --enable-git-receiver --disable-runserver
+%else
%configure --enable-git-receiver --enable-runserver
+%endif
make %{?_smp_mflags}
%install
@@ -53,10 +61,12 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/blogc-git-receiver
%license LICENSE
+%if ! 0%{?el6}
%files runserver
%{_mandir}/man*/blogc-runserver.*
%{_bindir}/blogc-runserver
%license LICENSE
+%endif
%changelog
* Sun Jun 19 2016 Rafael G. Martins <rafael@rafaelmartins.eng.br> 0.10.1-1