standardize the specfile

add some missing build requirements [release 5.9.0-4mamba;Sat Apr 25 2015]
This commit is contained in:
Davide Madrisan 2024-01-06 01:40:14 +01:00
parent 54a92160a6
commit b95f36e177

View File

@ -1,7 +1,8 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: ki18n
Version: 5.9.0
Release: 3mamba
Release: 4mamba
Summary: KDE Gettext-based UI text internationalization
Group: Graphical Desktop/Libraries/KDE
Vendor: openmamba
@ -17,6 +18,14 @@ BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: rpm-macros-kde5
BuildRequires: gettext
BuildRequires: python
BuildRequires: libQt5Core
BuildRequires: libQt5Test
BuildRequires: libQt5Concurrent
BuildRequires: libQt5Script
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -44,19 +53,14 @@ This package contains libraries and header files for developing applications tha
%setup -q
%build
%cmake -d build \
-DCMAKE_BUILD_TYPE=Release \
-DLIB_INSTALL_DIR=%{_lib} \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF
%cmake_kde5 -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang ki18n5
%find_lang ki18n5 --with-qt --all-name || touch ki18n5.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -64,26 +68,32 @@ This package contains libraries and header files for developing applications tha
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -f ki18n5.lang -n lib%{name}
%files -n lib%{name} -f ki18n5.lang
%defattr(-,root,root)
%{_libdir}/libKF5I18n.so.*
%{_libdir}/qt5/plugins/kf5/ktranscript.so
%{_datadir}/locale/*/LC_SCRIPTS/ki18n5/*
%{_kde5_libdir}/libKF5I18n.so.*
%{_kde5_pluginsdir}/ktranscript.so
%{_datadir}/locale/*/LC_SCRIPTS/ki18n5/ki18n5.js
%lang(fi) %{_datadir}/locale/fi/LC_SCRIPTS/ki18n5/general.pmap*
%lang(sr) %{_datadir}/locale/sr/LC_SCRIPTS/ki18n5/trapnakron.pmap*
%lang(sr@ijekavian) %{_datadir}/locale/sr@ijekavian/LC_SCRIPTS/ki18n5/trapnakron.pmap*
%lang(sr@ijekavianlatin) %{_datadir}/locale/sr@ijekavianlatin/LC_SCRIPTS/ki18n5/trapnakron.pmap*
%lang(sr@latin) %{_datadir}/locale/sr@latin/LC_SCRIPTS/ki18n5/trapnakron.pmap*
%doc COPYING.LIB
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/KF5/KI18n
%{_includedir}/KF5/KI18n/*
%{_includedir}/KF5/ki18n_version.h
%{_libdir}/cmake/KF5I18n/KF5I18*.cmake
%{_libdir}/cmake/KF5I18n/kf5i18nuic.cmake
%{_libdir}/cmake/KF5I18n/ts-pmap-compile.py
%{_libdir}/libKF5I18n.so
%{_libdir}/qt5/mkspecs/modules/qt_KI18n.pri
%{_kde5_includedir}/KI18n
%{_kde5_includedir}/ki18n_version.h
%{_kde5_libdir}/cmake/KF5I18n
%{_kde5_libdir}/libKF5I18n.so
%{_kde5_mkspecsdir}/qt_KI18n.pri
%doc README.md
%changelog
* Sat Apr 25 2015 Davide Madrisan <davide.madrisan@gmail.com> 5.9.0-4mamba
- standardize the specfile
- add some missing build requirements
* Sat Apr 11 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.9.0-3mamba
- automatic version update by autodist