From 87be782766fca552bbc4e15f8a36e7d29f64c1f3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 12 Mar 2024 00:46:52 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.2.16-1mamba;Sat Mar 09 2024] --- README.md | 2 ++ olm.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 olm.spec diff --git a/README.md b/README.md index 66fa850..a41e6bc 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # olm +Implementation of the olm and megolm cryptographic ratchets. + diff --git a/olm.spec b/olm.spec new file mode 100644 index 0000000..b577161 --- /dev/null +++ b/olm.spec @@ -0,0 +1,75 @@ +Name: olm +Version: 3.2.16 +Release: 1mamba +Summary: Implementation of the olm and megolm cryptographic ratchets +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://gitlab.matrix.org/matrix-org/olm +Source: https://gitlab.matrix.org/matrix-org/olm.git/%{version}/olm-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Implementation of the olm and megolm cryptographic ratchets. + +%package -n lib%{name} +Group: System/Libraries +Summary: Implementation of the olm and megolm cryptographic ratchets. + +%description -n lib%{name} +Implementation of the olm and megolm cryptographic ratchets. +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 +%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}/libolm.so.* +%doc LICENSE + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/olm +%{_includedir}/olm/* +%{_libdir}/libolm.so +%dir %{_libdir}/cmake/Olm +%{_libdir}/cmake/Olm/Olm*.cmake +%{_libdir}/pkgconfig/olm.pc +%doc README.md + +%changelog +* Sat Mar 09 2024 Silvan Calarco 3.2.16-1mamba +- package created using the webbuild interface