Update to latest release
Switch to maven-based build Add OSGi metadata
This commit is contained in:
parent
17e0cddede
commit
01cd688342
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ xmlgraphics-commons-1.3.1-src.tar.gz
|
|||||||
/xmlgraphics-commons-1.5-src.tar.gz
|
/xmlgraphics-commons-1.5-src.tar.gz
|
||||||
/xmlgraphics-commons-2.0-src.tar.gz
|
/xmlgraphics-commons-2.0-src.tar.gz
|
||||||
/xmlgraphics-commons-2.0.1-src.tar.gz
|
/xmlgraphics-commons-2.0.1-src.tar.gz
|
||||||
|
/xmlgraphics-commons-2.2-src.tar.gz
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
d8b3b07116e5387c760f4fe6dbe598c0 xmlgraphics-commons-2.0.1-src.tar.gz
|
SHA512 (xmlgraphics-commons-2.2-src.tar.gz) = c0c786e774da535d7ed100c3c78ba1483fde371b7353226bb72076aab39ad33e752fa9d85fd368f65cfb50cc25ae904868d8f939323ea96876523e09f1259211
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
Name: xmlgraphics-commons
|
Name: xmlgraphics-commons
|
||||||
Version: 2.0.1
|
Version: 2.2
|
||||||
Release: 6%{?dist}
|
Release: 1%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: XML Graphics Commons
|
Summary: XML Graphics Commons
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
URL: http://xmlgraphics.apache.org/
|
URL: http://xmlgraphics.apache.org/
|
||||||
Source0: http://apache.org/dist/xmlgraphics/commons/source/%{name}-%{version}-src.tar.gz
|
Source0: http://archive.apache.org/dist/xmlgraphics/commons/source/xmlgraphics-commons-%{version}-src.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: java-devel >= 1:1.6.0
|
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: maven-local
|
||||||
BuildRequires: ant >= 0:1.6
|
BuildRequires: mvn(commons-io:commons-io)
|
||||||
BuildRequires: ant-junit >= 0:1.6
|
BuildRequires: mvn(commons-logging:commons-logging)
|
||||||
BuildRequires: junit
|
BuildRequires: mvn(junit:junit)
|
||||||
BuildRequires: apache-commons-io >= 1.3.1
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||||
BuildRequires: apache-commons-logging >= 1.0.4
|
BuildRequires: mvn(org.mockito:mockito-core)
|
||||||
BuildRequires: apache-parent
|
BuildRequires: mvn(xml-resolver:xml-resolver)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Apache XML Graphics Commons is a library that consists of
|
Apache XML Graphics Commons is a library that consists of
|
||||||
@ -31,31 +31,33 @@ PostScript files, and much more.
|
|||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
%{summary}.
|
This package contains API documentation for %{name}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q %{name}-%{version}
|
%setup -q %{name}-%{version}
|
||||||
rm -f `find . -name "*.jar"`
|
|
||||||
|
|
||||||
# create pom from template
|
find -name "*.jar" -delete
|
||||||
sed "s:@version@:%{version}:g" %{name}-pom-template.pom \
|
|
||||||
> %{name}.pom
|
|
||||||
|
|
||||||
|
# Disable plugins not needed for RPM build
|
||||||
|
%pom_remove_plugin :maven-checkstyle-plugin
|
||||||
|
%pom_remove_plugin :findbugs-maven-plugin
|
||||||
|
|
||||||
|
# Make into OSGi bundle
|
||||||
|
%pom_xpath_inject pom:project '<packaging>bundle</packaging>'
|
||||||
|
%pom_add_plugin org.apache.felix:maven-bundle-plugin . \
|
||||||
|
" <extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<instructions>
|
||||||
|
<Bundle-SymbolicName>org.apache.xmlgraphics</Bundle-SymbolicName>
|
||||||
|
</instructions>
|
||||||
|
</configuration>"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CLASSPATH=$(build-classpath commons-logging)
|
%mvn_file : %{name}
|
||||||
export OPT_JAR_LIST="ant/ant-junit junit"
|
%mvn_build
|
||||||
pushd lib
|
|
||||||
ln -sf $(build-classpath commons-io) .
|
|
||||||
popd
|
|
||||||
ant package javadocs
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_file : %{name}
|
%mvn_install
|
||||||
%mvn_artifact %{name}.pom build/%{name}-%{version}.jar
|
|
||||||
|
|
||||||
%mvn_install -J build/javadocs
|
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license LICENSE NOTICE
|
%license LICENSE NOTICE
|
||||||
@ -64,8 +66,12 @@ ant package javadocs
|
|||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%license LICENSE NOTICE
|
%license LICENSE NOTICE
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 26 2018 Mat Booth <mat.booth@redhat.com> - 0:2.2-1
|
||||||
|
- Update to latest release
|
||||||
|
- Switch to maven-based build
|
||||||
|
- Add OSGi metadata
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.1-6
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.0.1-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user