2019-11-14 10:32:45 +04:00
%define _unpackaged_files_terminate_build 1
Name : gpupdate
2020-04-20 02:56:47 +04:00
Version : 0.4.5
2020-01-16 17:34:40 +04:00
Release : alt1
2019-11-14 10:32:45 +04:00
Summary : GPT applier
2020-02-11 19:52:10 +04:00
License : GPLv3+
2019-11-14 10:32:45 +04:00
Group : Other
Url : http://git.altlinux.org/
BuildArch : noarch
Requires : control
2019-11-28 22:55:53 +04:00
Requires : local-policy >= 0.1.0
2019-11-15 16:37:46 +04:00
BuildRequires : rpm-build-python3
2019-12-20 00:45:47 +04:00
Requires : python3-module-rpm
2020-04-21 23:56:11 +04:00
Requires : python3-module-dbus
2020-01-30 10:39:17 +04:00
Requires : oddjob-%name >= 0.2.0
2020-04-16 04:33:00 +04:00
Requires : libnss-role >= 0.5.0
2020-04-20 04:24:33 +04:00
Requires : local-policy >= 0.3.0
2020-04-20 02:56:47 +04:00
Requires : pam-config >= 1.8
2020-04-21 23:56:43 +04:00
# This is needed by shortcuts_applier
Requires : desktop-file-utils
2019-11-14 10:32:45 +04:00
Source0 : %name-%version.tar
%description
2019-12-26 01:12:59 +04:00
gpupdate is the facility to apply various GPO/GPT settings retrieved
from Active Directory domain in UNIX environment.
2019-11-14 10:32:45 +04:00
%prep
%setup -q
%install
mkdir -p \
2019-11-15 16:37:46 +04:00
%buildroot%python3_sitelibdir/
2019-11-14 10:32:45 +04:00
cp -r gpoa \
2019-11-15 16:37:46 +04:00
%buildroot%python3_sitelibdir/
2019-11-14 10:32:45 +04:00
2019-11-17 21:55:28 +04:00
mkdir -p \
2020-01-10 23:48:15 +04:00
%buildroot%_bindir / \
2020-01-14 22:31:49 +04:00
%buildroot%_sbindir / \
%buildroot%_cachedir /%name/
2019-12-26 01:12:59 +04:00
ln -s %python3_sitelibdir/gpoa/gpoa \
2019-11-17 21:55:28 +04:00
%buildroot%_sbindir /gpoa
2019-12-26 01:12:59 +04:00
ln -s %python3_sitelibdir/gpoa/gpupdate \
%buildroot%_bindir /gpupdate
2020-03-23 16:14:25 +04:00
cp dist/gpupdate-setup \
%buildroot%_sbindir /gpupdate-setup
2019-11-17 21:55:28 +04:00
2019-11-28 22:06:32 +04:00
mkdir -p %buildroot%_datadir /%name
mv %buildroot%python3_sitelibdir/gpoa/templates \
%buildroot%_datadir /%name/
2019-11-28 00:36:10 +04:00
install -Dm0644 %name.service %buildroot%_unitdir /%name.service
2019-12-20 19:12:14 +04:00
install -Dm0644 %name.service %{buildroot} /usr/lib/systemd/user/%{name} -user.service
2019-12-20 01:29:25 +04:00
install -Dm0644 system-policy-%name %buildroot%_sysconfdir /pam.d/system-policy-%name
2020-01-20 17:43:17 +04:00
install -Dm0644 doc/gpoa.1 %buildroot/%{_man1dir}/gpoa.1
2020-01-22 15:54:44 +04:00
install -Dm0644 doc/gpupdate.1 %buildroot/%{_man1dir}/gpupdate.1
2019-11-28 00:36:10 +04:00
%preun
%preun _service gpupdate
%post
%post _service gpupdate
2019-11-14 10:32:45 +04:00
%files
2019-11-17 21:55:28 +04:00
%_sbindir /gpoa
2020-03-23 16:14:25 +04:00
%_sbindir /gpupdate-setup
2019-11-15 16:37:46 +04:00
%_bindir /gpupdate
2019-12-26 01:12:59 +04:00
%attr (755,root,root) %python3_sitelibdir/gpoa/gpoa
%attr (755,root,root) %python3_sitelibdir/gpoa/gpupdate
2019-11-15 16:37:46 +04:00
%python3_sitelibdir/gpoa
2019-11-28 22:06:32 +04:00
%_datadir /%name
2019-11-28 00:36:10 +04:00
%_unitdir /%name.service
2020-01-20 17:43:17 +04:00
%{_man1dir}/gpoa.1.xz
2020-01-22 15:54:44 +04:00
%{_man1dir}/gpupdate.1.xz
2019-12-20 19:12:14 +04:00
/usr/lib/systemd/user/%{name} -user.service
2019-12-20 01:29:25 +04:00
%_sysconfdir /pam.d/system-policy-%name
2020-01-14 22:31:49 +04:00
%dir %_cachedir /%name
2019-11-14 10:32:45 +04:00
%changelog
2020-04-20 02:56:47 +04:00
* Mon Apr 20 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.5-alt1
- Add support for control system-policy and requires to new pam-config
2020-04-19 12:45:42 +04:00
* Sun Apr 19 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.4-alt1
- Add gpupdate-setup initialization script supported local-policy profiles
2020-03-06 19:30:13 +04:00
* Fri Mar 06 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.3-alt1
- Fix polfile merging
- Add support controls with strings values
- Initial SIGINT signal handling
2020-02-19 16:35:25 +04:00
* Wed Feb 19 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.2-alt1
- Change service type to 'simple' because gpoa is not systemd-aware
- Shortcuts fixes and improvements
2020-02-12 19:52:40 +04:00
* Wed Feb 12 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.1-alt1
- Update license to GPLv3+
- Run gpudate as root without user argument for Computer target only
- Fix chromium applier
2020-01-30 10:39:17 +04:00
* Thu Jan 30 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.4.0-alt1
- Update release with first pack of stabilization fixes
2020-01-16 17:34:40 +04:00
* Thu Jan 16 2020 Evgeny Sinelnikov <sin@altlinux.org> 0.3.0-alt1
- Add user appliers support and machine gsettings apllier
- Add require to oddjob-gpupdate
2019-12-20 01:29:25 +04:00
* Fri Dec 20 2019 Evgeny Sinelnikov <sin@altlinux.org> 0.2.1-alt2
- Add support system-policy for PAM settings
2019-12-20 00:45:47 +04:00
* Thu Dec 19 2019 Evgeny Sinelnikov <sin@altlinux.org> 0.2.1-alt1
- Next part of refactoring
- Add simple support adp
2019-12-06 18:33:05 +04:00
* Fri Dec 06 2019 Igor Chudov <nir@altlinux.org> 0.2.0-alt1
- Code refactored to work with storage facility
- Retrieval of HKCU preferences implemented
- Numerous backend and frontend stability improvements
- Chromium and Firefox appliers implemented
2019-11-28 22:55:53 +04:00
* Thu Nov 28 2019 Evgeny Sinelnikov <sin@altlinux.org> 0.1.0-alt1
- Change license to GPLv2+
- Refactor and separate code to backend and frontend
2019-11-17 21:55:28 +04:00
* Sun Nov 17 2019 Evgeny Sinelnikov <sin@altlinux.org> 0.0.3-alt1
- Clean code, fix functionality (Initialize cache if missing, retrieve SIDs)
- Run GPO applier as /usr/sbin/gpoa
2019-11-15 12:54:31 +04:00
* Fri Nov 15 2019 Igor Chudov <nir@altlinux.org> 0.0.2-alt1
- Removed hreg dependency
- Introduced caches for SIDs and Registry.pol file paths
- gpupdate transformed into simple gpoa starter
- gpoa learned to work with username
- Introduced TDB manager in order to work with samba-regedit registry
- DC domain detection now uses native python-samba functions to query LDAP
2019-11-14 10:32:45 +04:00
* Thu Nov 14 2019 Igor Chudov <nir@altlinux.org> 0.0.1-alt1
- Initial release