diff --git a/README.md b/README.md index deb7ad3..e30cec3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # java-commons-io +IO related classes for Java. + diff --git a/java-commons-io.spec b/java-commons-io.spec new file mode 100644 index 0000000..6d20b56 --- /dev/null +++ b/java-commons-io.spec @@ -0,0 +1,45 @@ +Name: java-commons-io +Version: 2.15.0 +Release: 1mamba +Summary: IO related classes for Java +Group: System/Libraries/Java +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://commons.apache.org/proper/commons-io/ +Source: https://downloads.apache.org/commons/io/binaries/commons-io-%{version}-bin.tar.gz +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: javapackages +Provides: jakarta-commons-io +Obsoletes: jakarta-commons-io <= 1.4 +Obsoletes: jakarta-commons-io-gcj <= 1.4 +Requires: java-runtime + +%description +IO related classes for Java. + +%prep +%setup -q -n commons-io-%{version} + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -Dm 644 commons-io-%{version}.jar %{buildroot}%{_javadir}/commons-io/commons-io-%{version}.jar +ln -s commons-io-%{version}.jar %{buildroot}%{_javadir}/commons-io/commons-io.jar + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{_javadir}/commons-io +%{_javadir}/commons-io/commons-io.jar +%{_javadir}/commons-io/commons-io-%{version}.jar +%doc LICENSE.txt + +%changelog +* Sat Oct 28 2023 Silvan Calarco 2.15.0-1mamba +- package created using the webbuild interface