standardize the specfile and add some missing build requirements [release 5.9.0-2mamba;Sun Apr 26 2015]
This commit is contained in:
parent
258aa8ad6c
commit
6a276f2c56
@ -1,15 +1,16 @@
|
||||
%define majver %(echo %version | cut -d. -f1-2)
|
||||
|
||||
Name: kconfigwidgets
|
||||
Version: 5.9.0
|
||||
Release: 1mamba
|
||||
Summary: Widgets for configuration dialogs
|
||||
Release: 2mamba
|
||||
Summary: KDE Frameworks 5 widgets for configuration dialogs
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.kde.org
|
||||
Source: http://download.kde.org/stable/frameworks/%{majver}/kconfigwidgets-%{version}.tar.xz
|
||||
License: GPL
|
||||
License: GPL, LGPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: kconfig-devel
|
||||
@ -23,8 +24,19 @@ BuildRequires: libkwidgetsaddons-devel
|
||||
BuildRequires: libqt5-devel
|
||||
BuildRequires: libstdc++6-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: kdoctools
|
||||
BuildRequires: cmake
|
||||
BuildRequires: extra-cmake-modules
|
||||
BuildRequires: rpm-macros-kde5
|
||||
BuildRequires: libQt5Core
|
||||
BuildRequires: libQt5Gui
|
||||
BuildRequires: libQt5Widgets
|
||||
BuildRequires: libQt5DBus
|
||||
BuildRequires: libQt5Test
|
||||
BuildRequires: libkconfig-devel
|
||||
BuildRequires: libki18n-devel
|
||||
BuildRequires: kdoctools-devel
|
||||
BuildRequires: gettext
|
||||
BuildRequires: python
|
||||
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
@ -42,6 +54,12 @@ KConfigWidgets provides easy-to-use classes to create configuration dialogs, as
|
||||
Group: Development/Libraries
|
||||
Summary: Development files for %{name}
|
||||
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: libkauth-devel
|
||||
Requires: libkcodecs-devel
|
||||
Requires: libkcoreaddons-devel
|
||||
Requires: libkguiaddons-devel
|
||||
Requires: libki18n-devel
|
||||
Requires: libkwidgetsaddons-devel
|
||||
|
||||
%description -n lib%{name}-devel
|
||||
This package contains libraries and header files for developing applications that use %{name}.
|
||||
@ -52,21 +70,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 kconfigwidgets5
|
||||
#%find_lang kf5_entry
|
||||
#cat kf5_entry.lang >> kconfigwidgets5.lang
|
||||
%find_lang kconfigwidgets5_qt --with-qt --all-name || touch kconfigwidgets5_qt.lang
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
@ -74,28 +85,28 @@ 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} -f kconfigwidgets5.lang
|
||||
%files -n lib%{name} -f kconfigwidgets5_qt.lang
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libKF5ConfigWidgets.so.*
|
||||
%{_datadir}/kf5/kconfigwidgets/pics/ktip-bulb.png
|
||||
%{_datadir}/locale/*/kf5_entry.desktop
|
||||
%{_kde5_bindir}/preparetips5
|
||||
%{_kde5_libdir}/libKF5ConfigWidgets.so.*
|
||||
%{_kde5_datadir}/kf5/kconfigwidgets
|
||||
%{_kde5_datadir}/locale/*/kf5_entry.desktop
|
||||
%{_kde5_mandir}/man1/*
|
||||
%doc COPYING COPYING.LIB
|
||||
|
||||
%files -n lib%{name}-devel
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/preparetips5
|
||||
%dir %{_includedir}/KF5/KConfigWidgets
|
||||
%{_includedir}/KF5/KConfigWidgets/*
|
||||
%{_includedir}/KF5/kconfigwidgets_version.h
|
||||
%dir %{_libdir}/cmake/KF5ConfigWidgets
|
||||
%{_libdir}/cmake/KF5ConfigWidgets/KF5ConfigWidgets*.cmake
|
||||
%{_libdir}/libKF5ConfigWidgets.so
|
||||
%{_libdir}/qt5/mkspecs/modules/qt_KConfigWidgets.pri
|
||||
%{_mandir}/man1/preparetips5.1.gz
|
||||
%{_kde5_includedir}/KConfigWidgets
|
||||
%{_kde5_includedir}/kconfigwidgets_version.h
|
||||
%{_kde5_libdir}/cmake/KF5ConfigWidgets
|
||||
%{_kde5_libdir}/libKF5ConfigWidgets.so
|
||||
%{_kde5_mkspecsdir}/qt_KConfigWidgets.pri
|
||||
%doc README.md
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Apr 26 2015 Davide Madrisan <davide.madrisan@gmail.com> 5.9.0-2mamba
|
||||
- standardize the specfile and add some missing build requirements
|
||||
|
||||
* Wed Apr 15 2015 Automatic Build System <autodist@mambasoft.it> 5.9.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user