From 7dc74c6a98401888e05334d8519b9522d1e0489a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 00:50:30 +0100 Subject: [PATCH] automatic version update by autodist [release 5.9.0-3mamba;Sat Apr 11 2015] --- kconfig.spec | 107 +++++++++++++++++++++++++++++---------------------- macros.kde5 | 62 +++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+), 47 deletions(-) create mode 100644 macros.kde5 diff --git a/kconfig.spec b/kconfig.spec index c72fcf4..98f4209 100644 --- a/kconfig.spec +++ b/kconfig.spec @@ -1,14 +1,15 @@ %define majver %(echo %version | cut -d. -f1-2) Name: kconfig -Version: 5.6.0 -Release: 1mamba +Version: 5.9.0 +Release: 3mamba Summary: KDE Frameworks advanced configuration system Group: Graphical Desktop/Applications/Configuration Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.kde.org -Source: ftp://ftp.kde.org/pub/kde/stable/frameworks/%{majver}/kconfig-%{version}.tar.xz +Source: http://download.kde.org/stable/frameworks/%{majver}/kconfig-%{version}.tar.xz +Source1: macros.kde5 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -19,6 +20,8 @@ BuildRequires: libstdc++6-devel BuildRequires: automoc4 BuildRequires: cmake BuildRequires: extra-cmake-modules +BuildRequires: rpm-macros-kde5 +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -34,15 +37,22 @@ KConfigCore provides access to the configuration files themselves. It features: KConfigGui provides a way to hook widgets to the configuration so that they are automatically initialized from the configuration and automatically propagate their changes to their respective configuration files. +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} -## remove the devel blocks if this package does not provide development stuff -%package devel +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel Group: Development/Libraries Summary: Development files for %{name} -Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} -Requires: kdelibs-devel +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Provides: %{name}-devel +Obsoletes: %{name}-devel +Requires: rpm-macros-kde5 -%description devel +%description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. %debug_package @@ -51,12 +61,15 @@ 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} \ - -DLIBEXEC_INSTALL_DIR=%{_lib} \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - -DBUILD_TESTING=OFF +%cmake_kde5 -d build \ + -DKDE_INSTALL_LIBEXECDIR:PATH=%{_libexecdir} + +#-d build \ +# -DCMAKE_BUILD_TYPE=Release \ +# -DLIB_INSTALL_DIR=%{_lib} \ +# -DLIBEXEC_INSTALL_DIR=%{_lib} \ +# -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ +# -DBUILD_TESTING=OFF %make @@ -64,44 +77,19 @@ This package contains libraries and header files for developing applications tha [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build +#install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.kde5 + %find_lang kconfig5_qt --all-name --with-kde || touch %{name}.lang %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%post -## remove the following line if no dynamic libraries are provided by this package +%post -n lib%{name} /sbin/ldconfig -## remove the following line if this package has no hicolor icons -touch --no-create %{_kde4_icondir}/hicolor >/dev/null 2>&1 -## remove the following line if this package has no oxygen icons -touch --no-create %{_kde4_icondir}/oxygen >/dev/null 2>&1 exit 0 -%posttrans -## remove the following line if no dynamic libraries are provided by this package +%postun -n lib%{name} /sbin/ldconfig -update-desktop-database -q >/dev/null 2>&1 -update-mime-database %{_kde4_mimedir} >/dev/null 2>&1 -## remove the following line if this package has no hicolor icons -gtk-update-icon-cache %{_kde4_icondir}/hicolor >/dev/null 2>&1 -## remove the following line if this package has no oxygen icons -gtk-update-icon-cache %{_kde4_icondir}/oxygen >/dev/null 2>&1 -exit 0 - -%postun -## remove the following line if no dynamic libraries are provided by this package -/sbin/ldconfig -if [ $1 -eq 0 ]; then - update-desktop-database -q >/dev/null 2>&1 - update-mime-database %{_kde4_mimedir} >/dev/null 2>&1 -## remove the following two lines if this package has no hicolor icons - touch --no-create %{_kde4_icondir}/hicolor >/dev/null 2>&1 - gtk-update-icon-cache %{_kde4_icondir}/hicolor >/dev/null 2>&1 -## remove the following two lines if this package has no oxygen icons - touch --no-create %{_kde4_icondir}/oxygen >/dev/null 2>&1 - gtk-update-icon-cache %{_kde4_icondir}/oxygen >/dev/null 2>&1 -fi exit 0 %files -f %{name}.lang @@ -109,12 +97,16 @@ exit 0 %{_bindir}/kconfig_compiler_kf5 %{_bindir}/kreadconfig5 %{_bindir}/kwriteconfig5 -%{_libdir}/libKF5ConfigCore.so.* -%{_libdir}/libKF5ConfigGui.so.* %{_datadir}/locale/*/LC_MESSAGES/kconfig5_qt.qm %doc COPYING.LIB -%files devel +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libKF5ConfigCore.so.* +%{_libdir}/libKF5ConfigGui.so.* +%{_kde5_libexecdir}/kconf_update + +%files -n lib%{name}-devel %defattr(-,root,root) %dir %{_includedir}/KF5/KConfigCore/ %{_includedir}/KF5/KConfigCore/* @@ -123,12 +115,33 @@ exit 0 %{_includedir}/KF5/kconfig_version.h %dir %{_libdir}/cmake/KF5Config %{_libdir}/cmake/KF5Config/KF5Config*.cmake -%{_libdir}/kf5/kconf_update %{_libdir}/libKF5ConfigCore.so %{_libdir}/libKF5ConfigGui.so %{_libdir}/qt5/mkspecs/modules/qt_KConfigCore.pri %{_libdir}/qt5/mkspecs/modules/qt_KConfigGui.pri %changelog +* Sat Apr 11 2015 Silvan Calarco 5.9.0-3mamba +- automatic version update by autodist + +* Sat Apr 11 2015 Silvan Calarco 5.9.0-2mamba +- automatic version update by autodist + +* Sat Apr 11 2015 Silvan Calarco 5.9.0-1mamba +- automatic version update by autodist + +* Thu Apr 02 2015 Silvan Calarco 5.8.0-2mamba +- remove rpm macros.kde5 and require rpm-macros-kde5 + +* Thu Mar 19 2015 Automatic Build System 5.8.0-1mamba +- automatic version update by autodist + +* Thu Mar 12 2015 Silvan Calarco 5.7.0-2mamba +- add libkconfig subpackage +- provide /etc/rpm/macros.kde5 + +* Sun Feb 22 2015 Automatic Build System 5.7.0-1mamba +- automatic version update by autodist + * Fri Feb 06 2015 Silvan Calarco 5.6.0-1mamba - package created using the webbuild interface diff --git a/macros.kde5 b/macros.kde5 new file mode 100644 index 0000000..a04e881 --- /dev/null +++ b/macros.kde5 @@ -0,0 +1,62 @@ +%_kde5_version 5.7.0 + +%_kde5_prefix %_prefix +%_kde5_sysconfdir %_sysconfdir + +%_kde5_autostartdir %_kde5_prefix/autostart +%_kde5_bindir %_kde5_prefix/bin +%_kde5_configdir %_kde5_prefix/share/config +%_kde5_datadir %_kde5_prefix/share/apps +%_kde5_dbusinterfacesdir %_datadir/dbus-1/interfaces +%_kde5_dbusservicesdir %_datadir/dbus-1/services +%_kde5_dbussystemservicesdir %_datadir/dbus-1/system-services +%_kde5_htmldir %_kde5_prefix/share/doc/HTML +%_kde5_icondir %_kde5_prefix/share/icons +%_kde5_kcfgdir %_kde5_prefix/share/config.kcfg +%_kde5_kconfupdatedir %_kde5_prefix/share/apps/kconf_update +%_kde5_includedir %_kde5_prefix/include +%_kde5_libdir %_kde5_prefix/%_lib +%_kde5_libexecdir %_libexecdir +%_kde5_localedir %_kde5_prefix/share/locale +%_kde5_mimedir %_kde5_prefix/share/mime +%_kde5_mkspecsdir %_qt5_prefix/mkspecs/modules +%_kde5_pluginsdir %_qt5_prefix/plugins +%_kde5_sbindir %_kde5_prefix/sbin +%_kde5_servicesdir %_kde5_prefix/share/kde5/services +%_kde5_servicetypesdir %_kde5_prefix/share/kde5/servicetypes +%_kde5_sharedir %_kde5_prefix/share +%_kde5_soundsdir %_kde5_prefix/share/sounds +%_kde5_templatesdir %_kde5_prefix/share/templates +%_kde5_xdgappsdir %_kde5_prefix/share/applications +%_kde5_xdgdirectorydir %_kde5_prefix/share/desktop-directories +%_kde5_xdgmimedir %_kde5_prefix/share/mime/packages +%_kde5_wallpaperdir %_kde5_prefix/share/wallpapers + +%_kde5_debug RelWithDebInfo + +%cmake_kde5(d:) \ + QTDIR="%{_qt5_prefix}" ; export QTDIR ; \ + PATH="%{_qt5_bindir}:$PATH" ; export PATH ; \ + CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ + CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ + FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \ + bdir=. \ + %{-d:dir=%{-d*} ; mkdir -p $dir ; cd $dir ; bdir=.. } \ + %{__cmake} \\\ + %if "%{_lib}" == "lib64" \ + -DLIB_SUFFIX=64 \\\ + %endif \ + -DCMAKE_BUILD_TYPE=%{_kde5_debug} \\\ + -DCMAKE_INSTALL_PREFIX:PATH=%{_kde5_prefix} \\\ + -DDBUS_INTERFACES_INSTALL_DIR:PATH=%{_kde5_dbusinterfacesdir} \\\ + -DDBUS_SERVICES_INSTALL_DIR:PATH=%{_kde5_dbusservicesdir} \\\ + -DDBUS_SYSTEM_SERVICES_INSTALL_DIR:PATH=%{_kde5_dbussystemservicesdir} \\\ + -DINFO_INSTALL_DIR:PATH=%{_infodir} \\\ + -DMAN_INSTALL_DIR:PATH=%{_mandir} \\\ + -DSYSCONF_INSTALL_DIR:PATH=%{_kde5_sysconfdir} \\\ + -DXDG_APPS_INSTALL_DIR:PATH=%{_kde5_xdgappsdir} \\\ + -DXDG_MIME_INSTALL_DIR:PATH=%{_kde5_xdgmimedir} \\\ + -DKDE_INSTALL_LIBEXECDIR:PATH=%{_kde5_libexecdir} \\\ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \\\ + -DECM_MKSPECS_INSTALL_DIR=%{_kde5_mkspecsdir} \\\ + -DBUILD_TESTING=OFF $bdir