Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
postgresql-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PostgreSQL
postgresql-common
Commits
4c4a3809
Commit
4c4a3809
authored
7 years ago
by
Christoph Berg
Browse files
Options
Downloads
Patches
Plain Diff
Set rpm version number from debian/changelog
Use "make rpmbuild" to set the necessary 'version' rpm macro.
parent
a23b1e2b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+5
-4
5 additions, 4 deletions
Makefile
rpm/postgresql-common.spec
+1
-1
1 addition, 1 deletion
rpm/postgresql-common.spec
with
6 additions
and
5 deletions
Makefile
+
5
−
4
View file @
4c4a3809
...
...
@@ -31,13 +31,11 @@ clean:
# rpm
DPKG_VERSION
=
$(
shell
sed
-ne
'1s/.*(//; 1s/
)
.*//p'
debian/changelog
)
RPM_VERSION
=
$(
shell
awk
'/^Version:/ { print $$2
}
'
rpm/postgresql-common.spec
)
RPMDIR
=
$(
HOME
)
/rpmbuild
TARBALL
=
$(
RPMDIR
)
/SOURCES/postgresql-common_
$(
DPKG_VERSION
)
.tar.xz
rpm
:
$(TARBALL)
[
"
$(
DPKG_VERSION
)
"
=
"
$(
RPM_VERSION
)
"
]
rpmbuild
-ba
rpm/postgresql-common.spec
rpmbuild
:
$(TARBALL)
rpmbuild
--define
=
'version
$(
DPKG_VERSION
)
'
-ba
rpm/postgresql-common.spec
$(TARBALL)
:
mkdir
-p
$(
dir
$(
TARBALL
))
...
...
@@ -46,5 +44,8 @@ $(TARBALL):
rpminstall
:
sudo
rpm
--upgrade
--replacefiles
--replacepkgs
-v
$(
RPMDIR
)
/RPMS/noarch/
*
-
$(
DPKG_VERSION
)
-
*
.rpm
rpmremove
:
-
sudo
rpm
-e
postgresql-common postgresql-client-common postgresql-server-dev-all
rpmclean
:
rm
-rf
$(
TARBALL
)
$(
RPMDIR
)
/BUILD
This diff is collapsed.
Click to expand it.
rpm/postgresql-common.spec
+
1
−
1
View file @
4c4a3809
Name: postgresql-common
Version:
189
Version:
%{version}
Release: 1%{?dist}
BuildArch: noarch
Summary: PostgreSQL database-cluster manager
...
...
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