From 4ac79170d7ed5cd02f9e174f7c15b9b29bb3cb98181792dc00a3a60d1946a570 Mon Sep 17 00:00:00 2001 From: Gerrit Beine Date: Mon, 27 Oct 2008 15:04:53 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Algorithm-C3?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++++ Algorithm-C3-0.07.tar.gz | 3 +++ perl-Algorithm-C3.spec | 50 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 .gitattributes create mode 100644 Algorithm-C3-0.07.tar.gz create mode 100644 perl-Algorithm-C3.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/Algorithm-C3-0.07.tar.gz b/Algorithm-C3-0.07.tar.gz new file mode 100644 index 0000000..34f1ced --- /dev/null +++ b/Algorithm-C3-0.07.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3250f019fb55f9ea01d0fadfb92efd07efe4b8d49a6f77bf24a53bfc1de0ca16 +size 9563 diff --git a/perl-Algorithm-C3.spec b/perl-Algorithm-C3.spec new file mode 100644 index 0000000..3cc7a37 --- /dev/null +++ b/perl-Algorithm-C3.spec @@ -0,0 +1,50 @@ +%define cpan_name Algorithm-C3 + +Name: perl-%cpan_name +Version: 0.07 +Release: 1 +Provides: %cpan_name +Requires: perl = %{perl_version} +Group: Development/Libraries/Perl +License: Artistic +URL: http://search.cpan.org/dist/Algorithm-C3/ +Summary: A module for merging hierarchies using the C3 algorithm +Source: %cpan_name-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This module implements the C3 algorithm. I have broken this out into it's own +module because I found myself copying and pasting it way too often for +various needs. Most of the uses I have for C3 revolve around class building +and metamodels, but it could also be used for things like dependency +resolution as well since it tends to do such a nice job of preserving local +precendence orderings. + +%prep +%setup -q -n %cpan_name-%{version} + +%build +perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" +make +make test + +%install +make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_process_packlist + +%clean +# clean up the hard disc after build +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc %{_mandir}/man?/* +%{perl_vendorlib}/Algorithm +%{perl_vendorarch}/auto/Algorithm +/var/adm/perl-modules/%{name} +%doc Changes MANIFEST README + +%changelog -n %{name} +* Sun Oct 26 2008 - gerrit.beine@gmx.de +- first release 0.07 +