diff --git a/README.md b/README.md index 226cb74..77b9f06 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # belr +Belr is Belledonne Communications' language recognition library, written in C++11. It parses text inputs formatted according to a language defined by an ABNF grammar, such as the protocols standardized at IETF. + diff --git a/belr.spec b/belr.spec new file mode 100644 index 0000000..facf267 --- /dev/null +++ b/belr.spec @@ -0,0 +1,84 @@ +Name: belr +Version: 5.2.111 +Release: 2mamba +Summary: Belledonne Communications' language recognition library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/BelledonneCommunications/belr +Source: https://github.com/BelledonneCommunications/belr.git/%{version}/belr-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libbctoolbox-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Belr is Belledonne Communications' language recognition library, written in C++11. It parses text inputs formatted according to a language defined by an ABNF grammar, such as the protocols standardized at IETF. + +%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 \ + -DENABLE_STATIC=OFF \ + -DENABLE_TESTS=OFF + +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libbelr.so.* +%doc LICENSE.txt + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_bindir}/belr-compiler +%{_bindir}/belr-parse +%dir %{_includedir}/belr +%{_includedir}/belr/*.h +%{_libdir}/libbelr.so +%dir %{_libdir}/cmake/belr +%{_libdir}/cmake/belr/belr*.cmake +%doc README.md + + +%changelog +* Wed Nov 29 2023 Silvan Calarco 5.2.111-2mamba +- rebuild with ENABLE_TESTS=OFF + +* Mon Nov 27 2023 Silvan Calarco 5.2.111-1mamba +- package created using the webbuild interface