From 4e1b2c2199e286b4494163992142fc46624cf8f1 Mon Sep 17 00:00:00 2001 From: paspo Date: Wed, 14 Sep 2016 21:37:37 +0200 Subject: [PATCH] updated specfile --- createlinks.pl | 15 +++++++++++++++ doraemon.spec | 21 +++++++++++---------- 2 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 createlinks.pl diff --git a/createlinks.pl b/createlinks.pl new file mode 100644 index 0000000..66923f1 --- /dev/null +++ b/createlinks.pl @@ -0,0 +1,15 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); +use File::Basename; +use File::Path; + + +$event = "doraemon-reboot"; +event_actions($event, 'doraemon-reboot' => 50); + +$event = "doraemon-shutdown"; +event_actions($event, 'doraemon-shutdown' => 50); + +$event = "doraemon-wake"; +event_actions($event, 'doraemon-wake' => 50); diff --git a/doraemon.spec b/doraemon.spec index 2d5dff6..1d903d4 100644 --- a/doraemon.spec +++ b/doraemon.spec @@ -1,28 +1,33 @@ Summary: Helps client to join domain and maintain itself Name: doraemon -Version: 2.0.0-alpha2 +Version: 2.0.0 Release: 1.ns6 URL: https://github.com/bglug-it/doraemon/ License: GPLv2+ +Packager: Paolo Asperti Group: System Environment/Daemons BuildRoot: %{_tmppath}/%{name}-root BuildRequires: nethserver-devtools > 1.0.1 +BuildRequires: hunspell-en Requires: httpd, php, sudo, php-xml, php-mcrypt Requires: nethserver-base, nethserver-php Requires: net-tools Requires: upstart -Source0: doraemon-2.0.0.tar.gz +Source0: %{name}-%{version}.tar.gz BuildArch: noarch %description Helps client on a domain network to get information for its maintenance. %prep -%setup -q +%setup %build +%{makedocs} +perl createlinks.pl %install +rm -Rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump %{buildroot}) rm -f %{name}-%{version}-%{release}-filelist %{genfilelist} %{buildroot} > %{name}-%{version}-%{release}-filelist @@ -130,19 +135,15 @@ fi rm -rf %{buildroot} %files -f %{name}-%{version}-%{release}-filelist -%files -%defattr(644,root,root,755) +%defattr(0644,root,root,755) %doc README.md LICENSE.txt -%attr(0750,srvmgr,srvmgr) %dir %{_localstatedir}/cache/doraemon -%attr(0700,root,root) %dir %{_localstatedir}/log/doraemon -%attr(0644,root,root) %config %ghost %{_localstatedir}/log/doraemon/access_log -%attr(0644,root,root) %config %ghost %{_localstatedir}/log/doraemon/error_log %changelog -* Mon Jul 18 2016 Paolo Asperti - 1.3.0-1.ns6 +* Mon Jul 18 2016 Paolo Asperti - 2.0.0-1 - PHP porting - Added a basic UI +- Added room support * Tue Oct 27 2015 Emiliano Vavassori - 1.2.1-2.ns6 - Packing corrections to rpm to fix upgrading issue