diff --git a/irclib-1.10.pom b/irclib-1.10.pom new file mode 100644 index 0000000..14c660e --- /dev/null +++ b/irclib-1.10.pom @@ -0,0 +1,31 @@ + + + 4.0.0 + org.schwering + irclib + 1.10 + IRC client library + http://moepii.sourceforge.net/ + + A Java implementation of the IRC protocol + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + Eclipse Public License, Version 1.0 + http://www.eclipse.org/legal/epl-v10.html + repo + + + GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1 + http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt + repo + + + + http://moepii.svn.sourceforge.net/viewvc/moepii/trunk/ + + diff --git a/irclib-1.10.tar.gz b/irclib-1.10.tar.gz new file mode 100644 index 0000000..980e852 Binary files /dev/null and b/irclib-1.10.tar.gz differ diff --git a/irclib.spec b/irclib.spec new file mode 100644 index 0000000..85f4c45 --- /dev/null +++ b/irclib.spec @@ -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 - 1.10-1 +- package init diff --git a/irclib.yaml b/irclib.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/irclib.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA