Commit 7585bea563b6632eecd7c6f6eba010ba511073ff
1 parent
d9eb3941
Exists in
master
Adding translation file and metainfo the rpm package.
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
rpm/libhllapi.spec
| @@ -16,6 +16,8 @@ | @@ -16,6 +16,8 @@ | ||
| 16 | # Please submit bugfixes or comments via http://bugs.opensuse.org/ | 16 | # Please submit bugfixes or comments via http://bugs.opensuse.org/ |
| 17 | # | 17 | # |
| 18 | 18 | ||
| 19 | +%define product %(pkg-config --variable=product_name lib3270) | ||
| 20 | + | ||
| 19 | #---[ Package header ]------------------------------------------------------------------------------------------------ | 21 | #---[ Package header ]------------------------------------------------------------------------------------------------ |
| 20 | 22 | ||
| 21 | Summary: HLLAPI client library for lib3270/pw3270 | 23 | Summary: HLLAPI client library for lib3270/pw3270 |
| @@ -23,7 +25,7 @@ Name: libhllapi | @@ -23,7 +25,7 @@ Name: libhllapi | ||
| 23 | Version: 5.3 | 25 | Version: 5.3 |
| 24 | Release: 0 | 26 | Release: 0 |
| 25 | License: LGPL-3.0 | 27 | License: LGPL-3.0 |
| 26 | -Source: %{name}-%{version}.tar.xz | 28 | +Source: %{name}-%{version}.tar.xz |
| 27 | 29 | ||
| 28 | Url: https://github.com/PerryWerneck/libhllapi.git | 30 | Url: https://github.com/PerryWerneck/libhllapi.git |
| 29 | 31 | ||
| @@ -102,8 +104,9 @@ make all | @@ -102,8 +104,9 @@ make all | ||
| 102 | rm -rf $RPM_BUILD_ROOT | 104 | rm -rf $RPM_BUILD_ROOT |
| 103 | 105 | ||
| 104 | %makeinstall | 106 | %makeinstall |
| 107 | +%find_lang %{name}-%{MAJOR_VERSION}.%{MINOR_VERSION} langfiles | ||
| 105 | 108 | ||
| 106 | -%files -n %{name}%{_libvrs} | 109 | +%files -n %{name}%{_libvrs} -f langfiles |
| 107 | %defattr(-,root,root) | 110 | %defattr(-,root,root) |
| 108 | 111 | ||
| 109 | # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros | 112 | # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros |
| @@ -115,6 +118,7 @@ rm -rf $RPM_BUILD_ROOT | @@ -115,6 +118,7 @@ rm -rf $RPM_BUILD_ROOT | ||
| 115 | %endif | 118 | %endif |
| 116 | 119 | ||
| 117 | %{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION} | 120 | %{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION} |
| 121 | +%{_datadir}/appdata/*.metainfo.xml | ||
| 118 | 122 | ||
| 119 | %files devel | 123 | %files devel |
| 120 | %defattr(-,root,root) | 124 | %defattr(-,root,root) |
| @@ -122,6 +126,7 @@ rm -rf $RPM_BUILD_ROOT | @@ -122,6 +126,7 @@ rm -rf $RPM_BUILD_ROOT | ||
| 122 | %{_libdir}/%{name}.so | 126 | %{_libdir}/%{name}.so |
| 123 | %{_includedir}/lib3270/hllapi.h | 127 | %{_includedir}/lib3270/hllapi.h |
| 124 | %{_libdir}/pkgconfig/hllapi.pc | 128 | %{_libdir}/pkgconfig/hllapi.pc |
| 129 | +%{_datadir}/%{product}/pot/*.pot | ||
| 125 | 130 | ||
| 126 | %pre -n %{name}%{_libvrs} -p /sbin/ldconfig | 131 | %pre -n %{name}%{_libvrs} -p /sbin/ldconfig |
| 127 | 132 |