diff --git a/CODEGEN_0_6_8.tar.gz b/CODEGEN_0_6_8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8b2285dfac89bf6dcc26a045b49f39672c78c787 Binary files /dev/null and b/CODEGEN_0_6_8.tar.gz differ diff --git a/codegen.spec b/codegen.spec new file mode 100644 index 0000000000000000000000000000000000000000..4ca009fcca99b650a54c5e4cc0eb312d9bb0b73d --- /dev/null +++ b/codegen.spec @@ -0,0 +1,81 @@ +%global _version %( echo %{version} | tr . _ ) +Name: codegen +Version: 0.6.8 +Release: 1 +Summary: Java/Scala Code generation tool +License: ASL 2.0 +URL: http://www.querydsl.com +Source0: https://github.com/mysema/codegen/archive/CODEGEN_%{_version}.tar.gz +BuildRequires: maven-local mvn(com.google.guava:guava) mvn(javax.validation:validation-api) +BuildRequires: mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.eclipse.jdt.core.compiler:ecj) +BuildArch: noarch + +%description +Code generation and compilation for Java. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n %{name}-CODEGEN_%{_version} +%pom_remove_parent +%pom_remove_plugin com.springsource.bundlor:com.springsource.bundlor.maven +%pom_add_plugin org.apache.felix:maven-bundle-plugin . ' + + + Codegen + com.mysema.codegen + Mysema + com.mysema.codegen*;version="${project.version}" + + javax.annotation.*;version="0", + javax.tools.*;version="0", + org.eclipse.jdt.*;version="3.7.2", + com.google.common.*;version="${guava.version}", + * + + + + + + bundle-manifest + process-classes + + manifest + + +' +%pom_xpath_remove "pom:useDefaultManifestFile" +%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration" ' + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF +' +sed -i.javax.validation "s|ConstraintPayload|Payload|" \ + src/test/java/com/mysema/codegen/MaxImpl.java \ + src/test/java/com/mysema/codegen/MinImpl.java \ + src/test/java/com/mysema/codegen/NotNullImpl.java +sed -i.ecj4.6 "s|Map settings|Map settings|" \ + src/main/java/com/mysema/codegen/ECJEvaluatorFactory.java + +%mvn_file com.mysema.codegen:%{name} %{name} + +%build +%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 + +%install +%mvn_install + +%files -f .mfiles +%doc README.md +%license LICENSE.txt + +%files javadoc -f .mfiles-javadoc +%license LICENSE.txt + +%changelog +* Fri Aug 14 2020 leiju - 0.6.8-1 +- Package init diff --git a/codegen.yaml b/codegen.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5cbd6f8b0c099fa1842b5a35c2c10fe39885c94e --- /dev/null +++ b/codegen.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: querydsl/codegen +tag_prefix: "CODEGEN_" +seperator: "_"