java-sun-jaas/java-sun-jaas.spec

79 lines
2.1 KiB
RPMSpec

%define pkgver %(echo %version | tr . _)
Name: java-sun-jaas
Version: 1.0.01
Release: 3mamba
Summary: Java Authentication and Authorization Service (JAAS)
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.oracle.com/java/technologies/downloads/archive/
Source0: jaas-%{pkgver}.zip
Source1: jaas-%{pkgver}-doc.zip
License: Sun Binary Code License
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
Requires: javapackages
%description
Java Authentication and Authorization Service (JAAS)
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
%description javadoc
Java Authentication and Authorization Service (JAAS)
This package contains documentation for %{name}.
%prep
%setup -q -n jaas%{pkgver} -a 1
for i in `find -iname "*.html"`; do sed -i 's/\r//' $i; done
for i in `find -iname "*.css"`; do sed -i 's/\r//' $i; done
for i in `find -iname "*.xml"`; do sed -i 's/\r//' $i; done
sed -i 's/\r//' doc/COPYRIGHT
sed -i 's/\r//' doc/LICENSE
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
install -m 644 lib/jaas.jar %{buildroot}%{_javadir}/jaas-%{version}.jar
(
cd %{buildroot}%{_javadir}
for file in *.jar; do
ln -sf $file `basename $file -%{version}.jar`.jar
done
)
mkdir -p %{buildroot}%{_javadocdir}/jaas-%{version}
cp -pr jaas%{pkgver}-doc/apidoc/* %{buildroot}%{_javadocdir}/jaas-%{version}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/jaas-%{version}.jar
%{_javadir}/jaas.jar
%doc doc/COPYRIGHT doc/LICENSE
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/jaas-%{version}
%doc doc/README.html
%changelog
* Mon Aug 22 2022 Automatic Build System <autodist@mambasoft.it> 1.0.01-3mamba
- automatic rebuild by autodist
* Wed Nov 10 2010 gil <puntogil@libero.it> 1.0.01-2mamba
- rebuilt devel
* Wed Mar 11 2009 gil <puntogil@libero.it> 1.0.01-1mamba
- package created by autospec