bb20e19
# If the emacs-el package has installed a pkgconfig file, use that to determine
bb20e19
# install locations and Emacs version at build time, otherwise set defaults.
bb20e19
%if %($(pkg-config emacs) ; echo $?)
6ff284b
%global emacs_version 22.1
6ff284b
%global emacs_lispdir  %{_datadir}/emacs/site-lisp
6ff284b
%global emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
bb20e19
%else
6ff284b
%global emacs_version  %{expand:%(pkg-config emacs --modversion)}
6ff284b
%global emacs_lispdir  %{expand:%(pkg-config emacs --variable sitepkglispdir)}
6ff284b
%global emacs_startdir %{expand:%(pkg-config emacs --variable sitestartdir)}
bb20e19
%endif
bb20e19
bb20e19
Name:           perl-SystemC-Vregs
Shakthi Kannan 6e7bf29
Version:        1.470
ae9a02e
Release:        27%{?dist}
bb20e19
Summary:        Utility routines used by vregs
bb20e19
458e170
License:        LGPLv3+ or Artistic 2.0
d40ff21
URL:            https://metacpan.org/release/SystemC-Vregs
d40ff21
Source0:        https://cpan.metacpan.org/authors/id/W/WS/WSNYDER/SystemC-Vregs-%{version}.tar.gz
bb20e19
bb20e19
BuildArch:      noarch
bb20e19
e216a90
BuildRequires:  coreutils
e216a90
BuildRequires:  findutils
e216a90
BuildRequires:  make
f9282cc
BuildRequires:  perl-generators
810f187
BuildRequires:  perl-interpreter
6a93aff
BuildRequires:  perl(Carp)
810f187
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
6a93aff
BuildRequires:  readline-devel
e216a90
# Tests are disabled
e216a90
# Run-time:
e216a90
# perl(base)
e216a90
# perl(Bit::Vector)
e216a90
# perl(Bit::Vector::Overload)
e216a90
# perl(Data::Dumper)
e216a90
# File::Basename
e216a90
# FindBin
e216a90
# perl(Getopt::Long)
e216a90
# perl(HTML::Entities)
e216a90
# perl(HTML::TableExtract)
e216a90
# perl(IO::File)
e216a90
# perl(lib)
e216a90
# perl(Pod::Usage)
e216a90
# strict
e216a90
# vars
e216a90
# perl(Verilog::Language) >= 2.1
e216a90
# warnings
e216a90
# Tests:
e216a90
# Config
e216a90
# ExtUtils::Manifest
e216a90
# perl(Test)
bb20e19
6ff284b
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
6a93aff
Requires:       perl(Verilog::Language) >= 2.1
6a93aff
6a93aff
# Remove under-specified dependencies
9487296
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Verilog::Language\\)$
bb20e19
bb20e19
%description
bb20e19
A Vregs object contains a documentation "package" containing enumerations,
bb20e19
definitions, classes, and registers.
bb20e19
bb20e19
bb20e19
%package -n     emacs-vregs-mode
bb20e19
Summary:        Elisp source files for systemc-vregs under GNU Emacs
bb20e19
BuildRequires:  emacs-el
bb20e19
BuildRequires:  emacs
bb20e19
Requires:       emacs(bin) >= %{emacs_version}
bb20e19
bb20e19
%description -n emacs-vregs-mode
bb20e19
This package provides emacs support for systemc-vregs
bb20e19
bb20e19
%prep
bb20e19
%setup -q -n SystemC-Vregs-%{version}
bb20e19
bb20e19
# fixing error: ‘strchr’ was not declared in this scope
810f187
perl -pi -e 's|#include <stdlib.h>|#include <stdlib.h>\n#include <string.h>|' \
bb20e19
  include/VregsRegInfo.cpp
bb20e19
bb20e19
bb20e19
%build
810f187
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" \
810f187
    NO_PACKLIST=1 NO_PERLLOCAL=1
