[crontabs] Move source to fedorahosted

Marcela Mašláňová mmaslano at fedoraproject.org
Fri Oct 22 13:07:52 UTC 2010


commit a49aff492fa527279a667d9faff8bf109a39cdb5
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date:   Fri Oct 22 15:04:57 2010 +0200

    Move source to fedorahosted
    
    Use git tarball from fedorahosted as source.

 .gitignore    |    7 ++---
 crontab       |   15 -----------
 crontabs.spec |   26 +++++++++++--------
 run-parts     |   76 ---------------------------------------------------------
 sources       |    4 +--
 5 files changed, 19 insertions(+), 109 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9ead238..50a1b4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
-config
-crontab
-run-parts
-crontabs.4
+*~
+*.tar.*
+/crontabs-1.11-1.20101022git.tar.gz
diff --git a/crontabs.spec b/crontabs.spec
index 83a0985..bdfe199 100644
--- a/crontabs.spec
+++ b/crontabs.spec
@@ -1,18 +1,18 @@
+%define snap_release 20101022git 
 Summary: Root crontab files used to schedule the execution of programs
 Name: crontabs
-Version: 1.10
-Release: 34%{?dist}
+Version: 1.11
+Release: 1.%{snap_release}%{?dist}
 License: Public Domain and GPLv2
 Group: System Environment/Base
-# no URL - it's only a one script which is used by different packages
-Source0: crontab
-Source1: run-parts
-Source2: crontabs.4
+URL: https://fedorahosted.org/crontabs 
+Source0: https://fedorahosted.org/releases/c/r/crontabs/%{name}-%{version}-1.%{snap_release}.tar.gz
 BuildArch: noarch
 Requires: /etc/cron.d
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 %description
+This package is used by Fedora mainly for executing files by cron.
+
 The crontabs package contains root crontab files and directories.
 You will need to install cron daemon to run the jobs from the crontabs.
 The cron daemon such as cronie or fcron checks the crontab files to
@@ -23,7 +23,8 @@ Crontabs handles a basic system function, so it should be installed on
 your system.
 
 %prep
-#empty
+%setup -q 
+
 %build
 #empty
 
@@ -33,9 +34,9 @@ mkdir -p $RPM_BUILD_ROOT/etc/cron.{hourly,daily,weekly,monthly}
 mkdir -p $RPM_BUILD_ROOT/usr/bin
 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man4/
 
-install -m644 %SOURCE0 $RPM_BUILD_ROOT/etc/crontab
-install -m755 %SOURCE1 $RPM_BUILD_ROOT/usr/bin/run-parts
-install -m644 %SOURCE2 $RPM_BUILD_ROOT/%{_mandir}/man4/
+install -m644 ./crontab $RPM_BUILD_ROOT/etc/crontab
+install -m755 ./run-parts $RPM_BUILD_ROOT/usr/bin/run-parts
+install -m644 ./crontabs.4 $RPM_BUILD_ROOT/%{_mandir}/man4/
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -51,6 +52,9 @@ rm -rf $RPM_BUILD_ROOT
 %dir /etc/cron.monthly
 
 %changelog
+* Fri Oct 22 2010 Marcela Mašláňová <mmaslano at redhat.com> 1.11-1
+- use sources from source fedorahosted
+
 * Mon Oct 18 2010 Marcela Mašláňová <mmaslano at redhat.com> 1.10-34
 - add --list option into run-parts
 
diff --git a/sources b/sources
index 39bf498..d13aeab 100644
--- a/sources
+++ b/sources
@@ -1,3 +1 @@
-3a9b01f4bf9205b5c62cb16782a13d48  run-parts
-714d6ada56f1e41e614693f50a8034ef  crontab
-e1f6e832d90ea9a4ff8f23232b8252a6  crontabs.4
+51ad7b320057001d4209bff948edee0a  crontabs-1.11-1.20101022git.tar.gz


More information about the scm-commits mailing list