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 | 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 | 21 | #---[ Package header ]------------------------------------------------------------------------------------------------ |
20 | 22 | |
21 | 23 | Summary: HLLAPI client library for lib3270/pw3270 |
... | ... | @@ -23,7 +25,7 @@ Name: libhllapi |
23 | 25 | Version: 5.3 |
24 | 26 | Release: 0 |
25 | 27 | License: LGPL-3.0 |
26 | -Source: %{name}-%{version}.tar.xz | |
28 | +Source: %{name}-%{version}.tar.xz | |
27 | 29 | |
28 | 30 | Url: https://github.com/PerryWerneck/libhllapi.git |
29 | 31 | |
... | ... | @@ -102,8 +104,9 @@ make all |
102 | 104 | rm -rf $RPM_BUILD_ROOT |
103 | 105 | |
104 | 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 | 110 | %defattr(-,root,root) |
108 | 111 | |
109 | 112 | # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros |
... | ... | @@ -115,6 +118,7 @@ rm -rf $RPM_BUILD_ROOT |
115 | 118 | %endif |
116 | 119 | |
117 | 120 | %{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION} |
121 | +%{_datadir}/appdata/*.metainfo.xml | |
118 | 122 | |
119 | 123 | %files devel |
120 | 124 | %defattr(-,root,root) |
... | ... | @@ -122,6 +126,7 @@ rm -rf $RPM_BUILD_ROOT |
122 | 126 | %{_libdir}/%{name}.so |
123 | 127 | %{_includedir}/lib3270/hllapi.h |
124 | 128 | %{_libdir}/pkgconfig/hllapi.pc |
129 | +%{_datadir}/%{product}/pot/*.pot | |
125 | 130 | |
126 | 131 | %pre -n %{name}%{_libvrs} -p /sbin/ldconfig |
127 | 132 | ... | ... |