ec9f775c87
pck-update: support for package.arch specfile build requirement
...
When this form of requirement is detected it is converted to package@arch as required by smart.
Also add comments and a FIXME about a problem with previous patch of this code and noarch packages.
2014-09-04 14:01:45 +02:00
Davide Madrisan
6f965f674b
pck-update - apply the architecture dependent rules first
...
Apply the architecture dependent rules for unpackaged files
before the common ones. This will also simplify the logic
of the path substitutions.
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2014-08-26 19:59:50 +02:00
Davide Madrisan
26856b5b71
spec-create: Honour the pck version set by the user for specs generated from git
...
specfile.create(): always execute 'git.create_tarball()' with the option
'--pck-version'. This way a user-provided package version will be used
instead of the default one.
This patch will permit to force a user defined package version when desired.
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2014-08-20 21:00:14 +02:00
Davide Madrisan
0ae1946627
spec-create - remove unused code
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2014-08-19 21:41:49 +02:00
Davide Madrisan
93f2d120e9
spec-create: add support for tarballs with autogen.sh and no configure
...
Create a correct %build block in the specfile generated from tarballs
that do not provide any 'configure' script but only an 'autogen,sh' one.
Feature asked by Silvan Calarco.
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2014-08-18 22:26:15 +02:00
Davide Madrisan
d4e5b9a752
pck-update: fix the unpackaged files list issues (x86_64 only)
...
conf/04-rpmbuild-format-unpackaged-filelist.conf
Split the translation rules for the unpackaged files into a common block
('format_unpackaged_file_list_common') and an architecture-specific file
per supported architecture (currently 'i586' and 'x86_64').
This solves the problem of some wrongly filenames reported by autospec
when running on the x86_64 architecture.
The translation rules for Python 2.7 and Python 3 have been updated
to reflect the current support for Python in openmamba.
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2014-08-13 20:54:02 +02:00
c4e2f98d93
pck-update: specify target_cpu when installing build requirements for x86_64 multiarch support
2014-02-22 22:36:10 +01:00
bd287516e3
Merge branch 'master' of ssh://git.openmamba.org:4444/autospec
2013-12-09 10:50:36 +01:00
a7db8b7c72
templates/ghc: new template for ghc modules
2013-12-09 10:49:41 +01:00
Davide Madrisan
169fdd13f5
pck-update: package.generate_name(): return the correct value
...
when executed without the option '-p'.
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2013-11-24 20:49:28 +01:00
Davide Madrisan
1b62dc674c
autospec, pck-update: Update the copyleft messages
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2013-11-07 23:23:30 +01:00
38ccd4e178
spec-create: new options '--packager-fullname' and '--packager-email'
2013-11-07 22:45:44 +01:00
291f42297b
pck-update: new options '--packager-fullname' and '--packager-email'
2013-11-07 22:45:02 +01:00
Davide Madrisan
e2d0437f60
pck-update: new function package.generate_name()
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2013-11-05 22:38:22 +01:00
eb1d352c92
pck-update: fix update of git urls starting with http:// and https://
...
Source URLs from git don't just end with '.git', btw they can be detected by searching for '.git/'
2013-08-04 22:32:56 +02:00
46ec87de31
pck-update: don't clone from git repository at every build is source with current version already exists
2013-08-04 22:23:50 +02:00
Davide Madrisan
5e8e99ecdc
New autospec template ocaml-libs for OCaml libraries.
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2013-07-19 21:33:20 +02:00
b597848f6b
pck-update: fix build requirements generation with multiple providers
...
When --whatprovides returns multiple requirements only consider the first one.
Seen with mono(..) requirements in monodevelop.
2013-07-17 14:32:17 +02:00
8b06b41b20
pck-update, libspec, libapse: support for a special specfile macro to disable scraping from specified sources
...
E.g.: enter the macro below in the specfile to disable scrape sources with indexes 0,2 and 4:
2013-06-05 00:23:06 +02:00
85d14ca35f
pck-update: pass rpmbuild_opts to 'rpmbuild -bl' to fix unpackaged files list formatting with some configurations
2013-05-07 15:00:39 +02:00
Davide Madrisan
2f42c957ac
Documentation: new target 'web': update italian manpage and the help messages of spec-create
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2013-03-04 22:19:53 +01:00
Davide Madrisan
88242edea8
spec-create: fix version detection of tarballs created via a git clone command
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2013-02-17 15:48:41 +01:00
ef3b9277ae
spec-create: fix regexp to detect names starting with 'lib' (sample failing case: lilv)
2013-01-31 06:20:06 +01:00
26f2b6a93d
pck-update: restore support for passing user parameters to rpm
...
This was apparently broken in commit 58edaf3373
:
libspec: new function 'specfile.check_syntax()'
2013-01-04 16:56:05 +01:00
Davide Madrisan
58edaf3373
libspec: new function 'specfile.check_syntax()'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-08 23:32:54 +01:00
Davide Madrisan
88ce40667b
config-getvar: update the help message
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-30 22:24:51 +01:00
Davide Madrisan
6b8099f31d
libtranslate.lib: new library
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-30 22:02:42 +01:00
Davide Madrisan
29e18765b6
autospec, plugins: rework the logic of the command-line options parser
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-25 23:21:06 +01:00
Davide Madrisan
288d828aaa
translation framework: xgettext is buggy: use 'bash --dump-po-strings' instead and rework all the code
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-25 15:54:34 +01:00
Davide Madrisan
0e93767db4
plugins: do not ignore the 'color_scheme' set in the configuration files
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-24 00:11:27 +01:00
Davide Madrisan
5a00359a29
Point to the translation file autospec-all in all modules and libraries
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-23 23:45:02 +01:00
Davide Madrisan
13c66cf193
pck-update: do not ignore the option '--changelog' when the variable 'changelog_userdef' is defined in one of the configuration files
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-20 22:34:57 +01:00
Davide Madrisan
5774796d00
Makefile.env, Makefile's: add some variables to Makefiles.env and use them in the make targets 'pot-files'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-19 23:30:22 +01:00
Davide Madrisan
f525086f8b
Makefile: new target 'pot-files'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-19 22:45:31 +01:00
Davide Madrisan
5008e884d4
libcfg.lib, config-getvar: option '-C|--config': accept a list of configuration files containing wilcards
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-15 22:55:31 +01:00
Davide Madrisan
343e644abe
pck-update: fix a string translation by adding the missing '$' prefix
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-15 19:31:03 +01:00
Davide Madrisan
15f3575b2e
autospec, plugins: add the option '-C|--config' for selecting a different user configuration file or list of user configuration files
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-14 22:42:08 +01:00
Davide Madrisan
a2056ba9d5
autospec, autospec.conf, plugins: replace the option '--colorize' by '--colors <color-theme>'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-11 18:56:52 +01:00
Davide Madrisan
0f301dc9fa
all plugins: the option '--colorize-theme' must set colorize to '1'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-10 22:55:40 +01:00
Davide Madrisan
cd7d6b663d
autospec,plugins,libraries: a color scheme can be selected now by using the new command-line option '--colorize-theme'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-10 15:47:12 +01:00
Davide Madrisan
b5a1a17876
plugins/*: Execute 'notify.disable_colors()' when 'colorize' is set to '0' (disabled) to ignore color redefinitions made by user
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-09 22:57:36 +01:00
Davide Madrisan
8b6e2b2c50
config-getvar: update copyleft
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-08 20:33:11 +01:00
Davide Madrisan
45b6f0d61d
pck-update: restore build requirement detection for *.so requirements
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-07 22:45:44 +01:00
Davide Madrisan
f929f20486
config-getvar: fix the help message (incorrect list of default files)
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-07 22:24:08 +01:00
Davide Madrisan
15825d0a4b
spec-create: new option '--changelog'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-07 21:26:51 +01:00
Davide Madrisan
941504de3c
pck-update: add a warning message when a requirement is ignored
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-01 23:11:39 +01:00
Davide Madrisan
3716f5e0c2
pck-update: try to avoid reporting package requirements set with 'Requires:' as build requirements. Unless not better identified requirements are in 'a(b)' form don't report them as build requirements to avoid breaking stage1 builds and causing unneeded circular dependencies
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-01 22:27:12 +01:00
Davide Madrisan
f107a20bf8
libnetwork.lib; pck-update (action 3,5): improve the functions 'git.download()' and 'git.create_tarball()' by adding the option '--pck-version' and use it when calling 'git.download' in pck-update
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-30 23:17:59 +01:00
Davide Madrisan
80e22280fe
pck-update (action 5): fix the package update from a git repository
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-30 19:52:19 +01:00
Davide Madrisan
7cc90d2efb
pck-update (action 3,5): preliminary support for source files updates from a git repository
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-29 23:15:58 +01:00