63 lines
1.4 KiB
RPMSpec
Executable File
63 lines
1.4 KiB
RPMSpec
Executable File
# $Id: ctc_thp.spec 20691 2014-08-07 13:35:12Z ehrlicher $
|
|
# $HeadURL: svn://slssvn/TDS/branches/tes_uae/devel/trunk/specs/ctc_thp.spec $
|
|
#
|
|
# Von Hand auszufuellen - Version und Release anpassen!
|
|
# cd ../../Lts/Proxies/HighLevelArchitecture/
|
|
# tar cvzf ~/rpmbuild/SOURCES/ctc_mak_rti_srv.tgz makConfig
|
|
# cd -
|
|
# rpmbuild --target=noarch -ba ctc_mak_rti_srv.spec
|
|
#
|
|
Summary: License Manager for MAK RTI
|
|
Name: ctc_mak_rti_lm
|
|
Version: 1.0
|
|
Release: 1
|
|
License: proprietary
|
|
Group: Applications/Communications
|
|
Source: ctc_mak_rti_lm.tgz
|
|
Prefix: /
|
|
Vendor: Rheinmetall Electronis GmbH
|
|
URL: http://www.rheinmetall-electronics.de
|
|
Packager: ctc
|
|
AutoReqProv: yes
|
|
|
|
Requires: aksusbd
|
|
# needed for aksusbd
|
|
Requires: glibc-32bit
|
|
|
|
%description
|
|
License Manager for MAK RTI
|
|
|
|
%changelog
|
|
#* date +"%a %b %d %Y" text
|
|
* Thu Sep 05 2019 CE
|
|
- initial
|
|
|
|
%prep
|
|
%setup -q -n mak-LicenseManager
|
|
echo "prep done"
|
|
|
|
%build
|
|
|
|
%install
|
|
instdir="$RPM_BUILD_ROOT/opt/NGS/mak-LicenseManager/"
|
|
mkdir -p ${instdir}
|
|
cp -d %{_builddir}/%{buildsubdir}/* "$instdir"
|
|
|
|
%clean
|
|
%{__rm} -rf '%{buildroot}'
|
|
|
|
%files
|
|
%defattr(-,root,root,755)
|
|
/opt/NGS/mak-LicenseManager/
|
|
%attr(755,-,-) /opt/NGS/mak-LicenseManager/ctc_mak_rti_lm_systemd
|
|
|
|
%preun
|
|
if [ $1 -eq 0 ]; then # execute only during uninstall, not when upgrading
|
|
systemctl stop ctc_mak_rti_lm.service
|
|
systemctl disable ctc_mak_rti_lm.service
|
|
fi
|
|
|
|
%post
|
|
systemctl link /opt/NGS/mak-LicenseManager/ctc_mak_rti_lm.service
|
|
systemctl restart ctc_mak_rti_lm.service
|