-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Summary: JBoss Jopr | ||
Name: jboss-jopr | ||
Version: 2.2.1 | ||
Release: 1 | ||
License: LGPL | ||
BuildArch: noarch | ||
Group: Applications/System | ||
Source0: http://softlayer.dl.sourceforge.net/project/rhq/jopr/jopr-%{version}/jopr-server-%{version}.zip | ||
Source100: find-external-requires | ||
Requires: shadow-utils | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||
|
||
%define runuser jopr | ||
%define __jar_repack %{nil} | ||
%define __find_requires %{SOURCE100} | ||
AutoProv: 0 | ||
%define _use_internal_dependency_generator 0 | ||
|
||
%description | ||
Jopr is an enterprise management solution for JBoss middleware projects and other application technologies. This pluggable project provides administration, monitoring, alerting, operational control and configuration in an enterprise setting with fine-grained security and an advanced extension model. This system is based on and plugin-compatible with the multi-vendor RHQ management project. It provides support for monitoring base operating system information on six operating systems as well as mangement of Apache, JBoss Application Server and other related projects. | ||
|
||
%prep | ||
%setup -n jopr-server-%{version} | ||
|
||
%install | ||
mkdir -p $RPM_BUILD_ROOT/opt | ||
cp -R . $RPM_BUILD_ROOT/opt/jboss-jopr | ||
|
||
%clean | ||
rm -Rf $RPM_BUILD_ROOT | ||
|
||
%pre | ||
/usr/sbin/groupadd -r jopr 2>/dev/null || : | ||
/usr/sbin/useradd -c "JBoss JOPR" -r -s /bin/bash -d /opt/jboss-jopr -g jopr jopr 2>/dev/null || : | ||
|
||
%files | ||
%defattr(-,jboss,jboss) | ||
/ | ||
|
||
%changelog | ||
* Sat Jul 25 2009 Marek Goldmann 2.2.1 | ||
- Initial packaging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
# Finds requirements provided outside of the current file set | ||
|
||
filelist=`sed "s/[]['\"*?{}]/\\\\\&/g"` | ||
|
||
provides=`echo $filelist | /usr/lib/rpm/find-provides` | ||
|
||
{ | ||
for f in $filelist ; do | ||
echo $f | /usr/lib/rpm/find-requires | while read req ; do | ||
found=0 | ||
for p in $provides ; do | ||
if [ "$req" = "$p" ]; then | ||
found=1 | ||
fi | ||
done | ||
if [ "$found" = "0" ]; then | ||
echo $req | ||
fi | ||
done | ||
done | ||
} | sort -u |