Il 25/06/2013 17:12, Mikolaj Izdebski ha scritto:
On 06/25/2013 04:59 PM, Miroslav Suchý wrote:
I plan to retire java-service-wrapper. I do not use it anymore. And it
need some time, which I do not have.
If you want to take over this package let me know. But rather then
taking over java-service-wrapper, it would be better to package
http://yajsw.sourceforge.net/ instead.
java-service-wrapper is still used by other package. It's in dependency
chain of JBoss AS. I can take the ownership.
hi
great!
built latest wrapper spec file attacched, src rpm in my home page
this is not a replacement of java-service-wrapper... only work carried
out ..
thanks
gil
%global javaver 1.5
%global hgrev 3290d306074a
%global rel_version %(echo %version | tr . _ )
# rpmbuild < 4.6 support
%if ! 0%{?__isa_bits}
%ifarch x86_64 ia64 ppc64 sparc64 s390x alpha
%global __isa_bits 64
%else
%global __isa_bits 32
%endif
%endif
%global __provides_exclude_from ^%{_libdir}/%{name}/.*\.so$
Name: yaja-wrapper
Version: 3.2.5
Release: 1%{?dist}
Summary: Java service wrapper
License: BSD
URL: https://bitbucket.org/ivertex/yaja-wrapper
Source0: https://bitbucket.org/ivertex/%{name}/get/release-3_2_5.tar.bz2
Source1: %{name}.template.init
Source2: %{name}-pom-template.xml
Patch0: %{name}-%{version}-cflags.patch
Patch1: %{name}-%{version}-jnilibpath.patch
BuildRequires: ant-junit
BuildRequires: java-devel
BuildRequires: java-javadoc
Requires: java
%description
The Yaja Wrapper enables a Java application to
be run as a Unix daemon or Windows service. It
also monitors the health of your application and
JVM.
Fork of Tanuki Software Ltd's Java Service Wrapper.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n ivertex-%{name}-%{hgrev}
install -pm 644 %{SOURCE1} doc/template.init
%patch0 -p1
sed -e 's|@LIBPATH@|%{_libdir}/%{name}|' %{PATCH1} | %{__patch} -p1 -F 0
cp -p %{SOURCE2} pom.xml
sed -i 's/@VERSION@/%{version}/' pom.xml
%build
%ant -Dbits=%{__isa_bits} -Djavac.target.version=%{javaver}
%javadoc -sourcepath src/java -d javadoc -link %{_javadocdir}/java -author \
-windowtitle "Java Service Wrapper API" -doctitle "Java Service Wrapper" \
-version $(find src/java -name "*.java" -not -path "*/test/*")
%install
mkdir -p %{buildroot}%{_sbindir}
install -pm 755 bin/wrapper %{buildroot}%{_sbindir}/java-service-wrapper
mkdir -p %{buildroot}%{_libdir}/%{name}
install -pm 755 lib/libwrapper.so %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_jnidir}
install -pm 644 lib/wrapper.jar %{buildroot}%{_jnidir}/%{name}.jar
ln -sf ../java/%{name}.jar %{buildroot}%{_libdir}/%{name}/wrapper.jar
# Maven files
mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap -a "tanukisoft:wrapper"
mkdir -p %{buildroot}%{_javadocdir}
cp -pR javadoc %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%doc AboutThisRepository.txt doc/
%{_libdir}/%{name}/
%{_sbindir}/java-service-wrapper
%files javadoc
%{_javadocdir}/%{name}
%doc doc/license.txt
%changelog
* Tue Jun 25 2013 gil cattaneo <punto...@libero.it> 3.2.5-1
- initial rpm
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel