File: cdk-perl.spec

package info (click to toggle)
libcdk-perl 20130816-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,284 kB
  • ctags: 430
  • sloc: perl: 6,151; sh: 2,997; makefile: 24
file content (86 lines) | stat: -rw-r--r-- 2,060 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# $Revision: 1.17 $, $Date: 2013/08/16 22:20:11 $
#
# Conditional build:
# _without_tests - do not perform "make test"
#
%include %{_rpmconfigdir}/macros.perl
Summary:	Perl extensions for CDK
Summary(pl):	Rozszerzenie Perla dla CDK
Name:		cdk-perl
Version:	5.0
Release:	20130816
License:	distributable 
Group:		Development/Languages/Perl
Source0:	ftp://invisible-island.net/cdk/cdk-perl-%{release}.tgz
#BuildRequires:	cdk-devel
#BuildRequires:	perl >= 5.005_03-10
#BuildRequires:	rpm-perlprov
#BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
This is the Perl5 extension to the Cdk library written by Mike Glover.
All the copyright notices from the Cdk C distribution also apply to
the extension.

%description -l pl
To jest rozszerzenie Perla do biblioteki Cdk. Wszystkie copyrighty z
dystrybucji Cdk dotycz take tego rozszerzenia.

%prep
%define debug_package %{nil}

%define doc_dir       %{_defaultdocdir}/%{name}-%{version}
%define demos_dir     %{doc_dir}/demos
%define examples_dir  %{doc_dir}/examples

%setup -q -n cdk-perl-%{release}

%build

# echo "perl_sitelib  %{perl_sitelib}"
# echo "perl_sitearch %{perl_sitearch}"
# echo "perl_archlib  %{perl_archlib}"
# echo "perl_privlib  %{perl_privlib}"

./configure

%{__make}

%{!?_without_tests:%{__make} test}

%install
rm -rf %{buildroot}

install -d %{buildroot}%{perl_archlib}

%{__make} install \
	BUILDDIR=%{buildroot} \
	DESTDIR=%{buildroot} 

chmod -R u+w %{buildroot} 

install -d         %{buildroot}%{doc_dir}
install CHANGES    %{buildroot}%{doc_dir}
install COPYING    %{buildroot}%{doc_dir}
install README     %{buildroot}%{doc_dir}

install -d         %{buildroot}%{demos_dir}
install demos/*    %{buildroot}%{demos_dir}

install -d         %{buildroot}%{examples_dir}
install examples/* %{buildroot}%{examples_dir}

%clean
rm -rf %{buildroot}

%files 
%{perl_archlib}/auto/Cdk
%{perl_archlib}/perllocal.pod
%{perl_archlib}/Cdk.pm
%{perl_archlib}/Cdk
%{doc_dir}

%changelog

* Sun Jul 14 2013 Thomas Dickey
- adapted from spec-file from pld.org dated 2002/09/28