2024-01-06 00:03:08 +01:00
|
|
|
Name: java-checkstyle
|
2024-01-06 00:03:09 +01:00
|
|
|
Version: 8.42
|
2024-01-06 00:03:08 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Java source code checker
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 00:03:09 +01:00
|
|
|
URL: https://checkstyle.sourceforge.io/
|
2024-01-06 00:03:08 +01:00
|
|
|
Source: https://github.com/checkstyle/checkstyle/archive/checkstyle-%{version}.tar.gz
|
|
|
|
Source1: checkstyle.sh
|
2024-01-06 00:03:08 +01:00
|
|
|
License: BSD, GPL, LGPL
|
2024-01-06 00:03:08 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: apache-maven
|
|
|
|
BuildRequires: java-environment
|
|
|
|
BuildRequires: javapackages
|
|
|
|
Requires: javapackages
|
|
|
|
Obsoletes: %{name}-optional < 5.1
|
2024-01-06 00:03:08 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Sun Code Conventions, but is highly configurable.
|
|
|
|
It can be invoked with an ANT task and a command line program.
|
|
|
|
|
|
|
|
%prep
|
2024-01-06 00:03:08 +01:00
|
|
|
%setup -q -n checkstyle-checkstyle-%{version}
|
2024-01-06 00:03:08 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 00:03:08 +01:00
|
|
|
mvn -Passembly clean package
|
|
|
|
|
2024-01-06 00:03:08 +01:00
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 00:03:08 +01:00
|
|
|
install -d -m0755 %{buildroot}%{_javadir}
|
|
|
|
install -d -m0755 %{buildroot}%{_bindir}
|
|
|
|
install -D -m755 %{SOURCE1} %{buildroot}%{_bindir}/checkstyle
|
|
|
|
install -D -m644 target/checkstyle-%{version}-all.jar %{buildroot}%{_javadir}/checkstyle-%{version}-all.jar
|
|
|
|
ln -s checkstyle-%{version}-all.jar %{buildroot}%{_javadir}/checkstyle-all.jar
|
|
|
|
ln -s checkstyle-%{version}-all.jar %{buildroot}%{_javadir}/checkstyle.jar
|
2024-01-06 00:03:08 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/checkstyle
|
2024-01-06 00:03:08 +01:00
|
|
|
%{_javadir}/checkstyle-%{version}-all.jar
|
2024-01-06 00:03:08 +01:00
|
|
|
%{_javadir}/checkstyle.jar
|
|
|
|
%{_javadir}/checkstyle-all.jar
|
2024-01-06 00:03:08 +01:00
|
|
|
%doc LICENSE
|
2024-01-06 00:03:08 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 00:03:09 +01:00
|
|
|
* Sun May 16 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.42-1mamba
|
|
|
|
- update to 8.42
|
|
|
|
|
2024-01-06 00:03:08 +01:00
|
|
|
* Sat Apr 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.41.1-1mamba
|
|
|
|
- update to 8.41.1
|
|
|
|
|
2024-01-06 00:03:08 +01:00
|
|
|
* Mon Feb 28 2011 gil <puntogil@libero.it> 5.3-1mamba
|
|
|
|
- update to 5.3
|
|
|
|
|
|
|
|
* Sat Jun 06 2009 gil <puntogil@libero.it> 5.0-1mamba
|
|
|
|
- update to 5.0
|
|
|
|
- renamed to legacy java-checkstyle5
|
|
|
|
|
|
|
|
* Sat Mar 07 2009 gil <puntogil@libero.it> 4.1-1mamba
|
|
|
|
- package created by autospec
|