java-sun-jndi/java-sun-jndi.spec

104 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

%define pkgver %(echo %version | tr . _)
Name: java-sun-jndi
Version: 1.2.1
Release: 4mamba
Summary: Java Naming and Directory Interface (JNDI)
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.oracle.com/java/technologies/
# download https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SimpleBundleDownload
Source: jndi-%{pkgver}.zip
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
License: Sun Binary Code License
%description
The Java Naming and Directory Interface (JNDI) is part of the Java platform,
providing applications based on Java technology with a unified interface
to multiple naming and directory services.
You can build powerful and portable directory-enabled applications using this
industry standard.
for more details see here: http://java.sun.com/products/jndi/overview.html
%package demo
Group: Documentation
Summary: Demo for %{name}
Requires: %{name} = %{version}-%{release}
%description demo
The Java Naming and Directory Interface (JNDI) is part of the Java platform,
providing applications based on Java technology with a unified interface
to multiple naming and directory services.
This package contains demonstrations and samples for %{name}.
%package manual
Group: Documentation
Summary: Manual for %{name}
%description manual
The Java Naming and Directory Interface (JNDI) is part of the Java platform,
providing applications based on Java technology with a unified interface
to multiple naming and directory services.
This package contains documentation for %{name}.
%prep
%setup -q -c %{name}-%{version}
chmod -R go=u-w *
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir} \
%{buildroot}%{_datadir}/jndi
install -m 644 lib/jndi.jar \
%{buildroot}%{_javadir}/jndi-%{version}.jar
(
cd %{buildroot}%{_javadir}
for jar in *-%{version}*; do
ln -sf ${jar} ${jar/-%{version}/}
done
)
cp -pr examples %{buildroot}%{_datadir}/jndi
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_javadir}/jndi-%{version}.jar
%{_javadir}/jndi.jar
%doc README.txt
%files demo
%defattr(-,root,root)
%{_datadir}/jndi
%files manual
%defattr(-,root,root)
%doc doc/*
%changelog
* Mon Aug 22 2022 Automatic Build System <autodist@mambasoft.it> 1.2.1-4mamba
- automatic rebuild by autodist
* Wed Nov 10 2010 gil <puntogil@libero.it> 1.2.1-3mamba
- ... add a changelog entry
* Wed Nov 10 2010 gil <puntogil@libero.it> 1.2.1-2mamba
- rebuilt devel
* Mon Mar 02 2009 gil <puntogil@libero.it> 1.2.1-1mamba
- package created by autospec