use find_lang over manual filegobbling

OBS-URL: https://build.opensuse.org/package/show/filesystems/libmirage?expand=0&rev=45
This commit is contained in:
Jan Engelhardt 2017-08-07 19:35:41 +00:00 committed by Git OBS Bridge
parent 1892bd69e1
commit 967fb1396b

View File

@ -145,6 +145,7 @@ make %{?_smp_mflags}
%install %install
%cmake_install %cmake_install
%find_lang %name
%post -n %lname -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
@ -184,9 +185,8 @@ make %{?_smp_mflags}
%if 0%{?suse_version} > 1110 %if 0%{?suse_version} > 1110
%_datadir/gir-1.0 %_datadir/gir-1.0
%files lang %files lang -f %name.lang
%defattr(-,root,root) %defattr(-,root,root)
%_datadir/locale/*/LC*/*.mo
%files -n typelib-1_0-libmirage-%pname %files -n typelib-1_0-libmirage-%pname
%defattr(-,root,root) %defattr(-,root,root)