public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 37b505df98dcef881e4481e6a8602fe32203844c
Date: Tue, 09 Oct 2012 14:32:25 +0200	[thread overview]
Message-ID: <20121009123226.577AB200C5@argus.ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 3688 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 3.x development tree".

The branch, master has been updated
       via  37b505df98dcef881e4481e6a8602fe32203844c (commit)
       via  bc83f18086e88adab2a63b65cafc7e146b91d743 (commit)
       via  deee147b09972aab9df623f42089f9b2df505f14 (commit)
      from  5e82b005adcd7992d4961acd4eca68401721db5a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 37b505df98dcef881e4481e6a8602fe32203844c
Merge: bc83f18 5e82b00
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Oct 9 14:32:21 2012 +0200

    Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x

commit bc83f18086e88adab2a63b65cafc7e146b91d743
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Oct 9 14:27:32 2012 +0200

    libsolv: Use new cmake macro.

commit deee147b09972aab9df623f42089f9b2df505f14
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Oct 9 14:26:00 2012 +0200

    cmake: Add pakfire macro.
    
    This macro makes it more easy to build packages in
    a consistent way with cmake.

-----------------------------------------------------------------------

Summary of changes:
 cmake/cmake.macro  |   18 ++++++++++++++++++
 cmake/cmake.nm     |    8 ++++++--
 libsolv/libsolv.nm |    7 +++----
 3 files changed, 27 insertions(+), 6 deletions(-)
 create mode 100644 cmake/cmake.macro

Difference in files:
diff --git a/cmake/cmake.macro b/cmake/cmake.macro
new file mode 100644
index 0000000..222a950
--- /dev/null
+++ b/cmake/cmake.macro
@@ -0,0 +1,18 @@
+#
+# cmake macros
+#
+
+__cmake = /usr/bin/cmake
+if "${lib}" == "lib64"
+	__cmake_lib_suffix = -DLIB_SUFFIX=64
+end
+
+cmake = %{__cmake} \
+	-DCMAKE_VERBOSE_MAKEFILE=ON \
+	-DCMAKE_INSTALL_PREFIX:PATH=%{prefix} \
+	-DINCLUDE_INSTALL_DIR:PATH=%{includedir} \
+	-DLIB_INSTALL_DIR:PATH=%{libdir} \
+	-DSYSCONF_INSTALL_DIR:PATH=%{sysconfdir} \
+	-DSHARE_INSTALL_PREFIX:PATH=%{datadir} \
+	%{__cmake_lib_suffix} \
+	-DBUILD_SHARED_LIBS:BOOL=ON
diff --git a/cmake/cmake.nm b/cmake/cmake.nm
index ddbe23a..c037f87 100644
--- a/cmake/cmake.nm
+++ b/cmake/cmake.nm
@@ -5,7 +5,7 @@
 
 name       = cmake
 version    = 2.8.4
-release    = 1
+release    = 2
 
 groups     = Development/Tools
 url        = http://www.cmake.org
@@ -60,12 +60,16 @@ build
 
 	install
 		cd build && make install DESTDIR=%{BUILDROOT}
+
+		# Install pakfire macro.
+		mkdir -p %{BUILDROOT}/usr/lib/pakfire/macros
+		install -v -m 644 %{DIR_SOURCE}/cmake.macro \
+			%{BUILDROOT}/usr/lib/pakfire/macros
 	end
 end
 
 packages
 	package %{name}
-	end
 
 	package %{name}-debuginfo
 		template DEBUGINFO
diff --git a/libsolv/libsolv.nm b/libsolv/libsolv.nm
index 5a9963b..7b84134 100644
--- a/libsolv/libsolv.nm
+++ b/libsolv/libsolv.nm
@@ -6,7 +6,7 @@
 name       = libsolv
 version    = 0.0.0
 git_ver    = c02d759
-release    = 5.git%{git_ver}
+release    = 6.git%{git_ver}
 
 maintainer = Michael Tremer <michael.tremer(a)ipfire.org>
 groups     = System/Libraries
@@ -26,7 +26,7 @@ source_dl  =
 build
 	requires
 		gcc-c++
-		cmake
+		cmake >= 2.8.4-2
 		db4-devel
 		expat-devel
 		zlib-devel
@@ -41,8 +41,7 @@ build
 
 	build
 		mkdir build
-		cd build && cmake .. \
-			-DCMAKE_INSTALL_PREFIX=/usr \
+		cd build && %{cmake} .. \
 			-DCMAKE_BUILD_TYPE=RelWithDebInfo \
 			-DENABLE_PERL=0 \
 			-DENABLE_PYTHON=0 \


hooks/post-receive
--
IPFire 3.x development tree

                 reply	other threads:[~2012-10-09 12:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121009123226.577AB200C5@argus.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox