ipscan/ext/rpmbuild/SPECS/ipscan.spec
2018-12-03 00:09:21 +02:00

43 lines
1.5 KiB
RPMSpec

Summary: Angry IP Scanner - fast and friendly network scanner
Name: ipscan
Version: VERSION
Release: 1%{?dist}
License: GPLv2+
Group: Applications/Internet
BuildRoot: %{_builddir}/%{name}
URL: https://angryip.org/
Packager: Anton Keks
Requires: jre >= 1.7.0
%description
Angry IP Scanner is a cross-platform network scanner written in Java.
It can scan IP-based networks in any range, scan ports, and resolve
other information.
The program provides an easy to use GUI interface and is very extensible,
see https://angryip.org/ for more information.
%prep
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/ipscan $RPM_BUILD_ROOT/%{_datadir}/applications $RPM_BUILD_ROOT/%{_datadir}/pixmaps $RPM_BUILD_ROOT/%{_bindir}
cp ../../%{name}-%{platform}-%{version}.jar $RPM_BUILD_ROOT/%{_libdir}/ipscan/
cp ../../../../ext/deb-bundle/usr/share/applications/ipscan.desktop $RPM_BUILD_ROOT/%{_datadir}/applications/
cp ../../../../resources/images/icon128.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/ipscan.png
echo "#/bin/sh" > $RPM_BUILD_ROOT/%{_bindir}/ipscan
echo "java -jar %{_libdir}/ipscan/ipscan*.jar" >> $RPM_BUILD_ROOT/%{_bindir}/ipscan
chmod a+x $RPM_BUILD_ROOT/%{_bindir}/ipscan
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_libdir}/ipscan/%{name}-%{platform}-%{version}.jar
%{_datadir}/applications/ipscan.desktop
%{_datadir}/pixmaps/ipscan.png
%{_bindir}/ipscan