Files
perl-PostScript/perl-PostScript.spec
2025-08-12 18:16:42 +02:00

77 lines
2.3 KiB
RPMSpec

#
# spec file for package perl-PostScript (Version 0.06)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-PostScript
%define cpan_name PostScript
Summary: PostScript Perl module
Version: 0.06
Release: 1
License: CHECK(GPL+ or Artistic)
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/PostScript/
#Source: http://www.cpan.org/modules/by-module/PostScript/PostScript-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
Source100: README.md
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
%description
Well, you really should have some sort of PostScript interpreter such as
GhostScript, but it actually isn't necessary if you're just going to create
PostScript files with this package. You just won't be able to look at them.
Authors:
--------
Shawn Wallace <shawn@as220.org>
%prep
%setup -q -n %{cpan_name}-%{version}
# rpmlint non-executable-script
%{__perl} -p -i -e 's@/usr/local/bin/perl@%{__perl}@' example.pl
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove example.pl from lib
%{__rm} -f $RPM_BUILD_ROOT%perl_vendorlib/%{cpan_name}/example.pl
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc example.pl example.txt psoutput.ps README
%changelog