mybatis-generator/mybatis-generator.spec
wang--ge 7145be420a upgrade to version 1.4.1
(cherry picked from commit d33e4975404ad9a7fd24b392c9ac91be9a22a2f7)
2022-10-19 17:23:25 +08:00

106 lines
3.1 KiB
RPMSpec

Name: mybatis-generator
Version: 1.4.1
Release: 1
Summary: A code generator for MyBatis and iBATIS
License: Apache-2.0
URL: http://www.mybatis.org/
Source0: https://github.com/mybatis/generator/archive/%{name}-%{version}.tar.gz
BuildRequires: mvn(log4j:log4j:1.2.17) mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-launcher) mvn(junit:junit)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.mybatis:mybatis) mvn(org.hsqldb:hsqldb)
BuildRequires: mvn(org.mybatis:mybatis-parent:pom:)
BuildRequires: mvn(org.apache.commons:commons-ognl)
BuildRequires: maven-local maven-enforcer-plugin maven-plugin-bundle
BuildRequires: maven-plugin-plugin maven-surefire-report-plugin
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.logging.log4j:log4j-api)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.reflections:reflections)
BuildRequires: mvn(org.hsqldb:hsqldb)
BuildArch: noarch
%description
MyBatis Generator (MBG) is a code generator for MyBatis and iBATIS.
%package maven-plugin
Summary: MyBatis Generator Maven Plugin
%description maven-plugin
MyBatis Generator Maven Plugin.
%package systests-common
Summary: MyBatis Generator Tests (Common Classes)
%description systests-common
MyBatis Generator Tests (Common Classes).
%package systests-mybatis3
Summary: MyBatis Generator Tests (MyBatis3)
%description systests-mybatis3
MyBatis Generator Tests (MyBatis3).
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n generator-%{name}-%{version}
mv core/* ./
rm -rf eclipse
rm -rf core
sed -i 's/<scope>test/<scope>compile/g' %{name}-systests-mybatis3/pom.xml
%pom_disable_module %{name}-systests-mybatis3-java8
%pom_disable_module %{name}-systests-kotlin
%pom_disable_module %{name}-systests-domtests
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-assembly-plugin %{name}-core
%pom_remove_plugin :maven-javadoc-plugin %{name}-core
%pom_remove_plugin :maven-site-plugin %{name}-core
%pom_remove_plugin :maven-source-plugin %{name}-core
%pom_add_dep org.apache.commons:commons-ognl::test mybatis-generator-systests-mybatis3
%pom_remove_plugin :kotlin-maven-plugin %{name}-core
%pom_remove_plugin :kotlin-maven-plugin
sed -i 's/\r//' LICENSE NOTICE %{name}-core/doc/*
%mvn_package ":%{name}" %{name}
%mvn_package ":%{name}-core" %{name}
%build
%mvn_build -s -f
%install
%mvn_install
%files -f .mfiles-%{name}
%doc %{name}-core/doc/*
%license LICENSE NOTICE
%files maven-plugin -f .mfiles-%{name}-maven-plugin
%license LICENSE NOTICE
%files systests-common -f .mfiles-%{name}-systests-common
%license LICENSE NOTICE
%files systests-mybatis3 -f .mfiles-%{name}-systests-mybatis3
%license LICENSE NOTICE
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%changelog
* Thu Jun 30 2022 Ge Wang <wangge20@h-partners.com> - 1.4.1-1
- Upgrade to version 1.4.1
* Mon May 10 2021 chengzihan <chengzihan2@huawei.com> - 1.3.2-1
- Package init