Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:buschmann23:Cutelyst
libASqlQt5
libASqlQt5.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libASqlQt5.spec of Package libASqlQt5
# # spec file for package libASqlQt5 # # Copyright (c) 2020-2024 Matthias Fehring <buschmann23@opensuse.org> # Copyright (c) 2020-2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %bcond_with demos %define _sonum 0 %define _tarname asql %{?!__builddir:%global __builddir build} %{?!cmake_build:%global cmake_build() make %{?_smp_mflags} VERBOSE=1} %{?!cmake_install:%global cmake_install() DESTDIR=%{buildroot} make install -C %__builddir} %{?!ctest:%global ctest() %{_bindir}/ctest --output-on-failure --force-new-ctest-process} %if 0%{?mageia} %define _libpkgname %{mklibname ASqlQt5 _%{_sonum}} %define _libPgPkgName %{mklibname ASqlQt5Pg _%{_sonum}} %define _libMigPkgName %{mklibname ASqlQt5Migrations _%{_sonum}} %define _libdpkgname %{mklibname ASqlQt5 -d} %else %define _libpkgname libASqlQt5-%{_sonum} %define _libPgPkgName libASqlQt5Pg%{_sonum} %define _libMigPkgName libASqlQt5Migrations%{_sonum} %define _libdpkgname libASqlQt5-devel %endif Name: libASqlQt5 Version: 0.85.0 Release: 0 Summary: Qt5 Async SQL Library License: MIT Group: System/Libraries URL: https://github.com/cutelyst/asql Source0: https://github.com/cutelyst/asql/archive/v%{version}.tar.gz#/%{_tarname}-%{version}.tar.gz BuildRequires: pkgconfig BuildRequires: cmake >= 3.16 BuildRequires: pkgconfig(libpq) BuildRequires: cmake(Qt5Core) >= 5.10.0 %description Qt5 based library to support asynchronous SQL database queries. %package -n %{_libpkgname} Summary: Qt Async SQL Library Group: System/Libraries %description -n %{_libpkgname} Qt5 based library to support asynchronous SQL database queries. %package -n %{_libPgPkgName} Summary: Qt Async PostgreSQL Library Group: System/Libraries %description -n %{_libPgPkgName} Qt5 based library to support asynchronous PostgreSQL database queries. %package -n %{_libMigPkgName} Summary: Qt Async SQL Migrations Library Group: System/Libraries %description -n %{_libMigPkgName} Qt5 based library to suppor async SQL migrations. %package -n %{_libdpkgname} Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: %{_libpkgname} = %{version} Requires: %{_libPgPkgName} = %{version} Requires: %{_libMigPkgName} = %{version} Requires: cmake(Qt5Core) >= 5.10.0 Requires: pkgconfig(libpq) %description -n %{_libdpkgname} The %{name}-devel package contains libraries and header files for developing applications that use %{name}%{_sonum}. %package -n asql-migration-qt5 Summary: Database Migration Tool Group: Development/Tools/Other Obsoletes: asql-migration <= %{version} %description -n asql-migration-qt5 The asql-migration tool is used to run database migrations based on %{name}. %prep %autosetup -n %{_tarname}-%{version} %build %cmake \ %{!?with_demos:-DBUILD_DEMOS:BOOL=OFF} %cmake_build %install %cmake_install %post -n %{_libpkgname} -p /sbin/ldconfig %postun -n %{_libpkgname} -p /sbin/ldconfig %post -n %{_libPgPkgName} -p /sbin/ldconfig %postun -n %{_libPgPkgName} -p /sbin/ldconfig %post -n %{_libMigPkgName} -p /sbin/ldconfig %postun -n %{_libMigPkgName} -p /sbin/ldconfig %files -n %{_libpkgname} %license LICENSE %{_libdir}/%{name}.so.* %files -n %{_libPgPkgName} %license LICENSE %{_libdir}/libASqlQt5Pg.so.* %files -n %{_libMigPkgName} %license LICENSE %{_libdir}/libASqlQt5Migrations.so.* %files -n %{_libdpkgname} %doc README.md %{_includedir}/asql-qt5 %{_libdir}/%{name}.so %{_libdir}/libASqlQt5Pg.so %{_libdir}/libASqlQt5Migrations.so %{_libdir}/pkgconfig/ASqlQt5.pc %{_libdir}/cmake/ASqlQt5 %files -n asql-migration-qt5 %license LICENSE %{_bindir}/asql-migration0-qt5 %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor