- Initial packaging from jpackage-1.7

OBS-URL: https://build.opensuse.org/package/show/Java:packages/tanukiwrapper?expand=0&rev=2
This commit is contained in:
2009-09-29 12:58:29 +00:00
committed by Git OBS Bridge
parent 8a2b09c144
commit a238c60724
6 changed files with 47 additions and 84 deletions

View File

@@ -28,8 +28,6 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
%define section free
Name: tanukiwrapper
@@ -39,14 +37,14 @@ Summary: Java Service Wrapper
Epoch: 0
License: BSD
URL: http://wrapper.tanukisoftware.org/
Source0: http://download.sourceforge.net/wrapper/wrapper_3.2.3_src.tar.gz
Source0: http://download.sourceforge.net/wrapper/wrapper_3.2.3_src.tar.bz2
Patch1: %{name}-build.patch
Patch2: %{name}-crosslink.patch
Patch3: %{name}-makefile-linux-x86-32.patch
#Add Makefiles so package builds for all FC architectures.
Patch4: %{name}-Makefile-s390-s390x-ppc.patch
# The following patch is only needed for GCJ.
Patch5: %{name}-nosun-jvm-64.patch
#Patch5: %{name}-nosun-jvm-64.patch
Group: Development/Java
Vendor: JPackage Project
Distribution: JPackage
@@ -69,12 +67,6 @@ Requires: jpackage-utils >= 0:1.6
Obsoletes: %{name}-demo < 0:3.1.2-2jpp
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%if %{gcj_support}
BuildRequires: java-gcj-compat-devel
Requires(post): java-gcj-compat
Requires(postun): java-gcj-compat
%endif
%description
The Java Service Wrapper is an application which has
evolved out of a desire to solve a number of problems
@@ -90,19 +82,34 @@ common to many Java applications:
%package javadoc
Summary: Javadoc for %{name}
Group: Development/Documentation
Requires(post): %{__rm}
Requires(post): /bin/ln
Requires(postun): %{__rm}
%description javadoc
%{summary}.
The Java Service Wrapper is an application which has
evolved out of a desire to solve a number of problems
common to many Java applications:
- Run as a Windows Service or Unix Daemon
- Application Reliability
- Standard, Out of the Box Scripting
- On Demand Restarts
- Flexible Configuration
- Ease Application installations
- Logging
%package manual
Summary: Documents for %{name}
Group: Development/Documentation
%description manual
%{summary}.
The Java Service Wrapper is an application which has
evolved out of a desire to solve a number of problems
common to many Java applications:
- Run as a Windows Service or Unix Daemon
- Application Reliability
- Standard, Out of the Box Scripting
- On Demand Restarts
- Flexible Configuration
- Ease Application installations
- Logging
%prep
%setup -q -n wrapper_%{version}_src
@@ -110,10 +117,6 @@ Group: Development/Documentation
%patch2
%patch3
%patch4
# The following patch is only needed for GCJ.
%if %{gcj_support}
%patch5
%endif
find . -name "*.jar" -exec %__rm -f {} \;
%__perl -p -i -e 's/\r//' doc/AUTHORS
%__perl -p -i -e 's|-O3|%optflags|' src/c/Makefile*
@@ -155,40 +158,10 @@ bits=32
# javadoc
%__install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
%__cp -a jdoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
%__ln_s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} # ghost symlink
%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif
%clean
%__rm -rf %{buildroot}
%post javadoc
%__rm -f %{_javadocdir}/%{name}
%{__ln_s}f %{name}-%{version} %{_javadocdir}/%{name}
%postun javadoc
if [ "$1" = "0" ]; then
%__rm -f %{_javadocdir}/%{name}
fi
%if %{gcj_support}
%post
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%if %{gcj_support}
%postun
if [ -x %{_bindir}/rebuild-gcj-db ]
then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files
%defattr(-,root,root,-)
%doc doc/license.txt *.sample
@@ -196,14 +169,9 @@ fi
%{_libdir}/libwrapper.so
%{_javadir}/%{name}*.jar
%if %{gcj_support}
%attr(-,root,root) %{_libdir}/gcj/%{name}/tanukiwrapper-%{version}.jar.*
%endif
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}
%files manual
%defattr(0644,root,root,0755)