79 lines
2.7 KiB
RPMSpec
79 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package perl-DBIx-DBSchema
|
|
#
|
|
# Copyright (c) 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/
|
|
#
|
|
|
|
|
|
%define cpan_name DBIx-DBSchema
|
|
Name: perl-DBIx-DBSchema
|
|
Version: 0.470.0
|
|
Release: 0
|
|
# 0.47 -> normalize -> 0.470.0
|
|
%define cpan_version 0.47
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Database-independent schema objects
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/I/IV/IVAN/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(DBI)
|
|
Requires: perl(DBI)
|
|
Provides: perl(DBIx::DBSchema) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
DBIx::DBSchema objects are collections of DBIx::DBSchema::Table objects and
|
|
represent a database schema.
|
|
|
|
This module implements an OO-interface to database schemas. Using this
|
|
module, you can create a database schema with an OO Perl interface. You can
|
|
read the schema from an existing database. You can save the schema to disk
|
|
and restore it in a different process. You can write SQL CREATE statements
|
|
statements for different databases from a single source. You can transform
|
|
one schema to another, adding any necessary new columns, tables, indices
|
|
and foreign keys.
|
|
|
|
Currently supported databases are MySQL, PostgreSQL and SQLite. Sybase and
|
|
Oracle drivers are partially implemented. DBIx::DBSchema will attempt to
|
|
use generic SQL syntax for other databases. Assistance adding support for
|
|
other databases is welcomed. See DBIx::DBSchema::DBD, "Driver Writer's
|
|
Guide and Base Class".
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
|
|
%changelog
|