!1 package init

Merge pull request !1 from huanghaitao/master
This commit is contained in:
openeuler-ci-bot 2020-09-10 09:39:16 +08:00 committed by Gitee
commit 3702b9a379
4 changed files with 91 additions and 0 deletions

31
irclib-1.10.pom Normal file
View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.schwering</groupId>
<artifactId>irclib</artifactId>
<version>1.10</version>
<name>IRC client library</name>
<url>http://moepii.sourceforge.net/</url>
<description>A Java implementation of the IRC protocol</description>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
<license>
<name>Eclipse Public License, Version 1.0</name>
<url>http://www.eclipse.org/legal/epl-v10.html</url>
<distribution>repo</distribution>
</license>
<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://moepii.svn.sourceforge.net/viewvc/moepii/trunk/</url>
</scm>
</project>

BIN
irclib-1.10.tar.gz Normal file

Binary file not shown.

56
irclib.spec Normal file
View File

@ -0,0 +1,56 @@
Name: irclib
Version: 1.10
Release: 1
Summary: Java implementation of the IRC protocol
License: ASL 2.0 and EPL and LGPLv2+
URL: http://moepii.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/moepii/%{name}-%{version}.tar.gz
Source1: https://repo1.maven.org/maven2/org/schwering/%{name}/%{version}/%{name}-%{version}.pom
BuildRequires: java-devel javapackages-local
BuildArch: noarch
%description
IRClib is pure Java 1.2 IRC implementation. The
IRClib library is designed very cleanly, supports
RFC1459 and supports SSL connections.
%package help
Summary: Javadoc for %{name}
provides: %{name}-help = %{version}-%{release}
obsoletes: %{name}-help < %{version}-%{release}
%description help
This package contains javadoc for %{name}.
%prep
%setup -q
find -name "*.jar" -delete
find -name "*.class" -delete
rm -r $(find -name ".svn")
rm -r javadoc
chmod 644 CHANGELOG COPYING_AL COPYING_EPL COPYING_LGPL README
sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," COPYING_LGPL
sed -i 's/\r//' CHANGELOG COPYING_AL COPYING_EPL COPYING_LGPL README
%mvn_file org.schwering:%{name} %{name}
%build
mkdir -p classes docs
%javac -d classes -source 1.6 -target 1.6 $(find src -name "*.java")
(
cd classes
%jar -cf ../%{name}.jar *
)
%javadoc -source 1.6 -classpath classes -d docs -Xdoclint:none $(find src -name "*.java")
%install
%mvn_artifact %{SOURCE1} %{name}.jar
%mvn_install -J docs
%files -f .mfiles
%doc CHANGELOG README
%license COPYING_AL COPYING_EPL COPYING_LGPL
%files help -f .mfiles-javadoc
%license COPYING_AL COPYING_EPL COPYING_LGPL
%changelog
* Mon Aug 24 2020 huanghaitao <huanghaitao8@huawei.com> - 1.10-1
- package init

4
irclib.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA