Search
j0ke.net Open Build Service
>
Projects
>
SUSE
:
Manager
:
1.2
>
jpam
> jpam.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File jpam.spec of Package jpam
# # spec file for package jpam (Version 0.4) # # Copyright (c) 2010 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/ # %define jpackage_run_jars antlr jakarta-commons-beanutils jakarta-commons-collections jakarta-commons-logging regexp %define jpackage_build_jars checkstyle junit %define jpackage_jars %jpackage_run_jars %jpackage_build_jars Summary: A JNI Wrapper for the Unix pam(8) subsystem and a JAAS bridge Name: jpam Version: 0.4 Release: 0.20.37 License: The Apache Software License Group: Development/Libraries/Java Url: http://jpam.sourceforge.net/ Source0: %{name}-%{version}-src.zip Patch0: bug219916_expired_password_hang.patch Patch1: %{name}-%{version}-s390x.patch Patch2: jpam-0.4-ppc.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: %jpackage_run_jars BuildRequires: %jpackage_jars BuildRequires: gcc make BuildRequires: pam-devel BuildRequires: ant-nodeps BuildRequires: java-devel >= 1.6.0 unzip # ia64 doesnt have a new enough java. ExcludeArch: ia64 %description JPam provides a class to access the Unix pam(8) subsystem from Java, and wraps it in a JAAS LoginModule %package javadoc License: The Apache Software License Summary: Javadoc for jpam Group: Development/Documentation %description javadoc Javadoc for jpam. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 rm -Rfv tools/*.jar build-jar-repository -p tools/ %jpackage_jars %build export JAVA_HOME=%{java_home} %ant shared-object dist-jar javadoc %install rm -rf $RPM_BUILD_ROOT # jar install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 build/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} install -m 644 src/dist/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} # FIXME: Sun's JDK does not search for libraries in /usr/lib, though # IBM's does. This specfile will work for users with the IBM JRE, but not # for users of Sun's JRE. Unfortunately, the two JRE's don't have a single # directory in java.library.path in common. %if 0%{?suse_version} install -D -m 755 build/gen-src/c/libjpam.so $RPM_BUILD_ROOT/%{_libdir}/libjpam.so %else install -D -m 755 build/gen-src/c/libjpam.so $RPM_BUILD_ROOT/usr/lib/libjpam.so %endif # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr site/documentation/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name} %postun javadoc if [ "$1" = "0" ]; then rm -f %{_javadocdir}/%{name} fi %files %defattr(-,root,root,-) %{_javadir}/* %if 0%{?suse_version} %{_libdir}/libjpam.so %else /usr/lib/libjpam.so %endif %doc %{_docdir}/* %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}-%{version} %changelog * Thu Dec 9 2010 mc@suse.de - initial release