Commit de88000945a2b6a62884587d18fd7b0d63d83734
1 parent
147297e0
Exists in
kalibro-processor-package
WIP: Analizo packaging
Signed-off-by: Athos Ribeiro <athoscribeiro@gmail.com> Signed-off-by: Diego Araújo <diegoamc90@gmail.com>
Showing
12 changed files
with
771 additions
and
0 deletions
Show diff stats
src/pkg-rpm/analizo/0001-Fixes-keys-on-reference-for-ClangStaticAnalyzer.patch
0 → 100644
... | ... | @@ -0,0 +1,25 @@ |
1 | +From 3ba609d3154b3859724546038f4a5a5828a5d71b Mon Sep 17 00:00:00 2001 | |
2 | +From: Rafael Reggiani Manzo <rr.manzo@gmail.com> | |
3 | +Date: Fri, 4 Jul 2014 13:00:55 -0300 | |
4 | +Subject: [PATCH] Fixes keys on reference for ClangStaticAnalyzer | |
5 | + | |
6 | +--- | |
7 | + lib/Analizo/Extractor/ClangStaticAnalyzer.pm | 2 +- | |
8 | + 1 file changed, 1 insertion(+), 1 deletion(-) | |
9 | + | |
10 | +diff --git a/lib/Analizo/Extractor/ClangStaticAnalyzer.pm b/lib/Analizo/Extractor/ClangStaticAnalyzer.pm | |
11 | +index cbb92fa..8c8c3bb 100644 | |
12 | +--- a/lib/Analizo/Extractor/ClangStaticAnalyzer.pm | |
13 | ++++ b/lib/Analizo/Extractor/ClangStaticAnalyzer.pm | |
14 | +@@ -120,7 +120,7 @@ sub feed { | |
15 | + | |
16 | + $self->model->declare_module($module, $file_name); | |
17 | + | |
18 | +- foreach $bug (keys $bugs_hash) { | |
19 | ++ foreach $bug (keys %$bugs_hash) { | |
20 | + my $value = $tree->{$file_name}->{$bug}; | |
21 | + $self->model->declare_security_metrics($bug, $module, $value); | |
22 | + } | |
23 | +-- | |
24 | +2.0.1 | |
25 | + | ... | ... |
... | ... | @@ -0,0 +1,130 @@ |
1 | +%global _hardened_build 1 | |
2 | +%define analizo_1_18_0_or_older 0 | |
3 | + | |
4 | +Name: analizo | |
5 | +Version: 1.18.1 | |
6 | +Release: 1%{?dist} | |
7 | +Summary: Analizo is a free, multi-language, extensible source code analysis and visualization toolkit | |
8 | + | |
9 | +Group: Development/Languages | |
10 | +License: GPLv3 | |
11 | +URL: http://www.analizo.org | |
12 | + | |
13 | +%if %{analizo_1_18_0_or_older} | |
14 | +Source0: http://analizo.org/download/analizo_%{version}.tar.gz | |
15 | +%else | |
16 | +Source0: http://analizo.org/download/analizo_%{version}.tar.xz | |
17 | +%endif | |
18 | + | |
19 | +BuildArch: noarch | |
20 | + | |
21 | +BuildRequires: git | |
22 | +BuildRequires: man | |
23 | +BuildRequires: sloccount | |
24 | +BuildRequires: doxyparse | |
25 | +BuildRequires: clang-analyzer | |
26 | +BuildRequires: ruby(release) | |
27 | +BuildRequires: rubygem-rspec | |
28 | +BuildRequires: rubygem-rake | |
29 | +BuildRequires: rubygem-cucumber | |
30 | +BuildRequires: perl(Archive::Extract) | |
31 | +BuildRequires: perl(ExtUtils::MakeMaker) | |
32 | +BuildRequires: perl(File::LibMagic) | |
33 | +BuildRequires: perl(File::ShareDir::Install) | |
34 | +BuildRequires: perl(File::Slurp) | |
35 | +BuildRequires: perl(Method::Signatures) | |
36 | +BuildRequires: perl(Test::BDD::Cucumber) | |
37 | +BuildRequires: perl(Test::Class) | |
38 | +BuildRequires: perl(Test::Exception) | |
39 | +BuildRequires: perl(Test::MockModule) | |
40 | +BuildRequires: perl(Test::MockObject) | |
41 | +# Same as runtime requirements, we need them to run the tests | |
42 | +BuildRequires: perl(App::Cmd) | |
43 | +BuildRequires: perl(Class::Accessor) | |
44 | +BuildRequires: perl(Class::Inspector) | |
45 | +BuildRequires: perl(DBD::SQLite) | |
46 | +BuildRequires: perl(DBI) | |
47 | +BuildRequires: perl(CHI) | |
48 | +BuildRequires: perl(Digest::SHA) | |
49 | +BuildRequires: perl(File::Copy::Recursive) | |
50 | +BuildRequires: perl(File::HomeDir) | |
51 | +BuildRequires: perl(File::Share) | |
52 | +BuildRequires: perl(File::ShareDir) | |
53 | +BuildRequires: perl(FindBin::libs) | |
54 | +BuildRequires: perl(Graph) | |
55 | +BuildRequires: perl(Graph::Writer::Dot) | |
56 | +BuildRequires: perl(Graph::Writer::DSM) >= 0.005 | |
57 | +BuildRequires: perl(JSON) | |
58 | +BuildRequires: perl(List::Compare) | |
59 | +BuildRequires: perl(Mojolicious) | |
60 | +BuildRequires: perl(Statistics::Descriptive) | |
61 | +BuildRequires: perl(Term::ProgressBar) | |
62 | +BuildRequires: perl(YAML) | |
63 | +BuildRequires: perl(YAML::Tiny) | |
64 | +BuildRequires: perl(ZeroMQ) | |
65 | + | |
66 | +Requires: sloccount | |
67 | +Requires: doxyparse | |
68 | +Requires: clang-analyzer | |
69 | +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | |
70 | +Requires: perl(App::Cmd) | |
71 | +Requires: perl(Class::Accessor) | |
72 | +Requires: perl(Class::Inspector) | |
73 | +Requires: perl(DBD::SQLite) | |
74 | +Requires: perl(DBI) | |
75 | +Requires: perl(CHI) | |
76 | +Requires: perl(Digest::SHA) | |
77 | +Requires: perl(File::Copy::Recursive) | |
78 | +Requires: perl(File::HomeDir) | |
79 | +Requires: perl(File::Share) | |
80 | +Requires: perl(File::ShareDir) | |
81 | +Requires: perl(FindBin::libs) | |
82 | +Requires: perl(Graph) | |
83 | +Requires: perl(Graph::Writer::Dot) | |
84 | +Requires: perl(Graph::Writer::DSM) >= 0.005 | |
85 | +Requires: perl(JSON) | |
86 | +Requires: perl(List::Compare) | |
87 | +Requires: perl(Mojolicious) | |
88 | +Requires: perl(Statistics::Descriptive) | |
89 | +Requires: perl(Term::ProgressBar) | |
90 | +Requires: perl(YAML) | |
91 | +Requires: perl(YAML::Tiny) | |
92 | +Requires: perl(ZeroMQ) | |
93 | + | |
94 | +%description | |
95 | +Analizo is a free, multi-language, extensible source code analysis and | |
96 | +visualization toolkit. It supports the extraction and calculation of a fair | |
97 | +number of source code metrics, generation of dependency graphs, and software | |
98 | +evolution analysis. | |
99 | + | |
100 | +%prep | |
101 | +%setup -q -n analizo | |
102 | + | |
103 | +%build | |
104 | +%{__perl} Makefile.PL INSTALLDIRS=vendor | |
105 | +make %{?_smp_mflags} | |
106 | + | |
107 | +%install | |
108 | +make pure_install DESTDIR=%{buildroot} | |
109 | +find %{buildroot} -type f -name .packlist -exec rm -f {} \; | |
110 | +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; | |
111 | + | |
112 | +mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d | |
113 | +install -pm 644 share/bash-completion/analizo %{buildroot}%{_sysconfdir}/bash_completion.d/analizo | |
114 | + | |
115 | +%{_fixperms} %{buildroot}/* | |
116 | + | |
117 | +%check | |
118 | +# PATH="$PATH:%{buildroot}%{_bindir}" PERL5LIB="$PERL5LIB:$PWD/lib" rake | |
119 | + | |
120 | +%files | |
121 | +%defattr(-,root,root,-) | |
122 | +%doc AUTHORS README.md INSTALL.md PROFILING.md RELEASE.md | |
123 | +%{perl_vendorlib}/* | |
124 | +%{_bindir}/analizo | |
125 | +%{_mandir}/man1/* | |
126 | +%{_sysconfdir}/bash_completion.d | |
127 | + | |
128 | +%changelog | |
129 | +* Thu Mar 19 2015 Daniel Miranda | |
130 | +- Initial Packaging | ... | ... |
src/pkg-rpm/doxyparse/0001-Fix-compilation-errors-in-g-4.9.patch
0 → 100644
... | ... | @@ -0,0 +1,25 @@ |
1 | +From c6657e8e38a08bf7668539e6566c1f398c1594ef Mon Sep 17 00:00:00 2001 | |
2 | +From: Daniel Miranda <danielkza2@gmail.com> | |
3 | +Date: Wed, 8 Apr 2015 16:23:58 -0300 | |
4 | +Subject: [PATCH] Fix compilation errors in g++ 4.9 | |
5 | + | |
6 | +--- | |
7 | + qtools/qvaluestack.h | 2 +- | |
8 | + 1 file changed, 1 insertion(+), 1 deletion(-) | |
9 | + | |
10 | +diff --git a/qtools/qvaluestack.h b/qtools/qvaluestack.h | |
11 | +index 3fb61fd..7438fcb 100644 | |
12 | +--- a/qtools/qvaluestack.h | |
13 | ++++ b/qtools/qvaluestack.h | |
14 | +@@ -49,7 +49,7 @@ class Q_EXPORT QValueStack : public QValueList<T> | |
15 | + public: | |
16 | + QValueStack() {} | |
17 | + ~QValueStack() {} | |
18 | +- void push( const T& d ) { append(d); } | |
19 | ++ void push( const T& d ) { this->append(d); } | |
20 | + T pop() | |
21 | + { | |
22 | + T elem( this->last() ); | |
23 | +-- | |
24 | +2.1.0 | |
25 | + | ... | ... |
src/pkg-rpm/doxyparse/0002-Use-C-XX-FLAGS-from-environment-in-configure.patch
0 → 100644
... | ... | @@ -0,0 +1,26 @@ |
1 | +From ba64033006257e072b15b161cf463aae0cc70785 Mon Sep 17 00:00:00 2001 | |
2 | +From: Daniel Miranda <danielkza2@gmail.com> | |
3 | +Date: Wed, 8 Apr 2015 17:09:57 -0300 | |
4 | +Subject: [PATCH] Use C(XX)FLAGS from environment in configure | |
5 | + | |
6 | +--- | |
7 | + configure | 3 +++ | |
8 | + 1 file changed, 3 insertions(+) | |
9 | + | |
10 | +diff --git a/configure b/configure | |
11 | +index 3f4ecb3..9a9b436 100755 | |
12 | +--- a/configure | |
13 | ++++ b/configure | |
14 | +@@ -529,6 +529,9 @@ rm -f spec.tmp | |
15 | + # make .tmakeconfig | |
16 | + # | |
17 | + touch .tmakeconfig | |
18 | ++[ -n "$CFLAGS" ] && echo "TMAKE_CFLAGS += $CFLAGS" >> .tmakeconfig | |
19 | ++[ -n "$CXXFLAGS" ] && echo "TMAKE_CXXFLAGS += $CXXFLAGS" >> .tmakeconfig | |
20 | ++ | |
21 | + if test "$f_shared" = NO; then | |
22 | + if test "$f_platform" = "osf1-cxx" -o "$f_platform" = "irix-n32"; then | |
23 | + cat >> .tmakeconfig <<EOF | |
24 | +-- | |
25 | +2.1.0 | |
26 | + | ... | ... |
... | ... | @@ -0,0 +1,70 @@ |
1 | +%global _hardened_build 1 | |
2 | + | |
3 | +Name: doxyparse | |
4 | +Version: 1.5.9 | |
5 | +Release: 2%{?dist} | |
6 | +Summary: Multi-language source code analyzer | |
7 | + | |
8 | +Group: Development/Languages | |
9 | +License: GPLv2 | |
10 | +URL: https://github.com/terceiro/doxyparse | |
11 | +Source0: https://analizo.github.io/download/doxyparse_%{version}.orig.tar.gz | |
12 | +Patch100: 0001-Fix-compilation-errors-in-g-4.9.patch | |
13 | +Patch101: 0002-Use-C-XX-FLAGS-from-environment-in-configure.patch | |
14 | + | |
15 | +BuildRequires: flex | |
16 | +BuildRequires: bison | |
17 | +BuildRequires: libstdc++-devel | |
18 | +BuildRequires: perl | |
19 | + | |
20 | +%description | |
21 | +doxyparse builts on doxygen's great source code parsing infrastructure and | |
22 | +provides a command-line tool that can be used to obtain informatin from source | |
23 | +code, such as: | |
24 | + | |
25 | +* which functions/methods and variables/attributes a module/class contains | |
26 | +* which functions/methods calls/uses which functions/methods/variables | |
27 | +* etc | |
28 | + | |
29 | +doxyparses's main goal is to be used by higher-level source code analyzis | |
30 | +tools. | |
31 | + | |
32 | +%prep | |
33 | +%setup -q -n doxyparse-%{version} | |
34 | +%patch100 -p1 | |
35 | +%patch101 -p1 | |
36 | +CFLAGS="${CFLAGS:-%optflags}" CXXFLAGS="${CXXFLAGS:-%optflags}" ./configure --prefix %{_prefix} --with-doxyparse | |
37 | + | |
38 | +%build | |
39 | +%{__make} %{?_smp_mflags} | |
40 | + | |
41 | +%install | |
42 | +%{__make} install DESTDIR=%{?buildroot} | |
43 | + | |
44 | +# We don't want the actual doxygen executable | |
45 | +rm -f %{buildroot}%{_prefix}/bin/doxygen | |
46 | +rm -f %{buildroot}%{_prefix}/man/man1/doxygen* | |
47 | + | |
48 | +%if "%{_prefix}/man/man1" != "%{_mandir}/man1" | |
49 | + %{__mkdir_p} %{buildroot}%{_mandir}/man1 | |
50 | + mv %{buildroot}%{_prefix}/man/man1/* %{buildroot}%{_mandir}/man1 | |
51 | +%endif | |
52 | + | |
53 | +%if "%{_prefix}/bin" != "%{_bindir}" | |
54 | + %{__mkdir_p} %{buildroot}%{_bindir} | |
55 | + mv %{buildroot}%{_prefix}/bin/* %{buildroot}%{_bindir} | |
56 | +%endif | |
57 | + | |
58 | +%files | |
59 | + | |
60 | +%doc INSTALL LANGUAGE.HOWTO PLATFORMS README | |
61 | +%{_bindir}/* | |
62 | +%{_mandir}/man1/* | |
63 | + | |
64 | +%changelog | |
65 | + | |
66 | +* Wed Sep 2 2015 Daniel Miranda | |
67 | +- Packaging fixes | |
68 | + | |
69 | +* Thu Mar 19 2015 Daniel Miranda | |
70 | +- Initial Packaging | ... | ... |
... | ... | @@ -0,0 +1,94 @@ |
1 | +Name: kalibro-processor | |
2 | +Version: 1.1.5 | |
3 | +Release: 1%{?dist} | |
4 | +Summary: Mezuro source code analyzer | |
5 | +Group: Development/Tools | |
6 | +License: AGPLv3 | |
7 | +URL: https://github.com/mezuro/kalibro_processor | |
8 | +Source0: %{name}-%{version}.tar.gz | |
9 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
10 | +BuildArch: noarch | |
11 | +BuildRequires: kalibro-processor-deps | |
12 | +Requires: kalibro-processor-deps, rubygem-bundler, analizo, radon | |
13 | + | |
14 | +%description | |
15 | + | |
16 | +%prep | |
17 | +%setup -q | |
18 | + | |
19 | +%build | |
20 | +ln -sf /usr/lib/kalibro_configurations/Gemfile . | |
21 | +ln -sf /usr/lib/kalibro_configurations/Gemfile.lock . | |
22 | +ln -sf /usr/lib/kalibro_configurations/.bundle . | |
23 | +ln -sfT /usr/lib/kalibro_configurations/vendor/bundle vendor/bundle | |
24 | +rm -f Gemfile Gemfile.lock .bundle vendor/bundle | |
25 | +rm -rf tmp log | |
26 | + | |
27 | +%install | |
28 | +mkdir -p %{buildroot}/usr/lib/kalibro-configurations | |
29 | +cp -r * %{buildroot}/usr/lib/kalibro-configurations | |
30 | +rm -rf %{buildroot}/usr/lib/kalibro-configurations/log | |
31 | +ln -sfT /var/log/kalibro-configurations %{buildroot}/usr/lib/kalibro-configurations/log | |
32 | +ln -sfT /etc/kalibro-configurations/database.yml %{buildroot}/usr/lib/kalibro-configurations/config/database.yml | |
33 | +ln -sfT /etc/kalibro-configurations/secrets.yml %{buildroot}/usr/lib/kalibro-configurations/config/secrets.yml | |
34 | + | |
35 | +mkdir -p %{buildroot}/lib/systemd/system | |
36 | +cat > %{buildroot}/lib/systemd/system/kalibro_configurations.service <<EOF | |
37 | +[Unit] | |
38 | +Description=kalibro_configurations | |
39 | +After=network.target | |
40 | + | |
41 | +[Service] | |
42 | +Type=simple | |
43 | +EnvironmentFile=-/etc/sysconfig/kalibro_configurations | |
44 | +User=kalibro_configurations | |
45 | +WorkingDirectory=/usr/lib/kalibro-configurations | |
46 | +ExecStart=/usr/bin/env bundle exec rails s -p 8083 -e production | |
47 | + | |
48 | +[Install] | |
49 | +WantedBy=multi-user.target | |
50 | +EOF | |
51 | + | |
52 | +mkdir -p %{buildroot}/etc/kalibro-configurations | |
53 | +cat > %{buildroot}/etc/kalibro-configurations/database.yml <<EOF | |
54 | +production: | |
55 | + adapter: postgresql | |
56 | + encoding: unicode | |
57 | + database: kalibro_configurations_production | |
58 | + pool: 10 | |
59 | + username: kalibro_configurations | |
60 | + password: | |
61 | +EOF | |
62 | + | |
63 | +cat > %{buildroot}/etc/kalibro-configurations/secrets.yml <<EOF | |
64 | +production: | |
65 | + secret_key_base: $(bundle exec rake secret) | |
66 | +EOF | |
67 | + | |
68 | +%post | |
69 | +groupadd kalibro_configurations || true | |
70 | +if ! id kalibro_configurations; then | |
71 | + adduser kalibro_configurations --system -g kalibro_configurations --shell /bin/sh --home-dir /usr/lib/kalibro-configurations | |
72 | +fi | |
73 | +mkdir -p /var/log/kalibro-configurations | |
74 | +chown -R kalibro_configurations:kalibro_configurations /var/log/kalibro-configurations | |
75 | +chown -R kalibro_configurations:kalibro_configurations /usr/lib/kalibro-configurations | |
76 | + | |
77 | +if [ $1 -gt 1 ]; then | |
78 | + echo 'Restarting kalibro_configurations' | |
79 | + systemctl daemon-reload | |
80 | + systemctl try-restart kalibro_configurations | |
81 | +fi | |
82 | + | |
83 | +%clean | |
84 | +rm -rf %{buildroot} | |
85 | + | |
86 | +%files | |
87 | +%defattr(-,root,root,-) | |
88 | +%doc | |
89 | +/usr/lib/kalibro-configurations | |
90 | +/lib/systemd/system/kalibro_configurations.service | |
91 | +%config(noreplace) /etc/kalibro-configurations/database.yml | |
92 | +%config(noreplace) /etc/kalibro-configurations/secrets.yml | |
93 | + | |
94 | +%changelog | ... | ... |
... | ... | @@ -0,0 +1,65 @@ |
1 | +Name: perl-Chart-Gnuplot | |
2 | +Version: 0.23 | |
3 | +Release: 2%{?dist} | |
4 | +Summary: Plot graph using Gnuplot in Perl on the fly | |
5 | +License: GPL+ or Artistic | |
6 | +Group: Development/Libraries | |
7 | +URL: http://search.cpan.org/dist/Chart-Gnuplot/ | |
8 | +Source0: http://search.cpan.org/CPAN/authors/id/K/KW/KWMAK/Chart/Gnuplot/Chart-Gnuplot-0.23.tar.gz | |
9 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
10 | +BuildArch: noarch | |
11 | +BuildRequires: perl(Carp) >= 1.04 | |
12 | +BuildRequires: perl(ExtUtils::MakeMaker) | |
13 | +BuildRequires: perl(File::Temp) >= 0.14 | |
14 | +BuildRequires: perl(Storable) >= 2.15 | |
15 | +BuildRequires: perl(Test::More) | |
16 | +BuildRequires: gnuplot-minimal | |
17 | +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | |
18 | +Requires: perl(Carp) >= 1.04 | |
19 | +Requires: perl(File::Temp) >= 0.14 | |
20 | +Requires: perl(Storable) >= 2.15 | |
21 | +Requires: gnuplot | |
22 | +Requires: ImageMagick | |
23 | + | |
24 | +%description | |
25 | +This Perl module is to plot graphs uning GNUPLOT on the fly. In order to | |
26 | +use this module, gnuplot need to be installed. If image format other than | |
27 | +PS and EPS is required to generate, it is recommended to install the | |
28 | +convert program of ImageMagick as well. Please refer to "MECHANISM OF THIS | |
29 | +MODULE" for details. | |
30 | + | |
31 | +%prep | |
32 | +%setup -q -n Chart-Gnuplot-%{version} | |
33 | + | |
34 | +%build | |
35 | +%{__perl} Makefile.PL INSTALLDIRS=vendor | |
36 | +make %{?_smp_mflags} | |
37 | + | |
38 | +%install | |
39 | +rm -rf $RPM_BUILD_ROOT | |
40 | + | |
41 | +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | |
42 | + | |
43 | +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; | |
44 | +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; | |
45 | + | |
46 | +%{_fixperms} $RPM_BUILD_ROOT/* | |
47 | + | |
48 | +%check | |
49 | +make test | |
50 | + | |
51 | +%clean | |
52 | +rm -rf $RPM_BUILD_ROOT | |
53 | + | |
54 | +%files | |
55 | +%defattr(-,root,root,-) | |
56 | +%doc Changes README | |
57 | +%{perl_vendorlib}/* | |
58 | +%{_mandir}/man3/* | |
59 | + | |
60 | +%changelog | |
61 | +* Thu Apr 09 2015 Daniel Miranda <danielkza2@gmail.com> 0.23-2 | |
62 | +- Fix gnuplot and ImageMagick dependencies. | |
63 | + | |
64 | +* Wed Apr 08 2015 Daniel Miranda <danielkza2@gmail.com> 0.23-1 | |
65 | +- Specfile autogenerated by cpanspec 1.78. | ... | ... |
... | ... | @@ -0,0 +1,65 @@ |
1 | +Name: perl-FindBin-libs | |
2 | +Version: 2.15 | |
3 | +Release: 1%{?dist} | |
4 | +Summary: FindBin::libs Perl module | |
5 | +License: CHECK(Distributable) | |
6 | +Group: Development/Libraries | |
7 | +URL: http://search.cpan.org/dist/FindBin-libs/ | |
8 | +Source0: http://www.cpan.org/authors/id/L/LE/LEMBARK/FindBin-libs-%{version}.tar.gz | |
9 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
10 | +BuildArch: noarch | |
11 | +BuildRequires: perl(Carp) | |
12 | +BuildRequires: perl(Cwd) | |
13 | +BuildRequires: perl(ExtUtils::MakeMaker) | |
14 | +BuildRequires: perl(File::Spec) | |
15 | +BuildRequires: perl(File::Temp) | |
16 | +BuildRequires: perl(List::Util) | |
17 | +BuildRequires: perl(Test::More) | |
18 | +Requires: perl(Carp) | |
19 | +Requires: perl(Cwd) | |
20 | +Requires: perl(File::Spec) | |
21 | +Requires: perl(File::Temp) | |
22 | +Requires: perl(List::Util) | |
23 | +Requires: perl(Test::More) | |
24 | +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | |
25 | + | |
26 | +%description | |
27 | +This may not do much good on Windows: the crazy directory structures common | |
28 | +to Windows systems do not seem very amenable to using $FindBin::Bin as the | |
29 | +starting point for locating libraries. | |
30 | + | |
31 | +%prep | |
32 | +%setup -q -n FindBin-libs-%{version} | |
33 | + | |
34 | +%build | |
35 | +%{__perl} Makefile.PL INSTALLDIRS=vendor | |
36 | +make %{?_smp_mflags} | |
37 | + | |
38 | +%install | |
39 | +rm -rf $RPM_BUILD_ROOT | |
40 | + | |
41 | +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | |
42 | + | |
43 | +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; | |
44 | +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; | |
45 | + | |
46 | +%{_fixperms} $RPM_BUILD_ROOT/* | |
47 | + | |
48 | +perldoc -t perlgpl > COPYING | |
49 | +perldoc -t perlartistic > Artistic | |
50 | + | |
51 | +%check | |
52 | +make test | |
53 | + | |
54 | +%clean | |
55 | +rm -rf $RPM_BUILD_ROOT | |
56 | + | |
57 | +%files | |
58 | +%defattr(-,root,root,-) | |
59 | +%doc Changes libs_curr_pm libs_old_pm META.json README COPYING Artistic | |
60 | +%{perl_vendorlib}/* | |
61 | +%{_mandir}/man3/* | |
62 | + | |
63 | +%changelog | |
64 | +* Wed Apr 08 2015 Daniel Miranda <danielkza2@gmail.com> 2.12-1 | |
65 | +- Specfile autogenerated by cpanspec 1.78. | ... | ... |
src/pkg-rpm/perl-Graph-ReadWrite/perl-Graph-ReadWrite.spec
0 → 100644
... | ... | @@ -0,0 +1,62 @@ |
1 | +Name: perl-Graph-ReadWrite | |
2 | +Version: 2.07 | |
3 | +Release: 1%{?dist} | |
4 | +Summary: Modules for reading and writing directed graphs | |
5 | +License: GPL+ or Artistic | |
6 | +Group: Development/Libraries | |
7 | +URL: http://search.cpan.org/dist/Graph-ReadWrite/ | |
8 | +Source0: http://www.cpan.org/authors/id/N/NE/NEILB/Graph-ReadWrite-%{version}.tar.gz | |
9 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
10 | +BuildArch: noarch | |
11 | +BuildRequires: perl >= 0:5.006 | |
12 | +BuildRequires: perl(Carp) | |
13 | +BuildRequires: perl(ExtUtils::MakeMaker) | |
14 | +BuildRequires: perl(Graph) >= 0.5 | |
15 | +BuildRequires: perl(parent) | |
16 | +BuildRequires: perl(Parse::Yapp::Driver) | |
17 | +BuildRequires: perl(XML::Parser) | |
18 | +BuildRequires: perl(XML::Writer) | |
19 | +Requires: perl(Carp) | |
20 | +Requires: perl(Graph) >= 0.5 | |
21 | +Requires: perl(parent) | |
22 | +Requires: perl(Parse::Yapp::Driver) | |
23 | +Requires: perl(XML::Parser) | |
24 | +Requires: perl(XML::Writer) | |
25 | +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | |
26 | + | |
27 | +%description | |
28 | +This module is a placeholder in the Graph-ReadWrite distribution, which is | |
29 | +a collection of modules for reading and writing directed graphs. | |
30 | + | |
31 | +%prep | |
32 | +%setup -q -n Graph-ReadWrite-%{version} | |
33 | + | |
34 | +%build | |
35 | +%{__perl} Makefile.PL INSTALLDIRS=vendor | |
36 | +make %{?_smp_mflags} | |
37 | + | |
38 | +%install | |
39 | +rm -rf $RPM_BUILD_ROOT | |
40 | + | |
41 | +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | |
42 | + | |
43 | +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; | |
44 | +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; | |
45 | + | |
46 | +%{_fixperms} $RPM_BUILD_ROOT/* | |
47 | + | |
48 | +%check | |
49 | +make test | |
50 | + | |
51 | +%clean | |
52 | +rm -rf $RPM_BUILD_ROOT | |
53 | + | |
54 | +%files | |
55 | +%defattr(-,root,root,-) | |
56 | +%doc Changes META.json README TODO | |
57 | +%{perl_vendorlib}/* | |
58 | +%{_mandir}/man3/* | |
59 | + | |
60 | +%changelog | |
61 | +* Wed Apr 08 2015 Daniel Miranda <danielkza2@gmail.com> 2.07-1 | |
62 | +- Specfile autogenerated by cpanspec 1.78. | ... | ... |
src/pkg-rpm/perl-Graph-Writer-DSM/perl-Graph-Writer-DSM.spec
0 → 100644
... | ... | @@ -0,0 +1,68 @@ |
1 | +Name: perl-Graph-Writer-DSM | |
2 | +Version: 0.006 | |
3 | +Release: 2%{?dist} | |
4 | +Summary: Draw graph as a DSM matrix | |
5 | +License: GPL+ or Artistic | |
6 | +Group: Development/Libraries | |
7 | +URL: http://search.cpan.org/dist/Graph-Writer-DSM/ | |
8 | +Source0: http://www.cpan.org/authors/id/J/JO/JOENIO/Graph-Writer-DSM-%{version}.tar.gz | |
9 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
10 | +BuildArch: noarch | |
11 | +BuildRequires: perl(Chart::Gnuplot) | |
12 | +BuildRequires: perl(ExtUtils::MakeMaker) | |
13 | +BuildRequires: perl(File::Path) | |
14 | +BuildRequires: perl(File::Temp) | |
15 | +BuildRequires: perl(Graph) | |
16 | +BuildRequires: perl(Graph::Writer) | |
17 | +BuildRequires: perl(List::MoreUtils) | |
18 | +BuildRequires: perl(Modern::Perl) | |
19 | +BuildRequires: perl(Module::Install::Can) | |
20 | +BuildRequires: perl(Mojo::Template) | |
21 | +BuildRequires: perl(Test::Class) | |
22 | +BuildRequires: perl(Test::File) | |
23 | +BuildRequires: perl(Test::Most) | |
24 | +BuildRequires: perl(Test::TempDir) | |
25 | +Requires: perl(Chart::Gnuplot) | |
26 | +Requires: perl(File::Temp) | |
27 | +Requires: perl(Graph::Writer) | |
28 | +Requires: perl(List::MoreUtils) | |
29 | +Requires: perl(Modern::Perl) | |
30 | +Requires: perl(Mojo::Template) | |
31 | +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | |
32 | + | |
33 | +%description | |
34 | +Write graph as a quadractic matrix N x N, where N is the number of vertices | |
35 | +in the graph. It is useful to visualize graphs with at least 1k vertices. | |
36 | + | |
37 | +%prep | |
38 | +%setup -q -n Graph-Writer-DSM-%{version} | |
39 | + | |
40 | +%build | |
41 | +%{__perl} Makefile.PL INSTALLDIRS=vendor | |
42 | +make %{?_smp_mflags} | |
43 | + | |
44 | +%install | |
45 | +rm -rf $RPM_BUILD_ROOT | |
46 | + | |
47 | +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | |
48 | + | |
49 | +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; | |
50 | +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; | |
51 | + | |
52 | +%{_fixperms} $RPM_BUILD_ROOT/* | |
53 | + | |
54 | +%check | |
55 | +make test | |
56 | + | |
57 | +%clean | |
58 | +rm -rf $RPM_BUILD_ROOT | |
59 | + | |
60 | +%files | |
61 | +%defattr(-,root,root,-) | |
62 | +%doc dist.ini LICENSE README Vagrantfile | |
63 | +%{perl_vendorlib}/* | |
64 | +%{_mandir}/man3/* | |
65 | + | |
66 | +%changelog | |
67 | +* Wed Apr 08 2015 Daniel Miranda <danielkza2@gmail.com> 0.006-1 | |
68 | +- Specfile autogenerated by cpanspec 1.78. | ... | ... |
... | ... | @@ -0,0 +1,51 @@ |
1 | +Name: perl-Number-Range | |
2 | +Version: 0.12 | |
3 | +Release: 1%{?dist} | |
4 | +Summary: Perl extension defining ranges of numbers and testing if a number is found in the range. You can also add and delete from this range | |
5 | +License: CHECK(Distributable) | |
6 | +Group: Development/Libraries | |
7 | +URL: http://search.cpan.org/dist/Number-Range/ | |
8 | +Source0: http://www.cpan.org/authors/id/L/LA/LARRYSH/Number-Range-%{version}.tar.gz | |
9 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
10 | +BuildArch: noarch | |
11 | +BuildRequires: perl(ExtUtils::MakeMaker) | |
12 | +BuildRequires: perl(Test::More) | |
13 | +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | |
14 | + | |
15 | +%description | |
16 | +Number::Range will take a description of a range, and then allow you to | |
17 | +test on if a number falls within the range. You can also add and delete | |
18 | +from the range. | |
19 | + | |
20 | +%prep | |
21 | +%setup -q -n Number-Range-%{version} | |
22 | + | |
23 | +%build | |
24 | +%{__perl} Makefile.PL INSTALLDIRS=vendor | |
25 | +make %{?_smp_mflags} | |
26 | + | |
27 | +%install | |
28 | +rm -rf $RPM_BUILD_ROOT | |
29 | + | |
30 | +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | |
31 | + | |
32 | +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; | |
33 | +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; | |
34 | + | |
35 | +%{_fixperms} $RPM_BUILD_ROOT/* | |
36 | + | |
37 | +%check | |
38 | +make test | |
39 | + | |
40 | +%clean | |
41 | +rm -rf $RPM_BUILD_ROOT | |
42 | + | |
43 | +%files | |
44 | +%defattr(-,root,root,-) | |
45 | +%doc Changes README | |
46 | +%{perl_vendorlib}/* | |
47 | +%{_mandir}/man3/* | |
48 | + | |
49 | +%changelog | |
50 | +* Wed Apr 08 2015 Daniel Miranda <danielkza2@gmail.com> 0.12-1 | |
51 | +- Specfile autogenerated by cpanspec 1.78. | ... | ... |
src/pkg-rpm/perl-Test-BDD-Cucumber/perl-Test-BDD-Cucumber.spec
0 → 100644
... | ... | @@ -0,0 +1,90 @@ |
1 | +Name: perl-Test-BDD-Cucumber | |
2 | +Version: 0.32 | |
3 | +Release: 1%{?dist} | |
4 | +Summary: Feature-complete Cucumber-style testing in Perl | |
5 | +License: GPL+ or Artistic | |
6 | +Group: Development/Libraries | |
7 | +URL: http://search.cpan.org/dist/Test-BDD-Cucumber/ | |
8 | +Source0: http://www.cpan.org/authors/id/S/SA/SARGIE/Test-BDD-Cucumber-%{version}.tar.gz | |
9 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
10 | +BuildArch: noarch | |
11 | +BuildRequires: perl >= 0:5.008 | |
12 | +BuildRequires: perl(Clone) | |
13 | +BuildRequires: perl(Digest::SHA) | |
14 | +BuildRequires: perl(Digest::MD5) | |
15 | +BuildRequires: perl(ExtUtils::MakeMaker) | |
16 | +BuildRequires: perl(File::Find::Rule) | |
17 | +BuildRequires: perl(File::Slurp) >= 9999.16 | |
18 | +BuildRequires: perl(Getopt::Long) | |
19 | +BuildRequires: perl(IO::Scalar) | |
20 | +BuildRequires: perl(JSON::MaybeXS) | |
21 | +BuildRequires: perl(List::MoreUtils) | |
22 | +BuildRequires: perl(List::Util) | |
23 | +BuildRequires: perl(Module::Runtime) | |
24 | +BuildRequires: perl(Moose) | |
25 | +BuildRequires: perl(Number::Range) | |
26 | +BuildRequires: perl(Path::Class) | |
27 | +BuildRequires: perl(Storable) | |
28 | +BuildRequires: perl(Term::ANSIColor) >= 3.00 | |
29 | +BuildRequires: perl(Test::Builder) | |
30 | +BuildRequires: perl(Test::Differences) | |
31 | +BuildRequires: perl(Test::More) | |
32 | +BuildRequires: perl(YAML::Syck) | |
33 | +Requires: perl(Clone) | |
34 | +Requires: perl(Digest::SHA) | |
35 | +Requires: perl(File::Find::Rule) | |
36 | +Requires: perl(File::Slurp) >= 9999.16 | |
37 | +Requires: perl(Getopt::Long) | |
38 | +Requires: perl(IO::Scalar) | |
39 | +Requires: perl(JSON::MaybeXS) | |
40 | +Requires: perl(List::MoreUtils) | |
41 | +Requires: perl(List::Util) | |
42 | +Requires: perl(Module::Runtime) | |
43 | +Requires: perl(Moose) | |
44 | +Requires: perl(Number::Range) | |
45 | +Requires: perl(Path::Class) | |
46 | +Requires: perl(Storable) | |
47 | +Requires: perl(Term::ANSIColor) >= 3.00 | |
48 | +Requires: perl(Test::Builder) | |
49 | +Requires: perl(Test::Differences) | |
50 | +Requires: perl(Test::More) | |
51 | +Requires: perl(YAML::Syck) | |
52 | +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | |
53 | + | |
54 | +%description | |
55 | +A sane and complete Cucumber implementation in Perl | |
56 | + | |
57 | +%prep | |
58 | +%setup -q -n Test-BDD-Cucumber-%{version} | |
59 | + | |
60 | +%build | |
61 | +%{__perl} Makefile.PL INSTALLDIRS=vendor | |
62 | +make %{?_smp_mflags} | |
63 | + | |
64 | +%install | |
65 | +rm -rf $RPM_BUILD_ROOT | |
66 | + | |
67 | +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | |
68 | + | |
69 | +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; | |
70 | +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; | |
71 | + | |
72 | +%{_fixperms} $RPM_BUILD_ROOT/* | |
73 | + | |
74 | +%check | |
75 | +make test | |
76 | + | |
77 | +%clean | |
78 | +rm -rf $RPM_BUILD_ROOT | |
79 | + | |
80 | +%files | |
81 | +%defattr(-,root,root,-) | |
82 | +%doc CHANGES dist.ini LICENSE README script TODO | |
83 | +%{perl_vendorlib}/* | |
84 | +%{_mandir}/man3/* | |
85 | +%{_mandir}/man1/* | |
86 | +%{_bindir}/pherkin | |
87 | + | |
88 | +%changelog | |
89 | +* Wed Apr 08 2015 Daniel Miranda <danielkza2@gmail.com> 0.32-1 | |
90 | +- Specfile autogenerated by cpanspec 1.78. | ... | ... |