%global svnrel 82 Name: naga Version: 3.0 Release: 14.%{svnrel}svn%{?dist} Summary: Simplified Java NIO asynchronous sockets License: MIT URL: http://code.google.com/p/naga/ # Upstream does not release stable source tarballs. # Tarball created with # svn checkout -r %{svnrel} http://naga.googlecode.com/svn/trunk/ naga # rm -rf naga/.svn # tar jcf naga-%{svnrel}svn.tar.bz2 naga Source0: naga-%{svnrel}svn.tar.bz2 # Force utf8 Patch0: naga-encoding.patch BuildArch: noarch BuildRequires: jpackage-utils BuildRequires: java-devel BuildRequires: ant Requires: jpackage-utils Requires: java-headless %description Naga aims to be a very small NIO library that provides a handful of java classes to wrap the usual Socket and ServerSocket with asynchronous NIO counterparts (similar to NIO2 planned for Java 1.7). All of this is driven from a single thread, making it useful for both client (e.g. allowing I/O to be done in the AWT-thread without any need for threads) and server programming (1 thread for all connections instead of 2 threads/connection). Internally Naga is a straightforward NIO implementation without any threads or event-queues thrown in, it is "just the NIO-stuff", to let you build things on top of it. Naga contains the code needed to get NIO up and running without having to code partially read buffers and setting various selection key flags. %package javadoc Summary: Javadocs for %{name} Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{name} %patch0 -p1 -b .encoding find -name '*.class' -exec rm -f '{}' \; find -name '*.jar' -exec rm -f '{}' \; %build ant build javadoc %install mkdir -p %{buildroot}%{_javadir} install -D -p -m 644 _DIST/naga-3_0.jar %{buildroot}%{_javadir}/naga.jar ln -s %{_javadir}/naga.jar %{buildroot}%{_javadir}/naga-3_0.jar # Javadocs mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -rp _BUILD/docs/api/* %{buildroot}%{_javadocdir}/%{name} %files %{_javadir}/naga.jar %{_javadir}/naga-3_0.jar %files javadoc %{_javadocdir}/%{name} %changelog * Wed Jan 29 2020 Fedora Release Engineering - 3.0-14.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 3.0-13.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 3.0-12.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 3.0-11.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 3.0-10.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 3.0-9.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 3.0-8.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 3.0-7.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 3.0-6.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 3.0-5.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Mar 28 2014 Michael Simacek - 3.0-4.82svn - Use Requires: java-headless rebuild (#1067528) * Tue Oct 22 2013 Susi Lehtola - 3.0-3.82svn - Real .jar file is shipped unversioned (BZ #1022145). * Sat Aug 03 2013 Fedora Release Engineering - 3.0-2.82svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Mar 25 2013 Susi Lehtola - 3.0-1.82svn - First release.