-
Notifications
You must be signed in to change notification settings - Fork 16
/
s3yum-updater.spec
59 lines (49 loc) · 1.59 KB
/
s3yum-updater.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Name: s3yum-updater
Version: 1.2
Release: 1
Summary: Daemon script for updating an s3-hosted yum repository
Group: System Environment/Daemons
License: BSD
URL: https://github.com/rockpack/s3yum-updater
Source0: https://github.com/rockpack/s3yum-updater/archive/master.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
Requires: createrepo python-daemon python-boto python-simplejson
Requires(post): chkconfig initscripts
Requires(pre): chkconfig initscripts
%description
A script that listens for SNS/SQS notifications of newly uploaded
packages on an s3-host yum repository. On notification, the daemon
will update the repodata.
%prep
%setup -q -n s3yum-updater-master
%install
rm -rf %{buildroot}
%{__install} -D -m755 repoupdate-daemon.init \
%{buildroot}%{_sysconfdir}/rc.d/init.d/repoupdate-daemon
%{__install} -D -m755 repoupdate-daemon.py \
%{buildroot}%{_bindir}/repoupdate-daemon
%{__install} -D -m755 publish-packages.py \
%{buildroot}%{_bindir}/publish-packages
%clean
rm -rf %{buildroot}
%post
/sbin/chkconfig --add repoupdate-daemon
%preun
if [ $1 -eq 0 ]; then
/sbin/service repoupdate-daemon stop >/dev/null 2>&1
/sbin/chkconfig --del repoupdate-daemon
fi
%files
%defattr(-,root,root,-)
%doc README.md LICENSE
%{_sysconfdir}/rc.d/init.d/*
%{_bindir}/*
%changelog
* Mon Jun 23 2014 Paul Egan <paulegan@mail.com> - 1.1-1
- Added step-by-step install documentation and CloudFormation config
- Added Makefile
- Support createrepo >= 0.10.1
- Support python-daemon >= 1.6
* Thu Jan 31 2013 Paul Egan <paulegan@rockpack.com> - 1.0-1
- Initial release