[jcifs] Initial import (#806670).

gil gil at fedoraproject.org
Wed Apr 18 12:42:43 UTC 2012


commit c9f56f3d2be69266273d831c65753b71163b80fc
Author: gil <puntogil at libero.it>
Date:   Wed Apr 18 12:45:01 2012 +0200

    Initial import (#806670).

 .gitignore               |    1 +
 jcifs-1.3.17-build.patch |   11 +++++
 jcifs-1.3.17-pom.patch   |   20 ++++++++
 jcifs-1.3.17.pom         |   93 +++++++++++++++++++++++++++++++++++++++
 jcifs.spec               |  109 ++++++++++++++++++++++++++++++++++++++++++++++
 sources                  |    1 +
 6 files changed, 235 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9274e7d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jcifs-1.3.17.tgz
diff --git a/jcifs-1.3.17-build.patch b/jcifs-1.3.17-build.patch
new file mode 100644
index 0000000..8dcd295
--- /dev/null
+++ b/jcifs-1.3.17-build.patch
@@ -0,0 +1,11 @@
+--- build.xml	2011-10-18 21:26:25.000000000 +0200
++++ build.xml-gil	2012-03-21 12:18:15.514657716 +0100
+@@ -52,8 +52,6 @@
+             source="1.5"
+             target="1.5"
+             fork="yes"
+-            executable="/usr/local/java5/bin/javac"
+-            compiler="javac1.5"
+             debug="on">
+ <!--
+             <compilerarg line="-Xlint:deprecation -Xlint:unchecked"/>
diff --git a/jcifs-1.3.17-pom.patch b/jcifs-1.3.17-pom.patch
new file mode 100644
index 0000000..0b7b92b
--- /dev/null
+++ b/jcifs-1.3.17-pom.patch
@@ -0,0 +1,20 @@
+--- pom.xml	2012-04-18 10:45:18.000000000 +0200
++++ pom.xml-gil	2012-04-18 10:57:31.918735396 +0200
+@@ -66,7 +66,7 @@
+           </execution>
+         </executions>
+       </plugin>
+-      <plugin>
++      <!--plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-gpg-plugin</artifactId>
+         <version>1.4</version>
+@@ -79,7 +79,7 @@
+             </goals>
+           </execution>
+         </executions>
+-      </plugin>
++      </plugin-->
+     </plugins>
+   </build>
+ 
diff --git a/jcifs-1.3.17.pom b/jcifs-1.3.17.pom
new file mode 100644
index 0000000..310173e
--- /dev/null
+++ b/jcifs-1.3.17.pom
@@ -0,0 +1,93 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>jcifs</groupId>
+  <artifactId>jcifs</artifactId>
+  <version>1.3.17</version>
+  <packaging>jar</packaging>
+  <name>jCIFS</name>
+  <url>http://jcifs.samba.org</url>
+  <description>JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java</description>
+  <licenses>
+      <license>
+        <name>GNU Lesser General Public License, version 2.1</name>
+        <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt</url>
+        <distribution>repo</distribution>
+      </license>
+  </licenses>
+
+  <scm>
+    <url>http://jcifs.samba.org/src/</url>
+  </scm>
+
+  <dependencies>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>2.4</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <sourceDirectory>${project.basedir}/src</sourceDirectory>
+    <resources>
+      <resource>
+        <directory>src</directory>
+        <includes>
+          <include>**/*.map</include>
+          <include>**/*.css</include>
+          <include>**/*.idl</include>
+        </includes>
+      </resource>
+    </resources>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <version>2.1.2</version>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>2.8.1</version>
+        <executions>
+          <execution>
+            <id>attach-javadocs</id>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-gpg-plugin</artifactId>
+        <version>1.4</version>
+        <executions>
+          <execution>
+            <id>sign-artifacts</id>
+            <phase>verify</phase>
+            <goals>
+              <goal>sign</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+  <developers>
+    <developer>
+      <id>mike</id>
+      <name>Michael B. Allen</name>
+      <email>ioplex at gmail.com</email>
+    </developer>
+  </developers>
+</project>
diff --git a/jcifs.spec b/jcifs.spec
new file mode 100644
index 0000000..bfe6c66
--- /dev/null
+++ b/jcifs.spec
@@ -0,0 +1,109 @@
+Name:          jcifs
+Version:       1.3.17
+Release:       3%{?dist}
+Summary:       Common Internet File System Client in 100% Java
+Group:         Development/Libraries
+License:       LGPLv2+
+Url:           http://jcifs.samba.org/
+Source0:       http://jcifs.samba.org/src/jcifs-1.3.17.tgz
+Source1:       http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom 
+# fix javac executable
+Patch0:        %{name}-%{version}-build.patch
+# remove maven-gpg-plugin
+Patch1:        %{name}-%{version}-pom.patch
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+BuildRequires: ant
+
+BuildRequires: tomcat-servlet-3.0-api
+Requires:      tomcat-servlet-3.0-api
+
+Requires:      java
+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}
+Group:         Documentation
+Requires:      jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%package demo
+Summary:       Demo for %{name}
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description demo
+Demonstrations and samples for %{name}.
+
+%prep
+%setup -q -n %{name}_%{version}
+find -name '*.class' -exec rm -f '{}' \;
+find -name '*.jar' -exec rm -f '{}' \;
+%patch0 -p0
+cp -p %{SOURCE1} pom.xml
+%patch1 -p0
+
+%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 JPP-%{name}.pom %{name}.jar -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
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+%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 Apr 18 2012 gil cattaneo <puntogil at libero.it> 1.3.17-3
+- remove maven build method
+- clean spec file
+
+* Wed Apr 18 2012 gil cattaneo <puntogil at libero.it> 1.3.17-2
+- fixed license field
+- add LICENSE.txt file to main package and subpackages
+- add Requires: jpackage-utils to javadoc subpackage
+
+* Sun Mar 25 2012 gil cattaneo <puntogil at libero.it> 1.3.17-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..441e67f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+17883a896bf93e5942eb781a66ba4b7a  jcifs-1.3.17.tgz


More information about the scm-commits mailing list