106 lines
3.1 KiB
RPMSpec
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
|