65 lines
2.0 KiB
RPMSpec
65 lines
2.0 KiB
RPMSpec
Name: java-checkstyle
|
|
Version: 8.41.1
|
|
Release: 1mamba
|
|
Summary: Java source code checker
|
|
Group: Development/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://checkstyle.sourceforge.net/
|
|
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
|
|
* 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
|