Skip to content

Commit 7585bea

Browse files
committed
Adding translation file and metainfo the rpm package.
1 parent d9eb394 commit 7585bea

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

rpm/libhllapi.spec

+7-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@
1616
# Please submit bugfixes or comments via http://bugs.opensuse.org/
1717
#
1818

19+
%define product %(pkg-config --variable=product_name lib3270)
20+
1921
#---[ Package header ]------------------------------------------------------------------------------------------------
2022

2123
Summary: HLLAPI client library for lib3270/pw3270
2224
Name: libhllapi
2325
Version: 5.3
2426
Release: 0
2527
License: LGPL-3.0
26-
Source: %{name}-%{version}.tar.xz
28+
Source: %{name}-%{version}.tar.xz
2729

2830
Url: https://github.com/PerryWerneck/libhllapi.git
2931

@@ -102,8 +104,9 @@ make all
102104
rm -rf $RPM_BUILD_ROOT
103105

104106
%makeinstall
107+
%find_lang %{name}-%{MAJOR_VERSION}.%{MINOR_VERSION} langfiles
105108

106-
%files -n %{name}%{_libvrs}
109+
%files -n %{name}%{_libvrs} -f langfiles
107110
%defattr(-,root,root)
108111

109112
# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros
@@ -115,13 +118,15 @@ rm -rf $RPM_BUILD_ROOT
115118
%endif
116119

117120
%{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION}
121+
%{_datadir}/appdata/*.metainfo.xml
118122

119123
%files devel
120124
%defattr(-,root,root)
121125

122126
%{_libdir}/%{name}.so
123127
%{_includedir}/lib3270/hllapi.h
124128
%{_libdir}/pkgconfig/hllapi.pc
129+
%{_datadir}/%{product}/pot/*.pot
125130

126131
%pre -n %{name}%{_libvrs} -p /sbin/ldconfig
127132

0 commit comments

Comments
 (0)