Name: irclib Version: 1.10 Release: 1%{?dist} 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: http://repo2.maven.org/maven2/org/schwering/%{name}/%{version}/%{name}-%{version}.pom BuildRequires: java-devel %if %{?fedora} >= 21 BuildRequires: javapackages-local %else BuildRequires: maven-local %endif 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 javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q # cleanup find -name "*.jar" -delete find -name "*.class" -delete rm -r $(find -name ".svn") rm -r javadoc # fix spurious-executable-perm chmod 644 CHANGELOG COPYING_AL COPYING_EPL COPYING_LGPL README # fix incorrect-fsf-address sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," COPYING_LGPL # fix wrong-script-end-of-line-encoding 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 -d docs $(find src -name "*.java") %install %mvn_artifact %{SOURCE1} %{name}.jar %mvn_install -J docs %files -f .mfiles %doc CHANGELOG COPYING_AL COPYING_EPL COPYING_LGPL README %files javadoc -f .mfiles-javadoc %doc COPYING_AL COPYING_EPL COPYING_LGPL %changelog * Wed Jun 19 2013 gil cattaneo 1.10-1 - initial rpm