diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d82747d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/waylandpp-0.2.2.tar.gz +/waylandpp-0.2.3.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ded29a4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# waylandpp - -The waylandpp package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..33cd735 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (waylandpp-0.2.3.tar.gz) = 424ccef67e1faedfb03aa7465917e4dfc0eae578a1eb42bcdbe71df02955fef00fc1b480acb4828e168f051a82a13f923e0c9be93d3ede221e791a7af88647a5 diff --git a/waylandpp.spec b/waylandpp.spec new file mode 100644 index 0000000..c91f4e4 --- /dev/null +++ b/waylandpp.spec @@ -0,0 +1,103 @@ +Name: waylandpp +Version: 0.2.3 +Release: 1%{?dist} +Summary: Wayland C++ bindings + +# waylandpp includes part of Wayland under MIT, wayland-scanner++ is +# GPLv3+ +License: BSD and MIT and GPLv3+ +URL: https://github.com/NilsBrause/waylandpp/ +Source0: https://github.com/NilsBrause/%{name}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: doxygen +BuildRequires: gcc-c++ +BuildRequires: graphviz +BuildRequires: mesa-libEGL-devel +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-cursor) +BuildRequires: pkgconfig(wayland-egl) + +%description +Wayland is an object oriented display protocol, which features request and +events. Requests can be seen as method calls on certain objects, whereas events +can be seen as signals of an object. This makes the Wayland protocol a perfect +candidate for a C++ binding. + +The goal of this library is to create such a C++ binding for Wayland using the +most modern C++ technology currently available, providing an easy to use C++ API +to Wayland. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for developing +applications that use %{name}. + + +%package doc +Summary: Documentation for %{name} +BuildArch: noarch + +%description doc +The %{name}-doc package contains development documentation for %{name}. + + +%prep +%autosetup + + +%build +%cmake . -DCMAKE_INSTALL_DOCDIR=%{_defaultdocdir}/%{name}-doc/ +%make_build + + +%install +%make_install + +# Drop LaTeX documentation (HTML documentation is already built) +rm -r $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-doc/latex/ + + +%ldconfig_scriptlets + + +%check +ctest -V %{?_smp_mflags} + + +%files +%doc README.md +%license LICENSE +%{_libdir}/*.so.* + + +%files devel +%doc example/ +%{_bindir}/wayland-scanner++ +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_includedir}/* +%{_datadir}/%{name}/ +%{_mandir}/man3/*.3.* + + +%files doc +%doc README.md +%license LICENSE +%{_defaultdocdir}/%{name}-doc/ + + +%changelog +* Tue May 08 2018 Mohamed El Morabity - 0.2.3-1 +- Update to 0.2.3 + +* Tue Mar 06 2018 Mohamed El Morabity - 0.2.2-2 +- Fix License tag +- Fix documentation installation path + +* Mon Mar 05 2018 Mohamed El Morabity - 0.2.2-1 +- Initial RPM release