810f187
%{make_build}
bb20e19
bb20e19
%install
810f187
%{make_install}
810f187
find %{buildroot} -type f -name '*.bs' -size 0 -delete
bb20e19
bb20e19
emacs -batch -f batch-byte-compile vregs-mode.el
810f187
install -d %{buildroot}%{emacs_lispdir}
810f187
install -pm 0644 vregs-mode.el vregs-mode.elc %{buildroot}%{emacs_lispdir}/
bb20e19
810f187
%{_fixperms} %{buildroot}/*
bb20e19
bb20e19
%check
Shakthi Kannan 6e7bf29
# make test
bb20e19
bb20e19
%files
869c697
%license COPYING
869c697
%doc Changes README vregs_spec.doc vregs_spec.htm
bb20e19
%{_bindir}/vreg*
bb20e19
bb20e19
%dir %{perl_vendorlib}/SystemC
bb20e19
%{perl_vendorlib}/SystemC/Vregs.pm
bb20e19
%{perl_vendorlib}/SystemC/vregs_spec__rules.pl
bb20e19
bb20e19
%dir %{perl_vendorlib}/SystemC/Vregs
bb20e19
%{perl_vendorlib}/SystemC/Vregs/*
bb20e19
%{_mandir}/man?/*
bb20e19
bb20e19
%files -n emacs-vregs-mode
869c697
%license COPYING
bb20e19
%{emacs_lispdir}/vregs-mode.el*
bb20e19
bb20e19
%changelog
ae9a02e
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.470-27
ae9a02e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ae9a02e
c57e671
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.470-26
c57e671
- Perl 5.34 rebuild
c57e671
810f187
* Fri May 14 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.470-25
810f187
- Modernize spec
810f187
8ffe61b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.470-24
8ffe61b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
8ffe61b
cfaef0f
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.470-23
cfaef0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cfaef0f
1414934
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.470-22
1414934
- Perl 5.32 rebuild
1414934
60fa4e9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.470-21
60fa4e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
60fa4e9
d1518d9
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.470-20
d1518d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d1518d9
75be144
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.470-19
75be144
- Perl 5.30 rebuild
75be144
85beacf
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.470-18
85beacf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
85beacf
cd0a60e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.470-17
cd0a60e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cd0a60e
94350e5
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.470-16
94350e5
- Perl 5.28 rebuild
94350e5
85f7a1a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.470-15
85f7a1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
85f7a1a
e1eff85
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.470-14
e1eff85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e1eff85
d2058c4
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.470-13
d2058c4
- Perl 5.26 rebuild
d2058c4
51e9806
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.470-12
51e9806
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
51e9806
35c4e43
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.470-11
35c4e43
- Perl 5.24 rebuild
35c4e43
6ff284b
* Tue Feb 02 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.470-10
6ff284b
- Replace %%define by %%global
6ff284b
9487296
* Fri Oct 23 2015 Petr Pisar <ppisar@redhat.com> - 1.470-9
9487296
- Correct dependency filter
e216a90
- Specify all dependencies
869c697
- Package COPYING as a license
9487296
dff6d19
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.470-8
dff6d19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dff6d19
fdaffaa
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.470-7
fdaffaa
- Perl 5.22 rebuild
fdaffaa
a220c18
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.470-6
a220c18
- Perl 5.20 rebuild
a220c18
6036aac
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.470-5
6036aac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6036aac
a356b9f
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.470-4
a356b9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a356b9f
c9a6a01
* Thu Jul 25 2013 Petr Pisar <ppisar@redhat.com> - 1.470-3
c9a6a01
- Perl 5.18 rebuild
c9a6a01
e9f4695
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.470-2
e9f4695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e9f4695
Shakthi Kannan 6e7bf29
* Wed Oct 17 2012 Shakthi Kannan <shakthimaan@fedoraproject.org> - 1.470-1
Shakthi Kannan 6e7bf29
- Updated to upstream 1.470
Shakthi Kannan 6e7bf29
beaac5c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.463-10
beaac5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
beaac5c
1ea1e38
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 1.463-9
1ea1e38
- Perl 5.16 rebuild
6a93aff
- Specify all dependencies
1ea1e38
f53dd48
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.463-8
f53dd48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f53dd48
Petr Sabata d038070
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.463-7
Petr Sabata d038070
- Perl mass rebuild
Petr Sabata d038070
2b4f803
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.463-6
2b4f803
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2b4f803
037509d
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.463-5
037509d
- 661697 rebuild for fixing problems with vendorach/lib
037509d
8be4b3f
* Thu May 06 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.463-4
8be4b3f
- Mass rebuild with perl-5.12.0
8be4b3f
cd0910d
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.463-3
cd0910d
- rebuild against perl 5.10.1
cd0910d
1078aa5
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.463-2
1078aa5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1078aa5
458e170
* Thu May 21 2009 Chitlesh GOORAH <chitlesh [AT] fedoraproject DOT org> 1.463-1
458e170
- new upstream release
458e170
006a473
* Wed Mar 04 2009 Chitlesh GOORAH <chitlesh [AT] fedoraproject DOT org> 1.462-1
006a473
- new upstream release
006a473
bb20e19
* Fri Jan 09 2009 Chitlesh GOORAH <chitlesh [AT] fedoraproject DOT org> 1.461-1
bb20e19
- new upstream release
bb20e19
bb20e19
* Sun Dec 28 2008 Chitlesh GOORAH <chitlesh [AT] fedoraproject DOT org> 1.460-2
bb20e19
- spec file revisited upon request : #476449c1
bb20e19
bb20e19
* Sun Dec 14 2008 Chitlesh GOORAH <chitlesh [AT] fedoraproject DOT org> 1.460-1
bb20e19
- Specfile autogenerated by cpanspec 1.77.