File: cnic-www-cnic.spec

package info (click to toggle)
libwww-cnic-perl 0.38-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 428 kB
  • ctags: 189
  • sloc: perl: 1,217; makefile: 2
file content (63 lines) | stat: -rwxr-xr-x 1,498 bytes parent folder | download | duplicates (2)
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
# $Id:
%define VERSION {{VERSION}}

Name:			cnic-WWW-CNic
Summary:		The CentralNic WWW::CNic Perl Module
Version:		%{VERSION}
Release:		1%{dist}
Epoch:			0
Group:			Libraries
License:		GPLv2
Source:			%{name}-%{version}.tar.gz
Packager:		Achim Regendoerp <achim@centralnic.com>
Vendor:			http://www.centralnic.com/
BuildRoot:		%{_tmppath}/%(whoami)-%{name}-%{VERSION}
AutoReq:		no
BuildArch:		noarch
Requires:		perl-Date-Manip

%description
The CentralNic WWW:CNic Perl Module

%prep

%setup

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/export/cnic/WWW-CNic
cp -Rp * %{buildroot}/export/cnic/WWW-CNic
rm -f %{buildroot}/export/cnic/WWW-CNic/%{name}.spec
mkdir -p %{buildroot}/etc/cron.daily
cat > %{buildroot}/etc/cron.daily/%{name} << EBD
#!/bin/sh
cd /export/cnic/WWW-CNic
perl Makefile.pl
END

%post
if [ "$1" = "1" ] ; then
	cd /export/cnic/WWW-CNic
	perl Makefile.PL
fi

%clean
rm -rf %{buildroot}

%files
%attr(0755, root, root) /etc/cron.daily/%{name}
%attr(0755, root, root) %dir /export/cnic/WWW-CNic
%attr(0644, root, root) /export/cnic/WWW-CNic/*

%changelog
*Tue Aug 17 2010 Achim Regendoerp <achim@centralnic.com> - 20100817
- Added dist to the Release field
*Tue Jun 29 2010 Achim Regendoerp <achim@centralnic.com> - 20100629
- Replaced END with fi in the post routine
- Replaced .pl with .PL in the post routine
*Tue Jun 22 2010 Achim Regendoerp <achim@centralnic.com> - 20100622
- Initial spec file
- Adjusted name capitalization
- Added imssing /* in the attributes