libbrotli/libbrotli.spec

103 lines
2.7 KiB
RPMSpec

Name: libbrotli
Version: 1.1.0
Release: 1mamba
Summary: A data format library for data streams
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/bagder/libbrotli
Source: https://github.com/google/brotli.git/v%{version}/brotli-%{version}.tar.bz2
#Source: https://github.com/bagder/libbrotli.git/libbrotli-%{version}/libbrotli-%{version}.tar.bz2
Patch0: libbrotli-1.0.9-pkgconfig.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%description
A data format library for data streams.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package tools
Group: System/Tools
Summary: Tools for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains tools that use %{name}.
%debug_package
%prep
%setup -q -n brotli-%{version}
#%patch 0 -p1
%build
%cmake
%cmake_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%cmake_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libbrotlidec.so.*
%{_libdir}/libbrotlienc.so.*
%{_libdir}/libbrotlicommon.so.*
%doc LICENSE
%files devel
%defattr(-,root,root)
%dir %{_includedir}/brotli
%{_includedir}/brotli/*.h
%{_libdir}/libbrotlidec.so
%{_libdir}/libbrotlienc.so
%{_libdir}/libbrotlicommon.so
%{_libdir}/pkgconfig/libbrotlicommon.pc
%{_libdir}/pkgconfig/libbrotlidec.pc
%{_libdir}/pkgconfig/libbrotlienc.pc
%doc README README.md
%files tools
%defattr(-,root,root)
%{_bindir}/brotli
%changelog
* Sun Sep 10 2023 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba
- automatic version update by autodist
* Thu Nov 19 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.9-2mamba
- added pkgconfig patch to fix linker arguments
* Wed Sep 16 2020 Automatic Build System <autodist@mambasoft.it> 1.0.9-1mamba
- automatic version update by autodist
* Sun Oct 28 2018 Automatic Build System <autodist@mambasoft.it> 1.0.7-1mamba
- automatic version update by autodist
* Fri Sep 28 2018 Automatic Build System <autodist@mambasoft.it> 1.0.6-1mamba
- automatic version update by autodist
* Thu Sep 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.5-1mamba
- update to 1.0.5
* Thu Sep 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-1mamba
- package created using the webbuild interface