diff --git a/README.md b/README.md index b14db9e..70b11ff 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # java-sun-jaas +Java Authentication and Authorization Service (JAAS) + diff --git a/java-sun-jaas.spec b/java-sun-jaas.spec new file mode 100644 index 0000000..56c484a --- /dev/null +++ b/java-sun-jaas.spec @@ -0,0 +1,74 @@ +%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 +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 1.0.01-2mamba +- rebuilt devel + +* Wed Mar 11 2009 gil 1.0.01-1mamba +- package created by autospec