101 lines
3.1 KiB
RPMSpec
101 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package perl-SystemPerl
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: perl-SystemPerl
|
|
Version: 1.344
|
|
Release: 0
|
|
%define cpan_name SystemPerl
|
|
Summary: SystemPerl Language Extension to SystemC
|
|
License: Artistic-2.0 OR LGPL-3.0-only
|
|
Group: Development/Libraries/Perl
|
|
URL: https://metacpan.org/release/WSNYDER/%{cpan_name}-%{version}
|
|
Source0: https://cpan.metacpan.org/authors/id/W/WS/WSNYDER/%{cpan_name}-%{version}.tar.gz
|
|
Source100: README.md
|
|
Patch1: SystemPerl-1.344_compilefix.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Pod::Usage) >= 1.34
|
|
BuildRequires: perl(Verilog::Getopt) >= 2.211
|
|
BuildRequires: perl(Verilog::Netlist) >= 3.2
|
|
Requires: perl(Pod::Usage) >= 1.34
|
|
Requires: perl(Verilog::Getopt) >= 2.211
|
|
Requires: perl(Verilog::Netlist) >= 3.2
|
|
%{perl_requires}
|
|
|
|
%description
|
|
SystemPerl is a version of the SystemC language. It is designed to expand
|
|
text so that needless repetition in the language is minimized. By using
|
|
sp_preproc, SystemPerl files can be expanded into C++ files at compile
|
|
time, or expanded in place to make them valid stand-alone SystemC files.
|
|
|
|
The concept of SystemPerl is based upon the AUTOS in the verilog-mode
|
|
package for Emacs, by the same author.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries/Perl
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
|
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
|
|
|
%check
|
|
make test
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
# -devel package and support for SystemC
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
install -pm 0644 src/*.h %{buildroot}%{_includedir}/%{name}
|
|
install -pm 0644 src/*.cpp %{buildroot}%{_includedir}/%{name}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%license COPYING
|
|
%doc Changes README
|
|
%doc example/
|
|
%{_bindir}/*
|
|
%dir %{perl_vendorarch}/auto/SystemC
|
|
%dir %{perl_vendorarch}/auto/SystemC/Parser
|
|
%{perl_vendorarch}/auto/SystemC/Parser/Parser.*
|
|
%dir %{perl_vendorarch}/SystemC
|
|
%{perl_vendorarch}/SystemC/*
|
|
%{_mandir}/man?/*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/%{name}/
|
|
|
|
%changelog
|