Summary: A JNI Wrapper for the Unix pam(8) subsystem and a JAAS bridge Name: jpam License: Apache Software License, v. 1.1 URL: http://jpam.sourceforge.net/ Source0: %{name}-0.4-src.zip Patch0: bug219916_expired_password_hang.patch Patch1: %{name}-0.4-s390x.patch Patch2: jpam-0.4-ppc.patch Patch3: jpam-0.4-no_checkstyle.patch Patch4: jpam-0.4-no-password-prompt.patch Patch5: jpam-0.4-arm.patch Version: 0.4 Release: 39%{?dist} Requires: antlr Requires: regexp BuildRequires: antlr BuildRequires: apache-commons-beanutils >= 1.9 BuildRequires: gcc BuildRequires: java-1.8.0-openjdk-devel BuildRequires: junit BuildRequires: make BuildRequires: pam-devel BuildRequires: regexp %if (0%{?fedora} && 0%{?fedora} < 31) || 0%{?rhel} == 7 BuildRequires: checkstyle %define checkstyle_jar checkstyle %endif %if 0%{?fedora} || 0%{?rhel} >= 7 Requires: apache-commons-beanutils Requires: apache-commons-collections Requires: apache-commons-io Requires: apache-commons-logging Requires: javapackages-tools BuildRequires: ant BuildRequires: apache-commons-collections BuildRequires: apache-commons-io BuildRequires: apache-commons-logging BuildRequires: javapackages-tools %else Requires: jakarta-commons-beanutils Requires: jakarta-commons-collections Requires: jakarta-commons-logging BuildRequires: ant < 1.9 BuildRequires: ant-nodeps < 1.9 BuildRequires: jakarta-commons-collections BuildRequires: jakarta-commons-logging %endif # 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 Summary: Javadoc for %{name} %description javadoc Javadoc for %{name}. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 rm -Rfv tools/*.jar build-jar-repository -p tools/ ant antlr commons-beanutils commons-collections commons-logging regexp junit %{?checkstyle_jar} %build export JAVA_HOME=%{java_home} %ant shared-object dist-jar javadoc %install # jar install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 build/%{name}-0.4.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-0.4.jar (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-0.4*; do ln -sf ${jar} `echo $jar| sed "s|-0.4||g"`; done) install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-0.4 install -m 644 src/dist/* $RPM_BUILD_ROOT%{_docdir}/%{name}-0.4 # 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. install -D -m 755 build/gen-src/c/libjpam.so $RPM_BUILD_ROOT/usr/lib/libjpam.so # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-0.4 cp -pr site/documentation/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-0.4 %clean %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-0.4 %{_javadocdir}/%{name} %postun javadoc if [ "$1" = "0" ]; then rm -f %{_javadocdir}/%{name} fi %files %{_javadir}/* /usr/lib/libjpam.so %doc %{_docdir}/* %files javadoc %{_javadocdir}/%{name}-0.4 %changelog * Wed Jan 22 2020 Michael Mraka 0.4-39 - removed RHEL8 workaround * Tue Oct 01 2019 Michael Mraka 0.4-38 - workaround RHEL8 buildrequires modules issue * Tue Sep 17 2019 Michael Mraka 0.4-36 - there's no checkstyle on Fedora 31 * Fri Feb 09 2018 Michael Mraka 0.4-35 - remove install/clean section initial cleanup - removed Group from specfile - removed BuildRoot from specfiles * Wed May 03 2017 Michael Mraka 0.4-34 - recompile all packages with the same (latest) version of java * Mon Apr 10 2017 Michael Mraka 0.4-33 - expanded (Build)Requires list to make it more readable * Thu Apr 06 2017 Michael Mraka 0.4-32 - new checkstyle requirement * Wed Apr 05 2017 Michael Mraka 0.4-31 - require older ant on RHEL6 - Revert jakarta-* -> apache-* changes * Tue Apr 04 2017 Michael Mraka 0.4-30 - expand removed jar list define * Tue Apr 04 2017 Michael Mraka 0.4-29 - updated RHEL6 Requires after jpackage removal - consolidate ifs and defines into one place * Sun Feb 21 2016 Jan Dobes 0.4-28 - adding arm Makefile * Tue Jun 24 2014 Michael Mraka 0.4-27 - update jpam deps for RHEL7 * Wed Jan 08 2014 Tomas Lestach 0.4-26 - ant-nodeps is required on rhel as well * Wed Jan 08 2014 Tomas Lestach 0.4-25 - differenciate only between actual and older fedora * Wed Jan 08 2014 Tomas Lestach 0.4-24 - let jpam buildrequire ant - let jpam build/require javapackages-tools on fc20 * Tue Jan 07 2014 Michael Mraka 0.4-23 - there's not ant-nodeps on fc20 - replace legacy name of Tagger with new one * Fri Mar 15 2013 Michael Mraka 0.4-22 - fixed builder definition * Wed Oct 17 2012 Jan Pazdziora 0.4-21 - 860119 - Remove expected password prompts from PAM_conv, they fail for non-English locales. * Fri Dec 17 2010 Tomas Lestach 0.4-20 - disable checkstyle, since there's a problem with jpackage checkstyle * Thu May 07 2009 Michael Mraka 0.4-19 - package rebuild * Sat Feb 28 2009 Dennis Gilmore - 0.4-18 - rebuild to pick up all rhel arches exclude ia64 - patch in ppc support * Wed Jan 28 2009 0.4-17 - BR java-devel >= 1.6.0 - remove version file * Sun Aug 26 2007 0.4-11 - Applying patch to allow building on Linux s390 and s390x. Originally found by Brad Hinson * Wed Dec 20 2006 0.4-9 - Applying patch to fix a hang when pam password has expired. Bugzilla: 219916 * Mon Apr 18 2005 0.4-1 - Simplified packaging for version 0.4. libjpam.so is now installed into /usr/lib. Set JAVA_HOME * Mon Apr 11 2005 - Changed the jvm location to /usr/lib/jvm/java-ibm/ since using %{_libdir} causes libjpam to be placed in /usr/lib64 which doesn't work with the ibm java * Fri Apr 1 2005 - Initial build.