Skip to content

Commit

Permalink
first jopr spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmann committed Jul 27, 2009
1 parent 5a0ff16 commit 3ab5e69
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
42 changes: 42 additions & 0 deletions specs/extras/jboss-jopr.spec
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
23 changes: 23 additions & 0 deletions src/find-external-requires
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

0 comments on commit 3ab5e69

Please sign in to comment.