-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeat.spec
107 lines (86 loc) · 3 KB
/
feat.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
%global __python python2.6
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
%define version 0.1.2
%define unmangled_version 0.1.2
%define build_rev 0
Name: python-feat
Summary: Flumotion Asynchronous Autonomous Agent Toolkit
Version: %{version}
Release: %{?build_rev}%{?dist}
Source0: feat-%{unmangled_version}.tar.gz
Group: Development/Languages
License: Propietary
URL: http://flumotion.com
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
BuildRequires: python-setuptools >= 0.6c9
Requires: python-simplejson
Requires: python-twisted-core
Requires: python-twisted-web
#Requires: couchdb >= 0.10
#Requires: python-txamqp >= 0.3
#Requires: rabbitmq-server >= 2.0
Provides: %{name}
%description
Flumotion Asynchronous Autonomous Agent Toolkit
%prep
%setup -q -n feat-%{unmangled_version}
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT \
--record=INSTALLED_FILES
install -m 644 src/feat/agencies/net/amqp0-8.xml \
$RPM_BUILD_ROOT%{python_sitelib}/feat/agencies/net/amqp0-8.xml
# create config dir
install -d $RPM_BUILD_ROOT%{_sysconfdir}/feat
install -m 644 \
conf/feat.ini \
$RPM_BUILD_ROOT%{_sysconfdir}/feat/feat.ini
install -m 644 \
conf/public.key \
$RPM_BUILD_ROOT%{_sysconfdir}/feat/public.key
install -m 644 \
conf/private.key \
$RPM_BUILD_ROOT%{_sysconfdir}/feat/private.key
install -m 644 \
conf/authorized_keys \
$RPM_BUILD_ROOT%{_sysconfdir}/feat/authorized_keys
install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
install -m 755 \
conf/redhat/feat \
$RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
# create log and run and cache and lib rrd directory
install -d $RPM_BUILD_ROOT%{_localstatedir}/log/feat
install -d $RPM_BUILD_ROOT%{_localstatedir}/run/feat
%files
%defattr(-,root,root,-)
%{python_sitelib}/*
%_usr/bin/*
%{_sysconfdir}/rc.d/init.d/feat
%attr(775,root,flumotion) %{_sysconfdir}/feat
%attr(775,root,flumotion) %{_localstatedir}/run/feat
%attr(775,root,flumotion) %{_localstatedir}/log/feat
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Aug 29 2011 Marek Kowalski <[email protected]>
- 0.1.2-5
- Add service scripts
* Thu Jul 28 2011 Marek Kowalski <[email protected]>
- 0.1.2-4
- Remove obsolete executable scripts
* Wed May 11 2011 Xavier Queralt <[email protected]>
- 0.1.2-3
- Add missing amqp0-8.xml file into the package
* Fri Apr 1 2011 Sebastien Merle <[email protected]>
- 0.1.2-1
- Update for new release.
* Wed Mar 16 2010 Xavier Queralt Mateu <[email protected]>
- 0.1.1-2
- Add dependencies
* Thu Mar 3 2010 Josep Joan Ribas <[email protected]>
- 0.1.1-1
- Initial version for RHEL6.