From a375ae854bd47c21e7e8a6c66ac27e5f2dfa9880 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Mon, 8 May 2023 11:44:51 +0200 Subject: [PATCH] import sources --- .gitignore | 1 + java-comment-preprocessor.spec | 107 +++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 109 insertions(+) create mode 100644 .gitignore create mode 100644 java-comment-preprocessor.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01263e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/java-comment-preprocessor-6.0.1.tar.gz diff --git a/java-comment-preprocessor.spec b/java-comment-preprocessor.spec new file mode 100644 index 0000000..4e53bf1 --- /dev/null +++ b/java-comment-preprocessor.spec @@ -0,0 +1,107 @@ +%if 0%{?fedora} +%bcond_without tests +%else +%bcond_with tests +%endif + +%global section devel + +Summary: The Most Powerful Multi-Pass Java Preprocessor +Name: java-comment-preprocessor +Version: 6.0.1 +Release: 9%{?dist} +License: ASL 2.0 + +URL: https://github.com/raydac/java-comment-preprocessor +Source0: https://github.com/raydac/%name/archive/%version/%name-%version.tar.gz + +BuildArch: noarch + +BuildRequires: maven-local +BuildRequires: mvn(commons-io:commons-io) +BuildRequires: mvn(org.apache.ant:ant) +BuildRequires: mvn(org.apache.commons:commons-lang3) +BuildRequires: mvn(org.apache.maven:maven-core) +BuildRequires: mvn(org.apache.maven:maven-plugin-api) +BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) +BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations) +BuildRequires: mvn(org.apache.maven.shared:file-management) +BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin) +%if %{with tests} +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.ant:ant-testutil) +BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness) +BuildRequires: mvn(org.apache.maven.shared:maven-shared-jar) +BuildRequires: mvn(org.apache.maven.shared:maven-verifier) +BuildRequires: mvn(org.mockito:mockito-all) +%endif + +%description +It is the most powerful multi-pass preprocessor for Java +but also it can be used everywhere for text processing +if the destination technology supports Java like comment definitions. + +%package javadoc +Summary: API docs for %{name} + +%description javadoc +This package contains the API Documentation for %{name}. + +%prep +%autosetup + +# remove unpackaged and dangerous deps +%pom_remove_plugin :animal-sniffer-maven-plugin pom.xml +%pom_remove_plugin :maven-shade-plugin pom.xml + +# remove any binary libs +find -name "*.jar" -or -name "*.class" | xargs rm -f + +%build +%if %{with tests} +%mvn_build +%else +%mvn_build -f +%endif + +%install +%mvn_install + +%files -f .mfiles +%license texts/LICENSE-2.0.txt +%doc texts/readme.txt + +%files javadoc -f .mfiles-javadoc +%license texts/LICENSE-2.0.txt + +%changelog +* Wed May 30 2018 Pavel Raiskup - 6.0.1-9 +- use better upstream tarball name + +* Wed May 30 2018 Mikolaj Izdebski - 6.0.1-9 +- Disable tests and regenerate BRs + +* Wed Feb 07 2018 Fedora Release Engineering - 6.0.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 29 2018 Merlin Mathesius - 6.0.1-7 +- Add missing BuildRequires to fix FTBFS + +* Wed Jul 26 2017 Fedora Release Engineering - 6.0.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 6.0.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Dec 16 2016 Merlin Mathesius - 6.0.1-4 +- Add missing BuildRequires to fix FTBFS (BZ#1405633). + +* Fri Apr 15 2016 Pavel Kajaba - 6.0.1-3 +- Deleted unused and dangerous dependencies (review rhbz#1297347) + +* Thu Apr 14 2016 Pavel Raiskup - 6.0.1-2 +- don't require jpackage-utils (review rhbz#1297347) + +* Tue Jan 5 2016 Pavel Kajaba - 6.0.1-1 +- Initial creation of java-comment-preprocessor package diff --git a/sources b/sources new file mode 100644 index 0000000..9b92222 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (java-comment-preprocessor-6.0.1.tar.gz) = 4fd3b761182dfb807c6654f461e088ea25942b85736a6a4c99bf9db06c6d738b9fd6c21868b30d899dc298a169a4c2694989331cb61bffa10a9746e1fc141a50