diff --git a/apache-commons-csv.spec b/apache-commons-csv.spec new file mode 100644 index 0000000000000000000000000000000000000000..8f1f2ac952a1ce546afd21c418099a756d812597 --- /dev/null +++ b/apache-commons-csv.spec @@ -0,0 +1,51 @@ +Name: apache-commons-csv +Version: 1.5 +Release: 1 +Summary: Utilities to assist with handling of CSV files +License: ASL 2.0 +URL: https://commons.apache.org/proper/commons-csv/ +BuildArch: noarch +Source0: http://www.apache.org/dist/commons/csv/source/commons-csv-%{version}-src.tar.gz +BuildRequires: maven-local mvn(commons-io:commons-io) mvn(junit:junit) +BuildRequires: mvn(org.apache.commons:commons-lang3) +BuildRequires: mvn(org.apache.commons:commons-parent:pom:) +BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) + +%description +Commons CSV was started to unify a common and simple interface for +reading and writing CSV files under an ASL license. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n commons-csv-%{version}-src +sed -i 's/\r//' *.txt +find -name profile.jacoco -delete +%pom_remove_plugin :maven-assembly-plugin +%pom_remove_plugin :apache-rat-plugin +%pom_remove_plugin :maven-checkstyle-plugin +%pom_remove_dep :h2 +rm src/test/java/org/apache/commons/csv/CSVPrinterTest.java +%mvn_file ":{*}" %{name} @1 +%mvn_alias : commons-csv: + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc RELEASE-NOTES.txt +%license LICENSE.txt NOTICE.txt + +%files javadoc -f .mfiles-javadoc +%license LICENSE.txt NOTICE.txt + +%changelog +* Sat Jul 25 2020 chengzihan - 1.5-1 +- Package init diff --git a/apache-commons-csv.yaml b/apache-commons-csv.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bacf000f4ca3981da829f29e3cdc6f29393412e3 --- /dev/null +++ b/apache-commons-csv.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/apache/commons-csv.git +version_control: github +src_repo: apache/commons-csv +tag_prefix: "commons-csv-" +seperator: "." diff --git a/commons-csv-1.5-src.tar.gz b/commons-csv-1.5-src.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..31c143ce86333b25c67f97e771f8da6ddc4a1e20 Binary files /dev/null and b/commons-csv-1.5-src.tar.gz differ