use %make_build %ldconfig_scriptlets

epel9
Rex Dieter 7 years ago
parent fe03db3356
commit d279c4c2f4

13
.gitignore vendored

@ -1,14 +1 @@
/kdecoration-5.9.5.tar.xz
/kdecoration-5.10.3.tar.xz
/kdecoration-5.10.4.tar.xz
/kdecoration-5.10.5.tar.xz
/kdecoration-5.11.1.tar.xz
/kdecoration-5.11.2.tar.xz
/kdecoration-5.11.3.tar.xz
/kdecoration-5.11.4.tar.xz
/kdecoration-5.11.5.tar.xz
/kdecoration-5.11.95.tar.xz
/kdecoration-5.12.0.tar.xz
/kdecoration-5.12.1.tar.xz
/kdecoration-5.12.2.tar.xz
/kdecoration-5.12.3.tar.xz /kdecoration-5.12.3.tar.xz

@ -12,7 +12,7 @@
Name: kdecoration Name: kdecoration
Summary: A plugin-based library to create window decorations Summary: A plugin-based library to create window decorations
Version: 5.12.3 Version: 5.12.3
Release: 1%{?dist} Release: 2%{?dist}
License: LGPLv2 License: LGPLv2
URL: https://cgit.kde.org/%{name}.git URL: https://cgit.kde.org/%{name}.git
@ -56,15 +56,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
# Cleanup includes mess, install everything into %%{_kf5_includedir}/KDecoration2 # Cleanup includes mess, install everything into %%{_kf5_includedir}/KDecoration2
sed -i "s/set(KDECORATION2_INCLUDEDIR \"\${CMAKE_INSTALL_INCLUDEDIR}\/KDecoration2\")/set(KDECORATION2_INCLUDEDIR \"\${KF5_INCLUDE_INSTALL_DIR}\/KDecoration2\")/" CMakeLists.txt sed -i "s/set(KDECORATION2_INCLUDEDIR \"\${CMAKE_INSTALL_INCLUDEDIR}\/KDecoration2\")/set(KDECORATION2_INCLUDEDIR \"\${KF5_INCLUDE_INSTALL_DIR}\/KDecoration2\")/" CMakeLists.txt
%build
%build
mkdir %{_target_platform} mkdir %{_target_platform}
pushd %{_target_platform} pushd %{_target_platform}
%{cmake_kf5} .. \ %{cmake_kf5} .. \
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF} -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
popd popd
make %{?_smp_mflags} -C %{_target_platform} %make_build -C %{_target_platform}
%install %install
@ -81,8 +81,7 @@ make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
%endif %endif
%post -p /sbin/ldconfig %ldconfig_scriptlets
%postun -p /sbin/ldconfig
%files %files
%license COPYING.LIB %license COPYING.LIB
@ -99,6 +98,9 @@ make test ARGS="--output-on-failure --timeout 20" -C %{_target_platform} ||:
%changelog %changelog
* Tue Mar 06 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.12.3-2
- use %%make_build %%ldconfig_scriptlets
* Tue Mar 06 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.12.3-1 * Tue Mar 06 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.12.3-1
- 5.12.3 - 5.12.3

Loading…
Cancel
Save