-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The application locales were not being included in the RPM. This PR rearranges the location of locales, bringing them up to a top level directory, and fixes up the installation process. Adds additional content to the man page and fixes an issue installing it #200. This also fixes up a few annoyances caused from the vendoring refactor in #730. Also adds a check stage to CI that performs a RPM install and displays the rpmdb metadata for it. More #715 Closes #720
- Loading branch information
Showing
10 changed files
with
67 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,7 @@ Tools to assist with the configuration and management of fapolicyd. | |
%prep | ||
%cargo_prep | ||
|
||
%autosetup -p0 -n %{name} | ||
%autosetup -n %{name} | ||
|
||
# throw out the checked-in lock | ||
# this build will use what is available from the local registry | ||
|
@@ -136,24 +136,23 @@ echo %{module_version} > VERSION | |
%install | ||
%{py3_install_wheel %{module}-%{module_version}*%{_arch}.whl} | ||
%{python3} help install --dest %{buildroot}/%{_datadir}/help | ||
install bin/%{name} %{buildroot}/%{_sbindir}/%{name} -D | ||
install data/fapolicy-analyzer.8 %{buildroot}/%{_mandir}/man8/* -D | ||
install -D bin/%{name} %{buildroot}/%{_sbindir}/%{name} | ||
install -D data/fapolicy-analyzer.8 -t %{buildroot}/%{_mandir}/man8/ | ||
desktop-file-install data/fapolicy-analyzer.desktop | ||
find locale -name %{name}.mo -exec cp --parents -rv {} %{buildroot}/%{_datadir} \; | ||
%find_lang %{name} --with-gnome | ||
|
||
%post | ||
update-desktop-database | ||
|
||
%check | ||
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop | ||
|
||
%files -n %{name} -f %{name}.lang | ||
%doc scripts/srpm/README | ||
%license LICENSE | ||
%{python3_sitearch}/%{module} | ||
%{python3_sitearch}/%{module}-%{module_version}* | ||
%attr(755,root,root) %{_sbindir}/fapolicy-analyzer | ||
%attr(644,root,root) %{_mandir}/man8/fapolicy-analyzer.8* | ||
%attr(755,root,root) %{_datadir}/applications/%{name}.desktop | ||
%attr(644,root,root) %{_mandir}/man8/* | ||
|
||
%changelog | ||
* Fri Dec 16 2022 John Wass <[email protected]> 1.0.0-1 | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[extract_messages] | ||
mapping_file = babel.cfg | ||
output_file = ./fapolicy_analyzer/locale/fapolicy_analyzer.pot | ||
input_dirs = ./fapolicy_analyzer/ui,./fapolicy_analyzer/glade | ||
input_dirs = fapolicy_analyzer/ui,fapolicy_analyzer/glade | ||
output_file = locale/fapolicy-analyzer.pot | ||
|
||
[compile_catalog] | ||
domain = fapolicy_analyzer | ||
directory = ./fapolicy_analyzer/locale | ||
domain = fapolicy-analyzer | ||
directory = locale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters