KF2-SRV/SPECS/kf2-srv.spec

212 lines
6.7 KiB
RPMSpec
Raw Normal View History

2020-07-08 22:40:18 +00:00
%global steamuser steam
2020-07-08 23:02:30 +00:00
Name: kf2-srv
2020-08-14 11:59:43 +00:00
Version: 0.15.1
2020-08-13 02:44:02 +00:00
Release: 1%{dist}
2020-07-08 23:02:30 +00:00
Summary: Killing Floor 2 server
Group: Amusements/Games
License: GNU GPLv3
BuildArch: noarch
2020-07-29 16:16:01 +00:00
Source0: %{name}-%{version}.tar.gz
2020-07-08 23:02:30 +00:00
2020-08-10 11:27:46 +00:00
# test deps
BuildRequires: systemd
2020-08-07 07:56:51 +00:00
BuildRequires: systemd-rpm-macros
2020-08-10 11:27:46 +00:00
BuildRequires: libxml2
2020-08-07 07:56:51 +00:00
2020-07-08 23:02:30 +00:00
Requires: systemd >= 219
Requires: steamcmd >= 2018.01.05-5
2020-07-08 23:02:30 +00:00
Requires: libxml2
Requires: dos2unix
Requires: curl
Requires: grep
Requires: coreutils
Requires: sed
Requires: util-linux
Requires: sudo
Requires: psmisc
Requires: gawk
Requires: multini >= 0.2.3
2020-07-08 23:06:14 +00:00
Requires: rsyslog >= 8.25.0
Requires: logrotate
Requires: inotify-tools
2020-08-13 02:44:02 +00:00
Requires: bash-completion >= 2.7
2020-07-08 23:02:30 +00:00
Provides: %{name}
2020-07-08 22:25:08 +00:00
%description
2020-07-08 22:38:11 +00:00
Command line tool for managing a set of Killing Floor 2 servers.
2020-07-08 22:25:08 +00:00
%prep
2020-08-01 20:05:51 +00:00
%setup -q -c
2020-07-08 22:25:08 +00:00
%build
%install
rm -rf $RPM_BUILD_ROOT
2020-08-08 03:38:20 +00:00
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
2020-07-08 22:25:08 +00:00
2020-07-19 04:58:23 +00:00
%check
2020-08-08 03:38:20 +00:00
make test DESTDIR=%{buildroot} PREFIX=%{_prefix}
2020-07-19 04:58:23 +00:00
2020-07-08 22:25:08 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%files
%attr(0775,root,%{steamuser}) %dir %{_prefix}/games/%{name}
%attr(0775,root,%{steamuser}) %dir %{_prefix}/games/%{name}-beta
%attr(0775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}
%attr(0775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}/instances
%attr(0775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}/instances-beta
%attr(0775,root,%{steamuser}) %dir %{_sysconfdir}/%{name}/mapcycles
%attr(0775,root,%{steamuser}) %dir %{_localstatedir}/log/%{name}
%attr(0775,root,%{steamuser}) %dir %{_localstatedir}/log/%{name}-beta
2020-07-19 04:58:23 +00:00
%attr(0775,root,%{steamuser}) %dir %{_localstatedir}/cache/kf2-srv
2020-08-07 07:56:51 +00:00
%attr(0775,root,root) %dir %{_datadir}/%{name}
%attr(0775,root,root) %dir %{_datadir}/%{name}/cmdgrp
2020-08-07 11:31:35 +00:00
%attr(0755,root,root) %dir %{_datadir}/%{name}/cmdgrp/*
2020-08-07 07:56:51 +00:00
%attr(0775,root,root) %dir %{_datadir}/%{name}/lib
2020-07-13 02:04:36 +00:00
%attr(0664,root,%{steamuser}) %config(noreplace) %{_sysconfdir}/%{name}/instance.conf.template
%attr(0664,root,%{steamuser}) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%attr(0640,root,%{steamuser}) %config(noreplace) %{_sysconfdir}/%{name}/bot.conf
%attr(0644,root,root) %config(noreplace) %{_prefix}/lib/firewalld/services/%{name}.xml
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_bindir}/%{name}-beta
2020-07-12 23:35:29 +00:00
%attr(0755,root,root) %{_sbindir}/%{name}-force-attr
%attr(0644,root,root) %{_unitdir}/*
%attr(0644,root,root) %doc %{_datadir}/licenses/%{name}/*
%attr(0644,root,root) %{_sysconfdir}/rsyslog.d/%{name}.conf
%attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}
2020-08-07 11:31:35 +00:00
%attr(0644,root,root) %{_datadir}/%{name}/cmdgrp/*/*
2020-08-07 07:56:51 +00:00
%attr(0644,root,root) %{_datadir}/%{name}/lib/*
2020-08-13 02:44:02 +00:00
%attr(0644,root,root) %{_sysconfdir}/bash_completion.d/%{name}
2020-07-08 22:25:08 +00:00
%preun
if [[ $1 -eq 0 ]] ; then # Uninstall
2020-08-08 00:47:28 +00:00
%{_bindir}/%{name} instance stop
%{_bindir}/%{name} instance disable
2020-07-08 22:25:08 +00:00
rm -rf %{_prefix}/games/%{name}/*
2020-07-08 22:56:38 +00:00
rm -rf %{_prefix}/games/%{name}-beta/*
rm -rf %{_sysconfdir}/%{name}/instances/default
rm -rf %{_sysconfdir}/%{name}/instances-beta/default
2020-07-19 04:58:23 +00:00
rm -rf %{_localstatedir}/cache/kf2-srv/*
2020-07-08 22:25:08 +00:00
fi
2020-07-08 23:06:14 +00:00
%post
2020-07-19 04:58:23 +00:00
if [[ $1 == 1 ]]; then # Install
systemctl daemon-reload
systemctl try-restart rsyslog.service
fi
2020-07-08 23:06:14 +00:00
2020-07-08 22:25:08 +00:00
%changelog
2020-08-14 11:59:43 +00:00
* Thu Aug 14 2020 GenZmeY <genzmey@gmail.com> - 0.15.1-1
- fix bash completion for kf2-srv-beta.
2020-08-13 02:44:02 +00:00
* Thu Aug 13 2020 GenZmeY <genzmey@gmail.com> - 0.15.0-1
- bash completion support.
2020-08-10 11:16:53 +00:00
* Mon Aug 10 2020 GenZmeY <genzmey@gmail.com> - 0.14.1-2
- github-actions build.
2020-08-08 05:28:44 +00:00
* Sat Aug 8 2020 GenZmeY <genzmey@gmail.com> - 0.14.1-1
- parallel actions for instance list.
2020-08-08 03:45:31 +00:00
* Sat Aug 8 2020 GenZmeY <genzmey@gmail.com> - 0.14.0-1
- new usage (groups/commands);
- new code structure;
- build system;
- tests;
- parallel actions;
- short english description.
2020-07-19 04:58:23 +00:00
* Sun Jul 19 2020 GenZmeY <genzmey@gmail.com> - 0.13.0-1
- /var/cache to store the workshop cache;
- fixed endless downloading of workshop items that tripware gave us in PC Build 1099 patch;
- using ForcePermissions when creating instances;
- add %check section to specfile.
2020-07-13 02:04:36 +00:00
* Mon Jul 13 2020 GenZmeY <genzmey@gmail.com> - 0.12.1-1
- rename main.conf to instance.conf.
2020-07-12 23:35:29 +00:00
* Mon Jul 13 2020 GenZmeY <genzmey@gmail.com> - 0.12.0-1
- chat logs without timestamp;
- update rsyslog config - now logs will be create with steam group and 640 permissions;
- update logrotate config (fixed that logrotate does nothing);
2020-07-12 23:35:29 +00:00
- bot password in separate file without read permission to others;
- feat: force attr for log/ini files.
2020-07-09 19:25:09 +00:00
* Thu Jul 9 2020 GenZmeY <genzmey@gmail.com> - 0.11.1-1
- fix syntax error in firewalld service.
2020-07-08 23:06:14 +00:00
* Wed Jul 8 2020 GenZmeY <genzmey@gmail.com> - 0.11.0-1
- logging (rsyslog + logrotate).
2020-07-08 23:03:57 +00:00
* Wed Jul 8 2020 GenZmeY <genzmey@gmail.com> - 0.10.1-1
- add COPYING to distributive;
- add license info to kf2-srv-beta;
- spec fixes;
2020-07-08 23:02:30 +00:00
* Mon Jun 22 2020 GenZmeY <genzmey@gmail.com> - 0.10.0-1
- separate mutators setting;
- mutator column in server list;
- chat notifications on restart for updates;
- unban on working servers;
- refactoring.
2020-07-08 23:00:53 +00:00
* Sun May 31 2020 GenZmeY <genzmey@gmail.com> - 0.9.1-1
- fix realtime -mrl with spaces;
- mapcycles directory.
2020-07-08 22:59:33 +00:00
* Wed May 27 2020 GenZmeY <genzmey@gmail.com> - 0.9.0-1
- new main.conf format;
- multiple WebAdmin and http auth by default;
- online actions;
- chat-bot;
- set password;
- refactoring.
2020-07-08 22:58:10 +00:00
* Mon Apr 27 2020 GenZmeY <genzmey@gmail.com> - 0.8.0-1
- use multini for ini edit;
- add mutators support;
- refactoring;
- returned "reboot-updates".
2020-07-08 22:56:38 +00:00
* Sat Mar 7 2020 GenZmeY <genzmey@gmail.com> - 0.7.0-1
- dual versions support;
- check updates;
- bugfixes.
2020-07-08 22:53:47 +00:00
* Sat Jan 18 2020 GenZmeY <genzmey@gmail.com> - 0.6.0-1
- versions;
- instance conf tweaks;
- extended map list;
- clear cache on delete map;
- removed useless messages.
2020-07-08 22:52:17 +00:00
* Sun Jan 12 2020 GenZmeY <genzmey@gmail.com> - 0.5.0-1
- ban admin;
- map admin;
- multiple args support.
2020-07-08 22:50:08 +00:00
* Sun Sep 29 2019 GenZmeY <genzmey@gmail.com> - 0.4.0-1
- Reworked main.template and kf2-srv@.service;
- Add --restart option;
- --status option shows more info;
- --list option removed.
2020-07-08 22:40:18 +00:00
* Fri Sep 20 2019 GenZmeY <genzmey@gmail.com> - 0.3.0-1
- validate option;
- auto validate on change active branch;
- port info on --status.
2020-07-08 22:38:11 +00:00
* Mon Sep 16 2019 GenZmeY <genzmey@gmail.com> - 0.2.1-1
- --map-sync bugfixes.
2020-07-08 22:30:25 +00:00
* Mon Sep 16 2019 GenZmeY <genzmey@gmail.com> - 0.2.0-1
- Add --map-sync implementation to kf2-srv.
2020-07-08 22:25:08 +00:00
* Sat Sep 14 2019 GenZmeY <genzmey@gmail.com> - 0.1.0-1
- First version of spec.