You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.2 KiB
53 lines
1.2 KiB
13 years ago
|
%define name BackupPC-server-scripts
|
||
|
%define version 0.0.1
|
||
|
%define release 1.beta1
|
||
|
|
||
|
Name: %{name}
|
||
|
Version: %{version}
|
||
|
Release: %{release}%{?dist}
|
||
|
Summary: Some scripts for a BackupPC server
|
||
|
|
||
|
Group: Applications/System
|
||
|
License: GNU GPL
|
||
|
URL: http://gitweb.firewall-services.com/?p=BackupPC-server-scripts;a=summary
|
||
|
Source0: %{name}-%{version}.tar.gz
|
||
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||
|
BuildArch: noarch
|
||
|
Requires: BackupPC
|
||
|
Requires: winexe
|
||
|
|
||
|
|
||
|
%description
|
||
|
Provides some scripts to run a a BackupPC server.
|
||
|
Like pre-backup scripts for Windows boxes
|
||
|
|
||
|
%changelog
|
||
|
* Thu Jul 5 2012 Daniel Berteaud <daniel@firewall-services.com> - 0.0.1
|
||
|
- initial release
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
# Install backup script
|
||
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_bindir}/
|
||
|
%{__install} -m 0755 scripts/* $RPM_BUILD_ROOT%{_bindir}/
|
||
|
|
||
|
# Install conf
|
||
|
%{__mkdir_p} $RPM_BUILD_ROOT%{_sysconfdir}/BackupPC
|
||
|
%{__install} -m 0640 conf/* $RPM_BUILD_ROOT%{_sysconfdir}/BackupPC/
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc CHANGELOG.git
|
||
|
%{_bindir}/*
|
||
|
%config(noreplace) %attr(0640, root, backuppc) %{_sysconfdir}/BackupPC/*
|
||
|
|