!1 package init

Merge pull request !1 from gu-gu-gu/gu
This commit is contained in:
openeuler-ci-bot 2020-08-12 14:10:19 +08:00 committed by Gitee
commit 9f6d1986c9
4 changed files with 160 additions and 0 deletions

11
jcifs-1.3.17-build.patch Normal file
View File

@ -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"/>

93
jcifs-1.3.17.pom Normal file
View File

@ -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@gmail.com</email>
</developer>
</developers>
</project>

BIN
jcifs-1.3.18.tgz Normal file

Binary file not shown.

56
jcifs.spec Normal file
View File

@ -0,0 +1,56 @@
Name: jcifs
Version: 1.3.18
Release: 11
Summary: The Java CIFS Client Library
License: LGPLv2+ and BSD and MIT
URL: http://jcifs.samba.org/
Source0: https://www.jcifs.org/src/old/jcifs-1.3.18.tgz
Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/jcifs/jcifs/1.3.17/jcifs-1.3.17.pom
Patch0: %{name}-1.3.17-build.patch
BuildArch: noarch
BuildRequires: ant, javapackages-local, mvn(javax.servlet:javax.servlet-api)
Provides: %{name}-javadoc%{?_isa} %{name}-javadoc
Obsoletes: %{name}-javadoc
Provides: %{name}-demo%{?_isa} %{name}-demo
Obsoletes: %{name}-demo
%description
JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java.
CIFS is the standard file sharing protocol on the Microsoft Windows platform (e.g. Map Network Drive ...).
This client is used extensively in production on large Intranets.
%prep
%autosetup -n %{name}_%{version} -p0
find -name '*.class' -delete
find -name '*.jar' -delete
sed -i "s|1.5|1.6|" build.xml
cp -p %{SOURCE1} pom.xml
sed -i "s|<version>1.3.17|<version>%{version}|" pom.xml
%pom_remove_plugin :maven-gpg-plugin
%pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet']/pom:version" 3.1.0
%pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet']/pom:artifactId" javax.servlet-api
%mvn_file %{name}:%{name} %{name}
%mvn_alias %{name}:%{name} org.samba.jcifs:jcifs
%build
export CLASSPATH=$(build-classpath glassfish-servlet-api)
export OPT_JAR_LIST=:
%ant jar javadoc docs
%mvn_artifact pom.xml %{name}-%{version}.jar
%install
%mvn_install -J docs/api
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/examples
cp -pr examples/*.java $RPM_BUILD_ROOT%{_datadir}/%{name}/examples
%files -f .mfiles
%doc README.txt docs/*.{html,txt,gif}
%license LICENSE.txt
%{_datadir}/%{name}/*
%{_javadocdir}/%{name}/*
%changelog
* Fri Feb 14 2020 gulining<gulinin1@huawei.com> - 1.3.18-11
- Package init