xmvn and classfifiers

- Using xmvn
- Remove the jboss-native deps with classifiers
This commit is contained in:
Marek Goldmann 2013-09-11 12:43:19 +02:00
parent df5bbc91ec
commit 4b72e92302

View File

@ -1,8 +1,7 @@
Name: jansi Name: jansi
Version: 1.11 Version: 1.11
Release: 2%{?dist} Release: 3%{?dist}
Summary: Jansi is a java library for generating and interpreting ANSI escape sequences Summary: Jansi is a java library for generating and interpreting ANSI escape sequences
Group: Development/Libraries
License: ASL 2.0 License: ASL 2.0
URL: http://jansi.fusesource.org/ URL: http://jansi.fusesource.org/
@ -12,8 +11,6 @@ Source0: jansi-%{version}.tar.xz
BuildArch: noarch BuildArch: noarch
BuildRequires: jpackage-utils
BuildRequires: java-devel
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: maven-compiler-plugin BuildRequires: maven-compiler-plugin
BuildRequires: maven-install-plugin BuildRequires: maven-install-plugin
@ -28,11 +25,6 @@ BuildRequires: junit4
BuildRequires: fusesource-pom BuildRequires: fusesource-pom
BuildRequires: maven-surefire-provider-junit4 BuildRequires: maven-surefire-provider-junit4
Requires: java
Requires: jpackage-utils
Requires: jansi-native
Requires: hawtjni
%description %description
Jansi is a small java library that allows you to use ANSI escape sequences Jansi is a small java library that allows you to use ANSI escape sequences
in your Java console applications. It implements ANSI support on platforms in your Java console applications. It implements ANSI support on platforms
@ -41,8 +33,6 @@ when output is being sent to output devices which cannot support ANSI sequences.
%package javadoc %package javadoc
Summary: Javadocs for %{name} Summary: Javadocs for %{name}
Group: Documentation
Requires: jpackage-utils
%description javadoc %description javadoc
This package contains the API documentation for %{name}. This package contains the API documentation for %{name}.
@ -59,38 +49,27 @@ This package contains the API documentation for %{name}.
# No maven-uberize-plugin # No maven-uberize-plugin
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-uberize-plugin']" jansi/pom.xml %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-uberize-plugin']" jansi/pom.xml
# Remove unnecessary deps for jansi-native builds
%pom_xpath_remove "pom:dependencies/pom:dependency[pom:artifactId = 'jansi-native' and pom:classifier != '']" jansi/pom.xml
%build %build
mvn-rpmbuild install javadoc:aggregate %mvn_build
%install %install
# JAR %mvn_install
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p %{name}/target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
# JAVADOC %files -f .mfiles
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} %dir %{_javadir}/%{name}
cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
# POM
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-project.pom
install -pm 644 %{name}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
# DEPMAP
%add_maven_depmap JPP-%{name}-project.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar
%files
%{_mavenpomdir}/*
%{_mavendepmapfragdir}/*
%{_javadir}/*
%doc readme.md license.txt changelog.md %doc readme.md license.txt changelog.md
%files javadoc %files javadoc -f .mfiles-javadoc
%{_javadocdir}/%{name}
%doc license.txt %doc license.txt
%changelog %changelog
* Wed Sep 11 2013 Marek Goldmann <mgoldman@redhat.com> - 1.11-3
- Using xmvn
- Remove the jboss-native deps with classifiers
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild