129 Commits

Author SHA1 Message Date
Dinis
907b9853d7 Don't assume bin in %files from package files
Do not assume module has scripts to install just because the package ships with scripts/tools/bin folder(s). This causes most modules to include extra contents in the %files section:
%{_bindir}/*
%{_mandir}/man1/*
2015-04-17 17:29:53 +01:00
Steven Pritchard
2123bdcc9f Merge pull request #7 from contyk/master
Filter out all META.* and *.ini files from %doc
2014-12-05 17:30:08 -06:00
Petr Šabata
bf1eedf57c Filter out all META.* and *.ini files from %doc
META.json and DistZilla's dist.ini are pretty common these days and
we're not interested in them, so let's drop them.

Signed-off-by: Petr Šabata <contyk@redhat.com>
2014-12-05 15:05:58 +01:00
Steven Pritchard
b668989a10 Merge pull request #6 from contyk/master
Escape slashes in filters
2014-11-12 09:59:42 -06:00
Petr Šabata
1052ae3f56 Escape slashes in filters
Simply escape slashes in --filter-requires and --filter-provides
options, resolving a five year old bug [0].

[0] https://bugzilla.redhat.com/show_bug.cgi?id=544738

Signed-off-by: Petr Šabata <contyk@redhat.com>
2014-11-06 16:51:47 +01:00
Steven Pritchard
533d40db4e Merge pull request #5 from Leont/master
Fix build arguments for Build.PL spec conformance
2014-10-24 12:01:14 -05:00
Leon Timmermans
ce89117d8d Fix build arguments for Build.PL spec conformance
This makes it compatible with tools such as Module::Build::Tiny
2013-05-20 15:08:38 +02:00
Steven Pritchard
1d69542e23 Quiet verbose messages. 2011-09-17 17:25:19 -05:00
Steven Pritchard
755ffcb6f8 Drop extra linefeed in verbose messages. 2011-09-17 17:15:14 -05:00
Steven Pritchard
fb2a2543b4 Merge pull request #3 from seveas/master
As requested
2011-09-02 13:53:50 -07:00
Dennis Kaarsemaker
7eb1084445 Resurrect cpanget as a symlink to cpanspec
- Update the POD in cpanspec to document its use as cpanget
- Subclass Module::Build to create the symlinks to cpanspec and
  cpanspec.1p at build time.
2011-09-01 22:25:11 +02:00
Dennis Kaarsemaker
e73f961c6a Ignore build products and vim swapfiles 2011-09-01 21:36:18 +02:00
Steven Pritchard
4a6e470e16 It's 2011 now. 2011-09-01 11:40:56 -05:00
Steven Pritchard
43332e6ebe Update Changes and TODO. 2011-09-01 11:39:17 -05:00
Steven Pritchard
f755a743d0 Assume --download-only when run as cpanget. 2011-09-01 11:21:31 -05:00
Steven Pritchard
3ae5f374d7 Merge branch 'master' of git://github.com/seveas/cpanspec into seveas-pull-request 2011-09-01 09:25:39 -05:00
Dennis Kaarsemaker
a3de9e049f Update metadata to reflect recent changes 2011-08-31 21:36:09 +02:00
Dennis Kaarsemaker
072bbd741b Silence output about skipping dependencies 2011-08-31 21:03:57 +02:00
Dennis Kaarsemaker
8eb8dc287f Check the search path for rpm, rpmbuild, etc. 2011-08-31 21:00:26 +02:00
Dennis Kaarsemaker
f3017f18fc Add --download-only to replace cpanget 2011-08-31 20:42:46 +02:00
Gavin Carr
db244b62a8 Add CC0 licence. 2011-08-31 12:50:24 -05:00
Gavin Carr
b0bdaf2359 Change %{optimize} to %{optflags}. 2011-08-31 12:48:04 -05:00
Gavin Carr
27e36f6c3d Make tarball directory version component optional. 2011-08-31 12:46:21 -05:00
Dennis Kaarsemaker
73d854d3b3 Remove completed features from TODO 2011-08-31 19:03:09 +02:00
Steven Pritchard
84d26ab5af Merge pull request #2 from seveas/master
Several new features for even more usefulness
2011-08-31 09:55:00 -07:00
Dennis Kaarsemaker
2c6340efb0 Add an option to print the generated specfile to stdout
This is useful when you want to postprocess the generated specfile in
some way. We use this in our build system to merge in old changelogs and
customizations.
2011-08-31 18:36:27 +02:00
Dennis Kaarsemaker
3b953c0923 Allow building rpms for slightly older perl versions
The --old version is a bit of a harsh measure when merely building
specfiles for centos 4 (perl 5.8.5) rpms on centos 5 (perl 5.8.8). This
patch allows you to specify a minimum version to support and will use
Module::Corelist instead of rpm to generate the corelist for that
version.
2011-08-31 18:35:04 +02:00
Dennis Kaarsemaker
1cd8735b7c Check all build requirements against CPAN
- If a module is provided by ourselves: don't add a build dependency
- If a module does not exist on CPAN: don't add a build dependency. It
  is most likely a module shipped by the module itself to support tests
2011-08-31 18:35:03 +02:00
Dennis Kaarsemaker
28dc8e9339 Stop losing dependency version information
cpanspec would unconditionally set the version requirement to 0 for
Module::Build, ExtUtils::MakeMaker and dependencies detected in tests.
This is not correct if the module already has specified a versioned
dependency.
2011-08-31 18:35:03 +02:00
Dennis Kaarsemaker
c406955800 Strip any version comparison operator from the 'perl' build requirement
Because cpanspec does things with the epoch, and already adds version
comparison operators itself, they should be stripped from whatever
META.yml specifies so cpanspec does not generate invalid spec files.
2011-08-31 18:35:03 +02:00
Dennis Kaarsemaker
5516e78b17 Add entries from configure_requres in META.yml as build dependencies 2011-08-31 18:35:03 +02:00
Dennis Kaarsemaker
38694a59b1 Detect scripts better
cpanspec tries to detect when scripts will be installed, so it can add
man1 and bindir entries to %files. This patch adds some more heuristics
to detect more cases of scri[ts being installed.
2011-08-31 18:35:03 +02:00
Dennis Kaarsemaker
a84c2839ce Don't let Module::AutoInstall run interactively 2011-08-31 18:35:03 +02:00
Dennis Kaarsemaker
b3723347b2 Add a simple blacklisting mechanism
Some modules are detected as dependencies due to looking in tests. This
patch blacklists some common 'false positives'
2011-08-31 18:35:03 +02:00
Steven Pritchard
3d7b8a4f38 Add script detection (patch from Jeff Fearn). 2010-12-08 09:17:32 -06:00
stevenpritchard
8921253da7 * curl doesn't tell us what it is downloading, so be more verbose.
* Don't download files with curl unless they've been modified.
2010-02-13 20:25:30 +00:00
stevenpritchard
1e000c55ac Extract dependencies from tests. 2009-01-22 01:48:06 +00:00
stevenpritchard
5ab6da388b It's 2009. Update Copyright.
1.78 release.
2009-01-16 20:35:17 +00:00
stevenpritchard
4e33d99852 Assume that *.inl is a hint that this isn't noarch.
Add note to BUGS that Mail::ClamAV gives us trouble.
2008-07-09 17:37:15 +00:00
stevenpritchard
2624faad38 Ignore pax_global_header file. 2008-07-02 18:27:25 +00:00
stevenpritchard
ba39225a62 Send STDIN to /dev/null in the child when executing Makefile.PL. (Bug report from Peter Willis.) 2008-06-23 23:55:11 +00:00
stevenpritchard
fc9af6c480 Add note for Data::Dump::Streamer breakage. 2008-06-21 18:40:41 +00:00
stevenpritchard
0b48c293a2 Fix up the license list some more. 2008-06-17 20:47:40 +00:00
stevenpritchard
0fe71962b8 Only use --nodeps if we're only building a source rpm. 2008-06-16 19:24:04 +00:00
stevenpritchard
36bae4ff8d Add note to BUGS. 2008-06-16 18:45:17 +00:00
stevenpritchard
87c92858e7 Drop dependency on Module::CoreList and just fetch the list from rpm. 2008-06-16 18:43:22 +00:00
stevenpritchard
a06e38d230 1.75 release 2008-05-05 22:04:51 +00:00
stevenpritchard
f4424d02d1 Try $] as-is and numeric when we use it with Module::CoreList. 2008-05-05 20:17:50 +00:00
stevenpritchard
47a5b7878e The best README is probably the one with the shortest filename. 2008-05-05 18:39:21 +00:00
stevenpritchard
4825c92807 * Make sure $] is numeric before we use it with Module::CoreList.
* Switch from wget to curl in cpanget since wget is broken in Fedora 9.
2008-04-25 20:18:41 +00:00