Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
cbff0a7b
Commit
cbff0a7b
authored
13 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Work on 3.1 packaging
parent
db61e9af
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
build/.cvsignore
+1
-0
1 addition, 0 deletions
build/.cvsignore
build/makepack-dolibarr.pl
+14
-7
14 additions, 7 deletions
build/makepack-dolibarr.pl
build/rpm/README
+5
-3
5 additions, 3 deletions
build/rpm/README
with
20 additions
and
10 deletions
build/.cvsignore
+
1
−
0
View file @
cbff0a7b
...
@@ -16,3 +16,4 @@ html
...
@@ -16,3 +16,4 @@ html
*.deb
*.deb
*.dsc
*.dsc
*.tar.gz
*.tar.gz
*.changes
This diff is collapsed.
Click to expand it.
build/makepack-dolibarr.pl
+
14
−
7
View file @
cbff0a7b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
# \file build/makepack-dolibarr.pl
# \file build/makepack-dolibarr.pl
# \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps)
# \brief Dolibarr package builder (tgz, zip, rpm, deb, exe, aps)
# \version $Id: makepack-dolibarr.pl,v 1.12
6
2011/07/31 1
7:14:03
eldy Exp $
# \version $Id: makepack-dolibarr.pl,v 1.12
7
2011/07/31 1
8:06:36
eldy Exp $
# \author (c)2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
# \author (c)2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
...
@@ -11,7 +11,7 @@ use Cwd;
...
@@ -11,7 +11,7 @@ use Cwd;
$PROJECT
=
"
dolibarr
";
$PROJECT
=
"
dolibarr
";
$MAJOR
=
"
3
";
$MAJOR
=
"
3
";
$MINOR
=
"
1
";
$MINOR
=
"
1
";
$BUILD
=
"
0-
dev
";
# Mettre x pour release, x-dev pour dev, x-beta pour beta, x-rc pour release candidate
$BUILD
=
"
0-
beta
";
# Mettre x pour release, x-dev pour dev, x-beta pour beta, x-rc pour release candidate
$RPMSUBVERSION
=
"
auto
";
# auto use value found into BUILD
$RPMSUBVERSION
=
"
auto
";
# auto use value found into BUILD
@LISTETARGET
=
("
TGZ
","
ZIP
","
RPM
","
DEB
","
APS
","
EXEDOLIWAMP
","
SNAPSHOT
");
# Possible packages
@LISTETARGET
=
("
TGZ
","
ZIP
","
RPM
","
DEB
","
APS
","
EXEDOLIWAMP
","
SNAPSHOT
");
# Possible packages
...
@@ -48,7 +48,7 @@ if (-d "/usr/src/RPM") {
...
@@ -48,7 +48,7 @@ if (-d "/usr/src/RPM") {
use
vars
qw/ $REVISION $VERSION /
;
use
vars
qw/ $REVISION $VERSION /
;
$REVISION
=
'
$Revision: 1.12
6
$
';
$REVISION
=~
/\s(.*)\s/
;
$REVISION
=
$
1
;
$REVISION
=
'
$Revision: 1.12
7
$
';
$REVISION
=~
/\s(.*)\s/
;
$REVISION
=
$
1
;
$VERSION
=
"
1.0 (build
$REVISION
)
";
$VERSION
=
"
1.0 (build
$REVISION
)
";
...
@@ -418,11 +418,15 @@ if ($nboftargetok) {
...
@@ -418,11 +418,15 @@ if ($nboftargetok) {
$ARCH
=
'
noarch
';
$ARCH
=
'
noarch
';
if
(
$RPMDIR
eq
"")
{
$RPMDIR
=
$ENV
{'
HOME
'}
.
"
/rpmbuild
";
}
if
(
$RPMDIR
eq
"")
{
$RPMDIR
=
$ENV
{'
HOME
'}
.
"
/rpmbuild
";
}
$newbuild
=
$BUILD
;
$newbuild
=
$BUILD
;
$newbuild
=~
s/(dev|alpha)/0/gi
;
# dev
# For fedora
$newbuild
=~
s/beta/1/gi
;
# beta
$newbuild
=~
s/(dev|alpha)/0.1.a/gi
;
# dev
$newbuild
=~
s/rc./2/gi
;
# rc
$newbuild
=~
s/beta/0.2.beta1/gi
;
# beta
$newbuild
=~
s/rc./0.3.rc1/gi
;
# rc
if
(
$newbuild
!~
/-/
)
{
$newbuild
.=
'
-3
';
}
# finale
if
(
$newbuild
!~
/-/
)
{
$newbuild
.=
'
-3
';
}
# finale
# now newbuild is 0-0 or 0-3 for example
#$newbuild =~ s/(dev|alpha)/0/gi; # dev
#$newbuild =~ s/beta/1/gi; # beta
#$newbuild =~ s/rc./2/gi; # rc
#if ($newbuild !~ /-/) { $newbuild.='-3'; } # finale
$REL1
=
$newbuild
;
$REL1
=~
s/-.*$//gi
;
$REL1
=
$newbuild
;
$REL1
=~
s/-.*$//gi
;
if
(
$RPMSUBVERSION
eq
'
auto
')
{
$RPMSUBVERSION
=
$newbuild
;
$RPMSUBVERSION
=~
s/^.*-//gi
;
}
if
(
$RPMSUBVERSION
eq
'
auto
')
{
$RPMSUBVERSION
=
$newbuild
;
$RPMSUBVERSION
=~
s/^.*-//gi
;
}
print
"
Version is
$MAJOR
.
$MINOR
.
$REL1
-
$RPMSUBVERSION
\n
";
print
"
Version is
$MAJOR
.
$MINOR
.
$REL1
-
$RPMSUBVERSION
\n
";
...
@@ -709,12 +713,15 @@ if ($nboftargetok) {
...
@@ -709,12 +713,15 @@ if ($nboftargetok) {
$ret
=
`
mv
$BUILDROOT
/*_all.deb "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*_all.deb "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*.dsc "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*.dsc "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*.tar.gz "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*.tar.gz "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*.changes "
$DESTI
/"
`;
}
}
else
else
{
{
print
"
Move *_all.deb to
$DESTI
\n
";
print
"
Move *_all.deb to
$DESTI
\n
";
$ret
=
`
mv
$BUILDROOT
/*_all.deb "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*.dsc "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*.dsc "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*.tar.gz "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*.tar.gz "
$DESTI
/"
`;
$ret
=
`
mv
$BUILDROOT
/*.changes "
$DESTI
/"
`;
}
}
next
;
next
;
}
}
...
...
This diff is collapsed.
Click to expand it.
build/rpm/README
+
5
−
3
View file @
cbff0a7b
...
@@ -27,11 +27,13 @@ with format RPM (for Redhat, Mandriva, ...).
...
@@ -27,11 +27,13 @@ with format RPM (for Redhat, Mandriva, ...).
To submit a package to Fedora:
To submit a package to Fedora:
- Create account on bugzilla.redhat.com
- Create account on fedoraproject.org
- Create SRPMS package.
- Upload package onf http://fedorapeople.org
- Create a bug with form https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedora&format=fedora-review
- Create a bug with form https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedora&format=fedora-review
This is example of content of review field (used for Bug 723326):
This is example of content of review field (used for Bug 723326):
Spec URL: http://www.dolibarr.org/files/fedora/dolibarr.spec
SRPMS URL: http://www.dolibarr.org/files/fedora/dolibarr-x.y.z-xxx.src.rpm
SRPM URL: http://www.dolibarr.org/files/fedora/dolibarr-3.1.0-0.src.rpm
Description: Dolibarr ERP & CRM is an easy to use open source/free software
Description: Dolibarr ERP & CRM is an easy to use open source/free software
for small and medium companies, foundations or freelances. It includes
for small and medium companies, foundations or freelances. It includes
different features for Enterprise Resource Planning (ERP) and Customer
different features for Enterprise Resource Planning (ERP) and Customer
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment