Name: jcifs Version: 1.3.17 Release: %mkrel 13 Summary: Common Internet File System Client in 100% Java Group: Development/Java # Licenses: # src/jcifs/util/DES.java: BSD and MIT # src/jcifs/util/MD4.java: BSD # all the rest: LGPLv2+ License: LGPLv2+ and BSD and MIT URL: http://jcifs.samba.org/ Source0: http://jcifs.samba.org/src/%{name}-%{version}.tgz Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom # fix javac executable Patch0: %{name}-%{version}-build.patch BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: ant BuildRequires: tomcat-servlet-3.0-api Requires: tomcat-servlet-3.0-api Requires: java-headless Requires: jpackage-utils BuildArch: noarch %description The jCIFS SMB client library enables any Java application to remotely access shared files and directories on SMB file servers (i.e. a Microsoft Windows "share") in addition to domain, workgroup, and server enumeration of NetBIOS over TCP/IP networks. It is an advanced implementation of the CIFS protocol supporting Unicode, batching, multiplexing of threaded callers, encrypted authentication, transactions, the Remote Access Protocol (RAP), and much more. It is licensed under LGPL which means commercial organizations can legitimately use it with their proprietary code(you just can't sell or give away a modified binary only version of the library itself without reciprocation). %package javadoc Summary: Javadocs for %{name} # Neither DES.java nor MD4.java (see License comment) are documented here License: LGPLv2+ Group: Documentation %description javadoc This package contains the API documentation for %{name}. %package demo Summary: Demo for %{name} # Files from the directory 'examples' are here, some are under GPLv2+ License: LGPLv2+ and GPLv2+ Group: Development/Java Requires: %{name} = %{version}-%{release} %description demo Demonstrations and samples for %{name}. %prep %setup -q -n %{name}_%{version} find -name '*.class' -delete find -name '*.jar' -delete %patch0 -p0 cp -p %{SOURCE1} pom.xml %pom_remove_plugin :maven-gpg-plugin %build export CLASSPATH=$(build-classpath tomcat-servlet-3.0-api) export OPT_JAR_LIST=: %ant jar javadoc docs %install mkdir -p %{buildroot}%{_javadir} install -p -m 644 %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap -a org.samba.jcifs:jcifs mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -pr docs/api/* %{buildroot}%{_javadocdir}/%{name} mkdir -p %{buildroot}%{_datadir}/%{name}/examples cp -pr examples/*.java %{buildroot}%{_datadir}/%{name}/examples %files -f .mfiles %doc LICENSE.txt README.txt docs/*.{html,txt,gif} %files javadoc %{_javadocdir}/%{name} %doc LICENSE.txt %files demo %{_datadir}/%{name}/* %doc LICENSE.txt %changelog * Wed Oct 15 2014 umeabot <umeabot> 1.3.17-13.mga5 + Revision: 749136 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.3.17-12.mga5 + Revision: 680748 - Mageia 5 Mass Rebuild * Mon May 19 2014 dmorgan <dmorgan> 1.3.17-11.mga5 + Revision: 623968 - Update licences * Fri Oct 18 2013 umeabot <umeabot> 1.3.17-3.mga4 + Revision: 506356 - Mageia 4 Mass Rebuild + dmorgan <dmorgan> - fixed rhbz#875685 (Incorrect license tag) * Sat Jan 12 2013 umeabot <umeabot> 1.3.17-2.mga3 + Revision: 355241 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jun 20 2012 dmorgan <dmorgan> 1.3.17-1.mga3 + Revision: 262201 - New version 1.3.17 * Fri Aug 12 2011 dmorgan <dmorgan> 1.2.24-1.mga2 + Revision: 132879 - Clean spec file + gil <gil> - imported package jcifs