diff --git a/jline-build.xml b/jline-build.xml deleted file mode 100644 index c40585c..0000000 --- a/jline-build.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ================================= WARNING ================================ - Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. - ========================================================================== - - - - - - - - - - - - diff --git a/jline.spec b/jline.spec index 4d49c3b..76a4899 100644 --- a/jline.spec +++ b/jline.spec @@ -28,115 +28,85 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -%define _with_maven 1 - -%define with_maven %{!?_without_maven:1}%{?_without_maven:0} -%define without_maven %{?_without_maven:1}%{!?_without_maven:0} - -%define cvs_version 0.9.94 -%define repo_dir .m2/repository - Name: jline Version: 0.9.94 -Release: 0.6%{?dist} -Epoch: 0 +Release: 1%{?dist} Summary: Java library for reading and editing user input in console applications License: BSD -URL: http://jline.sf.net/ +URL: http://jline.sourceforge.net/ Group: Development/Libraries -Source0: http://download.sourceforge.net/sourceforge/jline/jline-%{cvs_version}.zip +Source0: http://download.sourceforge.net/sourceforge/jline/jline-%{version}.zip Source1: CatalogManager.properties -Source2: jline-build.xml -Requires: bash + +Requires: bash # for /bin/stty -Requires: coreutils -Requires: jpackage-utils -BuildRequires: jpackage-utils >= 0:1.7 -%if %{with_maven} -BuildRequires: xml-commons-resolver -BuildRequires: maven2 -BuildRequires: maven2-plugin-resources -BuildRequires: maven2-plugin-compiler -BuildRequires: maven-surefire-maven-plugin -BuildRequires: maven-surefire-provider-junit -BuildRequires: maven2-plugin-jar -BuildRequires: maven2-plugin-install -BuildRequires: maven2-plugin-assembly -BuildRequires: maven2-plugin-site -BuildRequires: maven2-plugin-javadoc -BuildRequires: ant-apache-resolver -%else -BuildRequires: ant -BuildRequires: junit -%endif -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: coreutils +Requires: jpackage-utils +Requires(post): jpackage-utils +Requires(postun): jpackage-utils + +BuildRequires: jpackage-utils +BuildRequires: maven-assembly-plugin +BuildRequires: maven-compiler-plugin +BuildRequires: maven-install-plugin +BuildRequires: maven-jar-plugin +BuildRequires: maven-javadoc-plugin +BuildRequires: maven-resources-plugin +BuildRequires: maven-site-plugin +BuildRequires: maven-surefire-plugin +BuildRequires: maven-surefire-provider-junit + +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description JLine is a java library for reading and editing user input in console applications. It features tab-completion, command history, password -masking, customizable keybindings, and pass-through handlers to use to +masking, configurable key-bindings, and pass-through handlers to use to chain to other console applications. %package demo Summary: Demos for %{name} -Group: Development/Documentation +Group: Documentation +Requires: %{name} = %{version}-%{release} %description demo Demonstrations and samples for %{name}. -# FIXME: the maven ant:ant generated build.xml file does not contain -# a javadoc task -%if %{with_maven} %package javadoc Summary: Javadoc for %{name} -Group: Development/Documentation +Group: Documentation Requires: jpackage-utils %description javadoc Javadoc for %{name}. -%endif %prep -# BEWARE: The jar file META-INF is not under the subdir -%setup -q -c -n %{name}-%{cvs_version} -cp -pr %{name}-%{cvs_version}/* . -rm -fr %{name}-%{cvs_version} +%setup -q -# Use locally installed DTDs -mkdir %{_builddir}/%{name}-%{cvs_version}/build -cp -p %SOURCE1 %{_builddir}/%{name}-%{cvs_version}/build/ +# Make sure upstream hasn't sneaked in any jars we don't know about +find -name '*.class' -exec rm -f '{}' \; +find -name '*.jar' -exec rm -f '{}' \; -cp -p %{SOURCE2} src/build.xml +# Use locally installed DTDs +mkdir build +cp -p %{SOURCE1} build/ %build -mkdir -p native -# Now done by Patch0 for documentation purposes -#perl -p -i -e 's|^.* - 0.9.94-1 +- Remove bundled jars in %%prep phase. +- Tidy up spec file, fix some rpmlint warnings. +- Add pom and depmaps. + * Mon Mar 8 2010 Peter Lemenkov - 0:0.9.94-0.6 - Added missing Requires: jpackage-utils (%%{_javadir} and %%{_javadocdir})