-
Notifications
You must be signed in to change notification settings - Fork 22
/
panda-server.spec
47 lines (40 loc) · 1.23 KB
/
panda-server.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
%define name panda-server
%define version 0.0.20.28
%define unmangled_version 0.0.20.28.mysql
%define release 0.3
Summary: PanDA Server Package
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Source0: %{name}-%{unmangled_version}.tar.gz
Patch0: setup_mysql.patch
Patch1: templates.patch
License: GPL
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
Vendor: Panda Team <[email protected]>
Packager: Panda Team <[email protected]>
Provides: panda-server
Requires: python panda-common
Url: https://twiki.cern.ch/twiki/bin/view/Atlas/PanDA
%description
This package contains PanDA Server Components
%prep
%setup -n %{name}-%{unmangled_version}
%patch0 -p1
rename .rpmnew. . templates/*.rpmnew.template
%patch1 -p1
%build
python setup_mysql.py build
%install
python setup_mysql.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%config(noreplace) /etc/panda/panda_server.cfg
%config(noreplace) /etc/panda/panda_server-httpd.conf
%config(noreplace) /etc/panda/panda_server-httpd-FastCGI.conf
%config(noreplace) /etc/sysconfig/panda_server-sysconfig