-
Notifications
You must be signed in to change notification settings - Fork 1
/
cpanspec.spec
178 lines (132 loc) · 5.16 KB
/
cpanspec.spec
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
Name: cpanspec
Version: 1.78
Release: 4%{?dist}
Summary: RPM spec file generation utility
License: GPL+ or Artistic
Group: Development/Tools
URL: http://cpanspec.sourceforge.net/
Source0: http://dl.sourceforge.net/cpanspec/cpanspec-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Module::Build)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: /usr/bin/curl
Requires: /usr/bin/repoquery
Requires: rpm-build
%description
cpanspec generates spec files (and, optionally, source or even binary
packages) for Perl modules from CPAN for Fedora. The quality of the spec
file is our primary concern. It is assumed that maintainers will need to
do some (hopefully small) amount of work to clean up the generated spec
file to make the package build and to verify that all of the information
contained in the spec file is correct.
%prep
%setup -q
%build
%{__perl} Build.PL installdirs=vendor
./Build
%install
rm -rf $RPM_BUILD_ROOT
./Build install destdir=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
# No tests.
#%check
#./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Artistic BUGS Changes COPYING TODO
%{_bindir}/*
%{_mandir}/man1/*
%changelog
* Mon Jan 11 2010 David Hrbáč <[email protected]> - 1.78-4
- initial build
* Fri Dec 4 2009 Stepan Kasal <[email protected]> - 1.78-4
- rebuild against perl 5.10.1
* Fri Jul 24 2009 Fedora Release Engineering <[email protected]> - 1.78-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Feb 24 2009 Fedora Release Engineering <[email protected]> - 1.78-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Fri Jan 16 2009 Steven Pritchard <[email protected]> 1.78-1
- Update to 1.78.
* Mon Jun 16 2008 Steven Pritchard <[email protected]> 1.77-1
- Update to 1.77.
* Mon Jun 16 2008 Steven Pritchard <[email protected]> 1.76-1
- Update to 1.76.
* Thu Jun 12 2008 Steven Pritchard <[email protected]> 1.75-2
- Require rpm-build.
* Mon May 05 2008 Steven Pritchard <[email protected]> 1.75-1
- Update to 1.75 (which really fixes BZ#437804).
- Require curl instead of wget (BZ#438245).
- Update description.
* Mon Mar 17 2008 Steven Pritchard <[email protected]> 1.74-3
- Fix to work properly with 5.10.0 (BZ#437804).
* Thu Mar 06 2008 Tom "spot" Callaway <[email protected]> - 1.74-2
- Rebuild for new perl
* Tue Dec 11 2007 Steven Pritchard <[email protected]> 1.74-1
- Update to 1.74.
- Update License tag.
* Sun Jul 22 2007 Steven Pritchard <[email protected]> 1.73-1
- Update to 1.73.
* Fri Jul 13 2007 Steven Pritchard <[email protected]> 1.72-1
- Update to 1.72.
* Fri Jun 29 2007 Steven Pritchard <[email protected]> 1.71-1
- Update to 1.71.
- Remove "Extras" from the description.
- Use the __perl macro instead of calling perl directly.
* Mon Mar 12 2007 Steven Pritchard <[email protected]> 1.70-1
- Update to 1.70.
* Mon Oct 16 2006 Steven Pritchard <[email protected]> 1.69.1-1
- Update to 1.69.1.
* Tue Oct 03 2006 Steven Pritchard <[email protected]> 1.69-1
- Update to 1.69.
- Use _fixperms macro instead of our own chmod incantation.
* Sat Sep 16 2006 Steven Pritchard <[email protected]> 1.68-2
- Fix find option order.
* Thu Jul 20 2006 Steven Pritchard <[email protected]> 1.68-1
- Update to 1.68.
- Include Changes.
* Thu Jul 13 2006 Steven Pritchard <[email protected]> 1.67-1
- Update to 1.67.
* Thu May 18 2006 Steven Pritchard <[email protected]> 1.66-1
- Update to 1.66.
- Drop regex patch.
- cpanspec now uses repoquery.
* Thu May 04 2006 Steven Pritchard <[email protected]> 1.65-2
- Add cpanspec-1.65-regex.patch (fix broken regex, from 1.66 CVS).
* Wed Apr 26 2006 Steven Pritchard <[email protected]> 1.65-1
- Update to 1.65.
- cpanget requires wget.
* Wed Mar 24 2006 Steven Pritchard <[email protected]> 1.64-1
- Update to 1.64.
* Wed Mar 24 2006 Steven Pritchard <[email protected]> 1.63-1
- Update to 1.63.
* Wed Mar 22 2006 Steven Pritchard <[email protected]> 1.62-1
- Update to 1.62.
* Sat Mar 11 2006 Steven Pritchard <[email protected]> 1.61-1
- Update to 1.61.
* Tue Mar 07 2006 Steven Pritchard <[email protected]> 1.60-1
- Update to 1.60.
* Wed Feb 01 2006 Steven Pritchard <[email protected]> 1.59-2
- URL/Source0 on SourceForge.
- Use a more appropriate Group.
* Tue Sep 20 2005 Steven Pritchard <[email protected]> 1.59-1
- Update to 1.59.
* Mon Sep 19 2005 Steven Pritchard <[email protected]> 1.58-1
- Update to 1.58.
- Comment out bogus URL and Source0 URL.
* Fri Sep 16 2005 Steven Pritchard <[email protected]> 1.55-1
- Update to 1.55.
- Include man page.
- Drop explicit module dependencies. (rpmbuild will figure it out.)
* Fri Sep 16 2005 Steven Pritchard <[email protected]> 1.54-1
- Update to 1.54.
* Mon Sep 05 2005 Steven Pritchard <[email protected]> 1.49-1
- Update to 1.49.
- Remove unneeded BuildRequires (no tests).
- Remove explicit core module requirements.
* Sat Sep 03 2005 Steven Pritchard <[email protected]> 1.46-1
- Initial rpm release.