diff --git a/README.md b/README.md index 3d87a8c..55288d8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # drpm +A library for making, reading and applying deltarpm packages. + diff --git a/drpm.spec b/drpm.spec new file mode 100644 index 0000000..a2cd680 --- /dev/null +++ b/drpm.spec @@ -0,0 +1,80 @@ +Name: drpm +Version: 0.5.0 +Release: 1mamba +Summary: A library for making, reading and applying deltarpm packages +Group: System/Management +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/rpm-software-management/drpm +## GITSOURCE https://github.com/rpm-software-management/drpm.git 0.5.0 +Source: https://github.com/rpm-software-management/drpm.git/%{version}/drpm-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libbzip2-devel +BuildRequires: liblzma-devel +BuildRequires: libopenssl-devel +BuildRequires: librpm-devel +BuildRequires: libz-devel +BuildRequires: libzstd-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A library for making, reading and applying deltarpm packages. + +%package -n lib%{name} +Group: System/Libraries +Summary: A library for making, reading and applying deltarpm packages + +%description -n lib%{name} +A library for making, reading and applying deltarpm packages. +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} +Requires: pkg-config + +%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 -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%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}/libdrpm.so.* +%doc COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/drpm.h +%{_libdir}/libdrpm.so +%{_libdir}/pkgconfig/drpm.pc + +%changelog +* Sat Sep 12 2020 Silvan Calarco 0.5.0-1mamba +- package created using the webbuild interface