68 lines
2.1 KiB
RPMSpec
68 lines
2.1 KiB
RPMSpec
Name: java-checkstyle
|
|
Version: 8.42
|
|
Release: 1mamba
|
|
Summary: Java source code checker
|
|
Group: Development/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://checkstyle.sourceforge.io/
|
|
Source: https://github.com/checkstyle/checkstyle/archive/checkstyle-%{version}.tar.gz
|
|
Source1: checkstyle.sh
|
|
License: BSD, GPL, LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: apache-maven
|
|
BuildRequires: java-environment
|
|
BuildRequires: javapackages
|
|
Requires: javapackages
|
|
Obsoletes: %{name}-optional < 5.1
|
|
|
|
%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
|
|
%setup -q -n checkstyle-checkstyle-%{version}
|
|
|
|
%build
|
|
mvn -Passembly clean package
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
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
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/checkstyle
|
|
%{_javadir}/checkstyle-%{version}-all.jar
|
|
%{_javadir}/checkstyle.jar
|
|
%{_javadir}/checkstyle-all.jar
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Sun May 16 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.42-1mamba
|
|
- update to 8.42
|
|
|
|
* Sat Apr 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 8.41.1-1mamba
|
|
- update to 8.41.1
|
|
|
|
* 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
|