Group :: Desenvolvimento/Java
RPM: saxpath
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Epoch: 0
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: saxpath
Version: 1.0
Release: alt5_20jpp11
Summary: Simple API for XPath
License: Saxpath
URL: http://sourceforge.net/projects/saxpath/
Source0: http://downloads.sourceforge.net/saxpath/saxpath-1.0.tar.gz
Source1: %{name}-%{version}.pom
Source2: LICENSE
BuildArch: noarch
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: javapackages-local
Requires: jpackage-utils
Source44: import.info
%description
The SAXPath project is a Simple API for XPath. SAXPath is analogous to SAX
in that the API abstracts away the details of parsing and provides a simple
event based callback interface.
%package javadoc
Group: Development/Java
Summary: API documentation for %{name}
BuildArch: noarch
%description javadoc
This package contains %{summary}.
%prep
%setup -q -n %{name}-%{version}-FCS
find -name \*.jar -delete
cp %{SOURCE2} .
# install in _javadir
%mvn_file %{name}:%{name} %{name}
%build
mkdir src/conf
touch src/conf/MANIFEST.MF
ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
# fix rpmlint warings: saxpath-javadoc.noarch: W: wrong-file-end-of-line-encoding /usr/share/javadoc/saxpath/**/*.css
for file in `find build/doc -type f | grep .css`; do
sed -i 's/\r//g' $file
done
%mvn_artifact %{SOURCE1} build/%{name}.jar
%install
%mvn_install -J build/doc
%check
ant test
%files -f .mfiles
%doc LICENSE
%files javadoc -f .mfiles-javadoc
%doc LICENSE
%changelog
…
Todas as alterações você pod ver aqui
Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: saxpath
Version: 1.0
Release: alt5_20jpp11
Summary: Simple API for XPath
License: Saxpath
URL: http://sourceforge.net/projects/saxpath/
Source0: http://downloads.sourceforge.net/saxpath/saxpath-1.0.tar.gz
Source1: %{name}-%{version}.pom
Source2: LICENSE
BuildArch: noarch
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: javapackages-local
Requires: jpackage-utils
Source44: import.info
%description
The SAXPath project is a Simple API for XPath. SAXPath is analogous to SAX
in that the API abstracts away the details of parsing and provides a simple
event based callback interface.
%package javadoc
Group: Development/Java
Summary: API documentation for %{name}
BuildArch: noarch
%description javadoc
This package contains %{summary}.
%prep
%setup -q -n %{name}-%{version}-FCS
find -name \*.jar -delete
cp %{SOURCE2} .
# install in _javadir
%mvn_file %{name}:%{name} %{name}
%build
mkdir src/conf
touch src/conf/MANIFEST.MF
ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
# fix rpmlint warings: saxpath-javadoc.noarch: W: wrong-file-end-of-line-encoding /usr/share/javadoc/saxpath/**/*.css
for file in `find build/doc -type f | grep .css`; do
sed -i 's/\r//g' $file
done
%mvn_artifact %{SOURCE1} build/%{name}.jar
%install
%mvn_install -J build/doc
%check
ant test
%files -f .mfiles
%doc LICENSE
%files javadoc -f .mfiles-javadoc
%doc LICENSE
%changelog
…
Todas as alterações você pod ver aqui