DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (1a94108c67ad)

VCS Links

Line Code
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
%define name python26-mozsvcnodes
%define pythonname MozSvcNodes
%define version 1.8
%define unmangled_version %{version}
%define release 5

Summary: Node assignment manager
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{pythonname}-%{unmangled_version}.tar.gz
Group: Mozilla
License: MPL
Packager: Toby Elliott <telliott@mozilla.com>
BuildRoot: %{_tmppath}/%{pythonname}-%{version}-%{release}-buildroot
Requires: python26 python26-setuptools python26-webob python26-paste python26-pastedeploy python26-pastescript python26-services python26-memcached python26-simplejson python26-sqlalchemy python26-routes python26-pymysql python26-pymysql_sa
Url: https://hg.mozilla.org/services/server-node-assignment

%description
Implements the library for multiple node allocation in products that need
to do distributed node assignemnt, as well as an API to read and update the
data

Full documentation: https://wiki.mozilla.org/Services/NodeAssignment

%clea1
rm -rf $RPM_BUILD_ROOT

%prep
%setup -n %{pythonname}-%{unmangled_version} -n %{pythonname}-%{unmangled_version}

%build
python2.6 setup.py build

%install
mkdir -p %{buildroot}%{_sysconfdir}/mozilla-services
mkdir -p %{buildroot}%{_sysconfdir}/nginx
mkdir -p %{buildroot}%{_sysconfdir}/nginx/conf.d

mkdir -p %{buildroot}%{_localstatedir}/log
touch %{buildroot}%{_localstatedir}/log/nodes.log

install -m 0644 etc/nodes.nginx.conf %{buildroot}%{_sysconfdir}/nginx/conf.d/nodes.conf
install -m 0644 etc/nodes.cfg %{buildroot}%{_sysconfdir}/mozilla-services/nodes.cfg

python2.6 setup.py install --single-version-externally-managed --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%post

%files -f INSTALLED_FILES
%dir %{_sysconfdir}/mozilla-services/
%config(noreplace) %{_sysconfdir}/nginx/conf.d/nodes.conf
%config(noreplace) %{_sysconfdir}/mozilla-services/nodes.cfg
%attr(750, apache, apache) %ghost %{_localstatedir}/log/nodes.log