From 9b67fad65c6b9ae6912c8b4fad57c97b7e6806c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= ppisar@redhat.com Date: Tue, 22 Sep 2015 08:27:59 +0200 Subject: Import
diff --git a/.gitignore b/.gitignore index e69de29..ff4b0c4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Clownfish-0.4.2.tar.gz diff --git a/perl-Clownfish.spec b/perl-Clownfish.spec new file mode 100644 index 0000000..72163a1 --- /dev/null +++ b/perl-Clownfish.spec @@ -0,0 +1,90 @@ +Name: perl-Clownfish +Version: 0.4.2 +Release: 1%{?dist} +Summary: Apache Clownfish symbiotic object system +License: ASL 2.0 +Group: Development/Libraries +URL: http://search.cpan.org/dist/Clownfish/ +Source0: http://www.cpan.org/authors/id/C/CR/CREAMYG/Clownfish-%%7Bversion%7D.tar.gz +# There is charmonizer.c which is becoming a separate project +# git://git.apache.org/lucy-charmonizer.git. However, lucy-charmonizer has +# not yet been released http://lucy.apache.org/download.html. +# A build-time dependency Clownfish::CFC::Perl::Build::Charmonic +# still relies on the local location. Provided charmonizer.c is used only +# at build time and upstream code is not ready for external lucy-charmonizer +# (upstream treats it like a build-time only copy library) I'm not going to +# unbudle the charmonizer.c now. +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: perl +# Modules from buildlib are used when building +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Clownfish::CFC::Perl::Build) +BuildRequires: perl(Clownfish::CFC::Perl::Build::Charmonic) +BuildRequires: perl(Config) +BuildRequires: perl(Cwd) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(lib) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +# Generates perl binding, needs header files +BuildRequires: perl-devel +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) +BuildRequires: perl(overload) +BuildRequires: perl(Scalar::Util) +# Tests: +BuildRequires: perl(Encode) +BuildRequires: perl(Storable) +BuildRequires: perl(Test::More) +# Generates perl binding, needs standard library header files that are +# included from templates installed into _include directory. +Requires: gcc%{?_isa} +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +# Generates perl binding, needs perl header files that are included from +# templates installed into _include directory. +Requires: perl-devel%{?_isa} +Requires: perl(Data::Dumper) +Requires: perl(DynaLoader) + +%description +The Apache Clownfish "symbiotic" object system for C is designed to pair +with a "host" dynamic language environment, acilitating the development +of high performance host language extensions. Clownfish classes are +declared in header files with a .cfh extension. The Clownfish headers are +used by the Clownfish compiler to generate C header files and host +language bindings. Methods, functions and variables are defined in normal +C source files. + +%prep +%setup -q -n Clownfish-%{version} + +%build +perl Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} ; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%license LICENSE +%doc CONTRIBUTING NOTICE README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Clownfish* +%{_mandir}/man3/* + +%changelog +* Thu Sep 17 2015 Petr Pisar ppisar@redhat.com 0.4.2-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..9e51c37 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6001df0232cc03356b0f087ab22ce67d Clownfish-0.4.2.tar.gz
perl-devel@lists.fedoraproject.org