diff --git a/README.md b/README.md index 0a53de8..76d6a76 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # postgresql-libversion +PostgreSQL extension with support for version string comparison through libversion. + diff --git a/postgresql-libversion.spec b/postgresql-libversion.spec new file mode 100644 index 0000000..92bec7c --- /dev/null +++ b/postgresql-libversion.spec @@ -0,0 +1,46 @@ +Name: postgresql-libversion +Version: 2.0.0 +Release: 1mamba +Summary: PostgreSQL extension with support for version string comparison through libversion +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/repology/postgresql-libversion +Source: https://github.com/repology/postgresql-libversion.git/%{version}/postgresql-libversion-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: ldconfig +BuildRequires: libversion-devel +## AUTOBUILDREQ-END +BuildRequires: libpostgresql-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +PostgreSQL extension with support for version string comparison through libversion. + +%debug_package + +%prep +%setup -q + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_libdir}/postgresql/libversion.so +%{_datadir}/postgresql/extension/libversion-*.sql +%{_datadir}/postgresql/extension/libversion.control +%doc COPYING + +%changelog +* Mon Feb 01 2021 Silvan Calarco 2.0.0-1mamba +- package created using the webbuild interface