jboss-classfilewriter/jboss-classfilewriter.spec

57 lines
1.7 KiB
RPMSpec
Raw Normal View History

2020-08-29 15:29:33 +08:00
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
Name: jboss-classfilewriter
2023-08-21 20:02:36 +08:00
Version: 1.3.0
2020-08-29 15:29:33 +08:00
Release: 1
Summary: JBoss Class File Writer
2022-05-19 11:34:02 +08:00
License: Apache-2.0
2020-08-29 15:29:33 +08:00
URL: https://github.com/jbossas/jboss-classfilewriter
2022-05-19 11:34:02 +08:00
Source0: https://github.com/jbossas/jboss-classfilewriter/archive/refs/tags/%{namedversion}.tar.gz
2020-08-29 15:29:33 +08:00
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildArch: noarch
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
2023-08-21 20:02:36 +08:00
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: java-11-openjdk-devel
Requires: java-11-openjdk
Requires: javapackages-tools
2020-08-29 15:29:33 +08:00
%description
This package contains JBoss Class File Writer
%package help
Summary: Javadoc for %{name}
Provides: %{name}-javadoc = %{version}-%{release}
Obsoletes: %{name}-javadoc < %{version}-%{release}
%description help
This package contains the API documentation for %{name}.
%prep
2023-08-21 20:02:36 +08:00
%autosetup -n %{name}-%{namedversion} -p1
2020-08-29 15:29:33 +08:00
cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE
%build
2023-08-21 20:02:36 +08:00
export JAVA_HOME=%{_jvmdir}/java-11-openjdk
export CFLAGS="${RPM_OPT_FLAGS}"
export CXXFLAGS="${RPM_OPT_FLAGS}"
2020-08-29 15:29:33 +08:00
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE
%files help -f .mfiles-javadoc
%license LICENSE
%changelog
2023-08-21 20:02:36 +08:00
* Mon Aug 21 2023 yaoxin <yao_xin001@hoperun.com> - 1.3.0-1
- Update to 1.3.0
2022-05-19 11:34:02 +08:00
* Thu May 19 2022 Ge Wang <wangge20@h-partners.com> - 1.2.5-1
- upgrade to version 1.2.5
2020-08-29 15:29:33 +08:00
* Mon Aug 24 2020 huanghaitao <huanghaitao8@huawei.com> - 1.1.2-1
- package init