From 88c2393ec8bc9a6d19394e6c5d0bff77368f0704 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 27 Apr 2016 21:55:21 +0200 Subject: build: support tools in spec file --- blogc.spec.in | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/blogc.spec.in b/blogc.spec.in index cc39b12..85b41c1 100644 --- a/blogc.spec.in +++ b/blogc.spec.in @@ -6,16 +6,33 @@ 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: libevent-devel >= 2.0, file-devel %description blogc(1) is a blog compiler. It converts source files and templates into blog/website resources. +%package git-receiver +Summary: A simple login shell/git hook to deploy blogc websites +Group: System Environment/Shells +Requires: git, tar, make + +%description git-receiver +blogc-git-receiver is a simple login shell/git hook to deploy blogc websites. + +%package runserver +Summary: A simple HTTP server to test blogc websites +Group: Development/Tools +Requires: libevent >= 2.0, file-libs + +%description runserver +blogc-runserver is a simple HTTP server to test blogc websites. + %prep %setup -q -n @PACKAGE_NAME@-@PACKAGE_VERSION@ %build -%configure +%configure --enable-git-receiver --enable-runserver make %{?_smp_mflags} %install @@ -23,12 +40,21 @@ rm -rf $RPM_BUILD_ROOT %make_install %files -%{_mandir}/man*/blogc* +%{_mandir}/man*/blogc.* +%{_mandir}/man*/blogc-source.* +%{_mandir}/man*/blogc-template.* %{_bindir}/blogc - %doc README.md %license LICENSE +%files git-receiver +%{_bindir}/blogc-git-receiver +%license LICENSE + +%files runserver +%{_bindir}/blogc-runserver +%license LICENSE + %changelog * Sun Apr 17 2016 Rafael G. Martins 0.8.1-1 - New release. -- cgit v1.2.3-18-g5258