75 lines
1.9 KiB
RPMSpec
75 lines
1.9 KiB
RPMSpec
|
%define pkgver %(echo %version | tr . _)
|
||
|
Name: java-sun-jaas
|
||
|
Version: 1.0.01
|
||
|
Release: 2mamba
|
||
|
Summary: Java Authentication and Authorization Service (JAAS)
|
||
|
Group: Development/Libraries/Java
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: gil <puntogil@libero.it>
|
||
|
URL: http://java.sun.com/products/archive/jaas/
|
||
|
Source0: jaas-%{pkgver}.zip
|
||
|
Source1: jaas-%{pkgver}-doc.zip
|
||
|
License: Sun Binary Code License
|
||
|
BuildRequires: jpackage-utils
|
||
|
Requires: jpackage-utils
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%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 doc/README.html
|
||
|
|
||
|
%files javadoc
|
||
|
%defattr(-,root,root)
|
||
|
%{_javadocdir}/jaas-%{version}
|
||
|
|
||
|
%changelog
|
||
|
* 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
|