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

100 lines
2.6 KiB
RPMSpec
Raw Normal View History

%define pkgver %(echo %version | tr . _)
Name: java-sun-jndi
Version: 1.2.1
Release: 3mamba
Summary: Java Naming and Directory Interface (JNDI)
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://java.sun.com/products/jndi/
# download https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SimpleBundleDownload
Source: jndi-%{pkgver}.zip
License: Sun Binary Code License
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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
* 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