Last change
on this file was
345,
checked in by nanardon, 5 years ago
|
Ensure plugins are found, various minor fixes
|
-
Property cvs2svn:cvs-rev set to
1.6
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
641 bytes
|
Line | |
---|
1 | # $Id$ |
---|
2 | |
---|
3 | # use 5.008; |
---|
4 | use ExtUtils::MakeMaker; |
---|
5 | |
---|
6 | WriteMakefile( |
---|
7 | NAME => 'obsdata', |
---|
8 | VERSION_FROM => 'lib/ObsData.pm', |
---|
9 | EXE_FILES => [ qw(bin/obsdata) ], |
---|
10 | macro => { |
---|
11 | DESTRPMDIR => '$(shell pwd)', |
---|
12 | }, |
---|
13 | ); |
---|
14 | |
---|
15 | package MY; |
---|
16 | |
---|
17 | sub postamble { |
---|
18 | |
---|
19 | <<EOF; |
---|
20 | |
---|
21 | obsdata.spec: obsdata.spec.in Makefile |
---|
22 | \tsed -e 's/\@VERSION@/\$(VERSION)/' < \$< > \$@ |
---|
23 | |
---|
24 | rpm: \$(DISTVNAME).tar.gz obsdata.spec manifest |
---|
25 | \tmkdir \$(DESTRPMDIR)/noarch || : |
---|
26 | \trpmbuild -ba --clean\\ |
---|
27 | \t --define "_sourcedir `pwd`" \\ |
---|
28 | \t --define "_specdir `pwd`" \\ |
---|
29 | \t --define "_srcrpmdir \$(DESTRPMDIR)" \\ |
---|
30 | \t --define "_rpmdir \$(DESTRPMDIR)" \\ |
---|
31 | \t obsdata.spec |
---|
32 | |
---|
33 | EOF |
---|
34 | |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.