Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
ae31587e
Commit
ae31587e
authored
Aug 28, 2016
by
Constantin Rack
Committed by
GitHub
Aug 28, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2094 from bluca/obs_draft
Problem: cannot build packages with DRAFT APIs
parents
493f17cc
abd37423
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
rules
packaging/debian/rules
+22
-1
zeromq.spec
packaging/redhat/zeromq.spec
+11
-1
No files found.
packaging/debian/rules
View file @
ae31587e
...
...
@@ -10,6 +10,27 @@ ifeq ($(DEB_BUILD_ARCH_OS), kfreebsd)
DO_TEST
=
no
endif
DRAFTS
=
no
# OBS build: add
# Macros:
# %_with_drafts 1
# at the BOTTOM of the OBS prjconf
OBS_BUILD_CFG
=
/.build/build.dist
ifeq
(
"$(wildcard $(OBS_BUILD_CFG))"
,
""
)
BUILDCONFIG
=
$(
shell
ls
-1
/usr/src/packages/SOURCES/_buildconfig
*
|
head
-n
1
)
endif
ifneq
(
"$(wildcard $(OBS_BUILD_CFG))"
,
""
)
ifneq
(
"$(shell grep drafts $(OBS_BUILD_CFG))"
,
""
)
DRAFTS
=
yes
endif
endif
# User build: DEB_BUILD_OPTIONS=drafts dpkg-buildpackage
ifneq
(,$(findstring
drafts,$(DEB_BUILD_OPTIONS)))
DRAFTS
=
yes
endif
override_dh_clean
:
dh_clean
find
$(CURDIR)
-type
s
-exec
rm
{}
\;
...
...
@@ -17,7 +38,7 @@ override_dh_clean:
rm
-f
config.log
override_dh_auto_configure
:
dh_auto_configure
--
--with-pgm
--with-libsodium
dh_auto_configure
--
--with-pgm
--with-libsodium
--enable-drafts
=
$(DRAFTS)
override_dh_auto_test
:
ifeq
(,$(filter
nocheck,$(DEB_BUILD_OPTIONS)))
...
...
packaging/redhat/zeromq.spec
View file @
ae31587e
# To build with draft APIs, use "--with drafts" in rpmbuild for local builds or add
# Macros:
# %_with_drafts 1
# at the BOTTOM of the OBS prjconf
%bcond_with drafts
%if %{with drafts}
%define DRAFTS yes
%else
%define DRAFTS no
%endif
%define lib_name libzmq5
Name: zeromq
Version: 4.2.0
...
...
@@ -103,7 +113,7 @@ sed -i "s/openpgm-[0-9].[0-9]/%{openpgm_pc}/g" \
%build
autoreconf -fi
%configure \
%configure
--enable-drafts=%{DRAFTS}
\
%{?_with_libsodium} \
%{?_without_libsodium} \
%{?_with_pgm} \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment