diff --git a/README.md b/README.md index 8fa4bcc..b111785 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # kwayland-server +KDE Frameworks 5 Wayland server. + diff --git a/kwayland-server.spec b/kwayland-server.spec new file mode 100644 index 0000000..3794ea7 --- /dev/null +++ b/kwayland-server.spec @@ -0,0 +1,90 @@ +%define majver %(echo %version | cut -d. -f1-2) + +Name: kwayland-server +Version: 5.19.0 +Release: 1mamba +Summary: KDE Frameworks 5 Wayland server +Group: Graphical Desktop/Applications/Environment +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.kde.org +Source: https://download.kde.org/stable/plasma/%{version}/kwayland-server-%{version}.tar.xz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libGL-devel +BuildRequires: libgcc +BuildRequires: libqt5-devel +BuildRequires: libstdc++6-devel +BuildRequires: libwayland-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRequires: rpm-macros-kde5 +BuildRequires: extra-cmake-modules +BuildRequires: plasma-wayland-protocols +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +KDE Frameworks 5 Wayland server. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for KDE Frameworks 5 Wayland server +Requires: plasma-wayland-protocols + +%description -n lib%{name} +KDE Frameworks 5 Wayland server. +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_kde5 -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} +/sbin/ldconfig +exit 0 + +%postun -n lib%{name} +/sbin/ldconfig +exit 0 + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libKWaylandServer.so.* +%{_datadir}/qlogging-categories5/kwaylandserver.categories +%doc COPYING.LIB + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/KWaylandServer +%{_includedir}/KWaylandServer/*.h +%{_includedir}/kwaylandserver_version.h +%{_libdir}/libKWaylandServer.so +%dir %{_libdir}/cmake/KWaylandServer +%{_libdir}/cmake/KWaylandServer/KWaylandServer*.cmake + +%changelog +* Thu Jun 11 2020 Silvan Calarco 5.19.0-1mamba +- package created using the webbuild interface