kopeninghours/kopeninghours.spec

96 lines
2.8 KiB
RPMSpec

Name: kopeninghours
Version: 22.04.3
Release: 1mamba
Summary: A library for parsing and evaluating OSM opening hours expressions
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://api.kde.org/kopeninghours/html/index.html
Source: http://mirror.freedif.org/KDE/ftp/stable/release-service/%{version}/src/kopeninghours-%{version}.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libkholidays-devel
BuildRequires: libki18n-devel
BuildRequires: libstdc++6-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtdeclarative-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
A library for parsing and evaluating OSM opening hours expressions.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%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: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang %{name} || touch %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name} -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/libKOpeningHours.so.*
%dir %{_libdir}/qt5/qml/org/kde/kopeninghours
%{_libdir}/qt5/qml/org/kde/kopeninghours/*
%{_datadir}/qlogging-categories5/org_kde_kopeninghours.categories
%doc LICENSES
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/KOpeningHours
%{_includedir}/KOpeningHours/*
%dir %{_includedir}/kopeninghours
%{_includedir}/kopeninghours/*
%{_includedir}/kopeninghours_version.h
%{_libdir}/libKOpeningHours.so
%dir %{_libdir}/cmake/KOpeningHours
%{_libdir}/cmake/KOpeningHours/KOpeningHours*.cmake
%doc README.md README.md.license
%changelog
* Fri Jul 08 2022 Automatic Build System <autodist@mambasoft.it> 22.04.3-1mamba
- automatic version update by autodist
* Fri Jun 10 2022 Automatic Build System <autodist@mambasoft.it> 22.04.2-1mamba
- automatic version update by autodist
* Thu May 12 2022 Automatic Build System <autodist@mambasoft.it> 22.04.1-1mamba
- automatic version update by autodist
* Sun Apr 24 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 22.04.0-1mamba
- package created using the webbuild interface