!31 [sync] PR-26: fix locale files installation

From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2024-12-06 06:06:49 +00:00 committed by Gitee
commit 372cc4e0f8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: newt
Version: 0.52.23
Release: 2
Release: 3
Summary: A library for text mode user interfaces
License: LGPL-2.0-only
URL: https://pagure.io/newt
@ -54,40 +54,37 @@ docbook2txt tutorial.sgml
%install
%make_install
rm -f $RPM_BUILD_ROOT%{_libdir}/libnewt.a
%delete_la_and_a
%find_lang %{name}
%check
make test
%make_build test
%ldconfig_scriptlets
%files
%defattr(-,root,root)
%files -f %{name}.lang
%doc AUTHORS README
%license COPYING
%{_bindir}/*
%{_datadir}/locale
%{_libdir}/libnewt.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/newt*
%{_libdir}/libnewt.so
%{_libdir}/pkgconfig/*
%files -n python3-newt
%defattr(-,root,root)
%doc peanuts.py popcorn.py
%{python3_sitearch}/*.*
%{python3_sitearch}/__pycache__/*.py*
%files help
%defattr(-,root,root)
%doc tutorial.* CHANGES
%{_mandir}/man1/whiptail.1*
%changelog
* Thu Dec 05 2024 Funda Wang <fundawang@yeah.net> - 0.52.23-3
- fix locale files installation
* Thu Aug 01 2024 yanglu <yanglu72@h-partners.com> - 0.52.23-2
- Type:bugfix
- Id:NA