extra-cmake-modules/extra-cmake-modules.spec
Davide Madrisan e0446982ac provide the rpm macro file macros.kde5 (new subpackage rpm-macros-kde5)
do not provide an empty debug package
remove the build requirement for automoc4 and add cmake instead [release 5.9.0-5mamba;Sat Apr 18 2015]
2024-01-05 22:11:12 +01:00

94 lines
2.7 KiB
RPMSpec

%define _kf5_majver %(v=%version; echo ${v%.*})
Name: extra-cmake-modules
Version: 5.9.0
Release: 5mamba
Summary: Extra cmake modules used by kde framework
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.kde.org
Source0: http://download.kde.org/stable/frameworks/%{_kf5_majver}/extra-cmake-modules-%{version}.tar.xz
Source1: rpm-macros.kde5.in
License: BSD
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: python-Sphinx
Requires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Extra cmake modules used by kde framework.
%package -n rpm-macros-kde5
Group: Development/Tools
Summary: RPM macros for KDE Frameworks 5
%description -n rpm-macros-kde5
This package provides the RPM macros for building KDE Frameworks 5 packages.
%prep
%setup -q
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
install -d %{buildroot}%{_sysconfdir}/rpm
cat %{S:1} | sed "s,@KF5_VERSION@,%{version}," \
> %{buildroot}%{_sysconfdir}/rpm/macros.kde5
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_datadir}/ECM
%{_datadir}/doc/ECM
%{_mandir}/man7/ecm*
%doc COPYING-CMAKE-SCRIPTS
%files -n rpm-macros-kde5
%defattr(-,root,root)
%attr(644,root,root) %{_sysconfdir}/rpm/macros.kde5
%changelog
* Sat Apr 18 2015 Davide Madrisan <davide.madrisan@gmail.com> 5.9.0-5mamba
- provide the rpm macro file macros.kde5 (new subpackage rpm-macros-kde5)
- do not provide an empty debug package
- remove the build requirement for automoc4 and add cmake instead
* Sat Apr 11 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.9.0-4mamba
- automatic version update by autodist
* Sat Apr 11 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.9.0-3mamba
- automatic version update by autodist
* Sat Apr 11 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.9.0-2mamba
- automatic version update by autodist
* Sat Apr 11 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.9.0-1mamba
- automatic version update by autodist
* Sun Mar 29 2015 Davide Madrisan <davide.madrisan@gmail.com> 1.8.0-2mamba
- remove the %%debug macro
- python-Sphinx is required for building the package documentation
* Thu Mar 19 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.0-1mamba
- update to 1.8.0
* Sun Feb 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.0-1mamba
- update to 1.7.0
* Thu Jan 29 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.1-1mamba
- update to 1.6.1
* Wed Jan 28 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.0.9-1mamba
- package created using the webbuild interface