fix locale files installation

(cherry picked from commit f4141e7fa69a5b5f1beb6c3b27d61c9fb0d4d6c0)
This commit is contained in:
Funda Wang 2024-12-05 11:53:47 +08:00 committed by openeuler-sync-bot
parent b668594b36
commit 181503669c

View File

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