From 5f7bc86aace5567ffa848caee5e16b670426cd65 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 02:31:27 +0100 Subject: [PATCH] package created using the webbuild interface [release 22.04.0-1mamba;Sun Apr 24 2022] --- README.md | 2 ++ kopeninghours.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 kopeninghours.spec diff --git a/README.md b/README.md index 758f5e8..dcca6a1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # kopeninghours +A library for parsing and evaluating OSM opening hours expressions. + diff --git a/kopeninghours.spec b/kopeninghours.spec new file mode 100644 index 0000000..c1a3825 --- /dev/null +++ b/kopeninghours.spec @@ -0,0 +1,86 @@ +Name: kopeninghours +Version: 22.04.0 +Release: 1mamba +Summary: A library for parsing and evaluating OSM opening hours expressions +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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 +* Sun Apr 24 2022 Silvan Calarco 22.04.0-1mamba +- package created using the webbuild interface