standardize the specfile and add some missing build requirements [release 5.9.0-3mamba;Sun Apr 26 2015]

This commit is contained in:
Davide Madrisan 2024-01-06 03:28:09 +01:00
parent e4de760c61
commit 7e680f52bc

View File

@ -1,8 +1,9 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: kwindowsystem
Version: 5.9.0
Release: 2mamba
Summary: Access to the windowing system framework
Release: 3mamba
Summary: KDE Frameworks 5 access to the windowing system framework
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
@ -25,6 +26,13 @@ BuildRequires: libxcb-devel
BuildRequires: libxcb-keysyms-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: rpm-macros-kde5
BuildRequires: libQt5Core
BuildRequires: libQt5Gui
BuildRequires: libQt5Widgets
BuildRequires: libQt5X11Extras
BuildRequires: libQt5Test
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -33,7 +41,7 @@ Convenience access to certain properties and features of the windowing system.
%package -n lib%{name}
Group: System/Libraries
Summary: Access to the windowing system framework
Summary: KDE Frameworks 5 access to the windowing system framework
%description -n lib%{name}
Convenience access to certain properties and features of the windowing system.
@ -42,6 +50,8 @@ Convenience access to certain properties and features of the windowing system.
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: libxcb-devel
Requires: libxcb-keysyms-devel
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
@ -52,14 +62,14 @@ This package contains libraries and header files for developing applications tha
%setup -q
%build
%cmake -d build
%cmake_kde5 -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang %{name} || touch %{name}.lang
%find_lang %{name}5_qt --with-qt --all-name || touch %{name}5_qt.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -67,24 +77,25 @@ 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 -n lib%{name}
%files -n lib%{name} -f %{name}5_qt.lang
%defattr(-,root,root)
%{_libdir}/libKF5WindowSystem.so.*
%{_datadir}/locale/*/LC_MESSAGES/kwindowsystem5_qt.qm
%{_kde5_libdir}/libKF5WindowSystem.so.*
%doc COPYING.LIB
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/KF5/KWindowSystem
%{_includedir}/KF5/KWindowSystem/*
%{_includedir}/KF5/kwindowsystem_version.h
%dir %{_libdir}/cmake/KF5WindowSystem
%{_libdir}/cmake/KF5WindowSystem/KF5WindowSystem*.cmake
%{_libdir}/libKF5WindowSystem.so
/usr/mkspecs/modules/qt_KWindowSystem.pri
%{_kde5_includedir}/KWindowSystem
%{_kde5_includedir}/kwindowsystem_version.h
%{_kde5_libdir}/cmake/KF5WindowSystem
%{_kde5_libdir}/libKF5WindowSystem.so
%{_kde5_mkspecsdir}/qt_KWindowSystem.pri
%doc README.md
%changelog
* Sun Apr 26 2015 Davide Madrisan <davide.madrisan@gmail.com> 5.9.0-3mamba
- standardize the specfile and add some missing build requirements
* Sat Apr 11 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.9.0-2mamba
- automatic version update by autodist