File perl-Java-SJ.spec of Package perl-Java-SJ
#
# spec file for package perl-Java-SJ
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Java-SJ
Version: 0.01
Release: 0
%define cpan_name Java-SJ
Summary: Highly configurable Java program startup system
License: reserved. You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Java-SJ/
Source: http://www.cpan.org/authors/id/W/WI/WIGGLY/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(File::Slurp)
BuildRequires: perl(XML::XPath)
#BuildRequires: perl(Java::SJ)
#BuildRequires: perl(Java::SJ::Classpath)
#BuildRequires: perl(Java::SJ::Config)
#BuildRequires: perl(Java::SJ::VirtualMachine)
Requires: perl(File::Slurp)
Requires: perl(XML::XPath)
%{perl_requires}
%description
This module allows you to very easily run Java services that rely on
complex configuration at the VM and library level. It also provides an easy
way of specifying a sensible 'default' configuration that can be overridden
by specific applications should they need to.
The system is configured on a machine and application level. The system
looks for configuration files in a set of well-known locations, currently
these are:
* * _/etc/sj.conf_
* * _.sj.conf_ in users HOME directory
* * _.sj.conf_ in current working directory
Every application is defined in terms of a similar configuration file. The
configuration system has been designed so that it is easy to write a simple
and minimal configuration file for a program.
Provided the system has a fairly complete configuration associated with it
then an application configuration file need only have the class name to be
executed.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc README TODO
%changelog