belr/belr.spec

103 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

Name: belr
Version: 5.3.34
Release: 1mamba
Summary: Belledonne Communications' language recognition library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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 \
-DBUILD_SHARED_LIBS=YES \
-DENABLE_STATIC=OFF \
-DENABLE_TESTS=OFF \
-DENABLE_UNIT_TESTS=NO
# -DENABLE_TOOLS=NO \
%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
* Mon Mar 25 2024 Automatic Build System <autodist@openmamba.org> 5.3.34-1mamba
- automatic version update by autodist
* Tue Feb 27 2024 Automatic Build System <autodist@openmamba.org> 5.3.24-1mamba
- automatic version update by autodist
* Fri Feb 16 2024 Automatic Build System <autodist@openmamba.org> 5.3.19-1mamba
- automatic version update by autodist
* Sat Feb 03 2024 Automatic Build System <autodist@openmamba.org> 5.3.15-1mamba
- automatic version update by autodist
* Sun Jan 28 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 5.3.12-1mamba
- update to 5.3.12
* Wed Nov 29 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.111-2mamba
- rebuild with ENABLE_TESTS=OFF
* Mon Nov 27 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.111-1mamba
- package created using the webbuild interface