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
51e9806
Release:        12%{?dist}
bb20e19
Summary:        Utility routines used by vregs
bb20e19
458e170
License:        LGPLv3+ or Artistic 2.0
bb20e19
Group:          Development/Libraries
bb20e19
URL:            http://search.cpan.org/dist/SystemC-Vregs/
bb20e19
Source0:        http://www.cpan.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
e216a90
BuildRequires:  perl
f9282cc
BuildRequires:  perl-generators
6a93aff
BuildRequires:  perl(Carp)
bb20e19
BuildRequires:  perl(ExtUtils::MakeMaker)
6a93aff
BuildRequires:  readline-devel
e216a90
BuildRequires:  sed
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
Group:          Development/Libraries
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
bb20e19
%{__sed} -i "s|#include <stdlib.h>|#include <stdlib.h>\n#include <string.h>|" \
bb20e19
  include/VregsRegInfo.cpp
bb20e19
bb20e19
bb20e19
%build
6ff284b
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
bb20e19
make %{?_smp_mflags}
bb20e19
bb20e19
%install
6ff284b
make pure_install DESTDIR=$RPM_BUILD_ROOT
bb20e19
bb20e19
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
bb20e19
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
bb20e19
bb20e19
emacs -batch -f batch-byte-compile vregs-mode.el
bb20e19
%{__install} -d %{buildroot}%{emacs_lispdir}
bb20e19
%{__install} -pm 0644 vregs-mode.el vregs-mode.elc %{buildroot}%{emacs_lispdir}/
bb20e19
bb20e19
%{_fixperms} $RPM_BUILD_ROOT/*
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
bb20e19
%files -n emacs-vregs-mode
869c697
%license COPYING
bb20e19
%{emacs_lispdir}/vregs-mode.el*
bb20e19
bb20e19
bb20e19
%changelog
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.