Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
RPM SPEC for Play Framework
Name: play
Version: 1.2.3
Release: 1%{?dist}
Summary: Play Framework
Group: System Environment/Daemons
License: Apache License, Version 2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: unzip
Requires: java >= 1.6, java-devel >= 1.6
Requires: python%{?el5:26} >= 2.6
The Play framework is a clean alternative to bloated Enterprise Java stacks.
It focuses on developer productivity and targets RESTful architectures.
%setup -q
rm -rf %{buildroot}
install -d -m 755 %{buildroot}/opt/%{name}
install -m 755 play %{buildroot}/opt/%{name}/play
# Ignore Wintel related content.
cp -R framework modules resources %{buildroot}/opt/%{name}/
rm -rf %{buildroot}
%doc README.textile
%doc documentation/
%doc samples-and-tests/
%doc support/
%dir /opt/%{name}
getent group %{name} >/dev/null || \
groupadd -r %{name}
getent passwd %{name} >/dev/null || \
useradd -r -g %{name} -d /opt/${name} -s /sbin/nologin -c "Play Framework Daemon" %{name}
exit 0
* Mon Nov 21 2011 Dan Carley <> 1.2.3-1
- Initial package.

This comment has been minimized.

Copy link

robertobado commented Oct 2, 2012

Excellent! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.