ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ildar Mulyukov <ildar@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] cmake soprano
Date: Mon, 03 Dec 2007 18:54:48 +0600
Message-ID: <1196686488l.26817l.2l@ildar.innovations.kz> (raw)
In-Reply-To: <200712031428.36555.kde@kde.kiev.ua> (from kde@kde.kiev.ua on Mon Dec  3 18:28:30 2007)

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

On 03.12.2007 18:28:30, Denis Kuznetsov wrote:
> Привет!
> Нужна помощь в сборке soprano. собственно проблема возникает в секции  
> %install. Есть у нас сильные в cmake люди, которые могут подсказать  
> как по человечески собирать подобные пакеты для Sisyphus? по  
> требованию src.rpm могу выложить отдельно.

	Привет!
Я никак не могу отнести себя к сильным в cmake людям. Могу отнести себя  
только к *мучившимся* с cmake. Поделюсь опытом своих  
мучений.Предупреждение! Дурно-пахнущий код!

%build
cmake -D CMAKE_INSTALL_PREFIX=/usr \
	-D CMAKE_SKIP_RPATH:BOOL=TRUE .
%make_build

%install
find -name cmake_install.cmake | xargs -i \
     subst 's|"/usr|"%buildroot/usr|' {}
find -name CMakeRelink.dir | xargs -i \
     bash -c "rmdir {} ; ln -s .. {}"
#cmake -P cmake_install.cmake
make install


Алексей Шабалин, я собирал libopensync для себя, возможно, тебе  
пригодится моя наработка. 
С уважением, Ильдар
-- 
Ildar  Mulyukov,  free SW designer/programmer/packager
=========================================
email: ildar@altlinux.ru
Jabber: ildar@jabber.ru
ICQ: 4334029
ALT Linux Sisyphus http://www.sisyphus.ru
=========================================

[-- Attachment #2: libopensync.spec --]
[-- Type: text/x-rpm-spec, Size: 3213 bytes --]

%set_verify_elf_method relaxed

Name: libopensync
Version: 0.34
Release: alt0.1

Summary: Synchronisation framework
License: LGPL
Group: System/Libraries
URL: http://www.opensync.org/
Packager: Mobile Development Team <mobile@packages.altlinux.org>

Source: %name-%version.tar.bz2

Requires: libxml2 glib2 libsqlite3 zlib libxml2

BuildRequires: gcc-c++ glib2-devel libsqlite3-devel libxml2-devel pkg-config 
BuildRequires: python-dev python-modules-encodings swig zlib-devel

%description
OpenSync is a synchronization framework that is platform and distribution independent.
It consists of several plugins that can be used to connect to devices, a powerfull sync-engine and the framework itself.
OpenSync is platform and distribution independent has no dependencies on X related libraries.

%package devel
Summary: Header files, libraries and development documentation for %name
Group: Development/C
Requires: %name = %version

%description devel
This package contains the header files, static libraries and development
documentation for %name. If you like to develop programs using %name,
you will need to install %name-devel.

%package tools
Summary: Tools for %name
Group: Development/Other
Requires: %name

%description tools
Tools to test and debug %name.

%package -n python-module-opensync
Summary: Python module for %name.
Group: Development/Python
Requires: %name

%description -n python-module-opensync
Python module for %name.

%prep
%setup -q

%build
#configure --disable-profiling --enable-tools --disable-unit-tests
cmake -D CMAKE_INSTALL_PREFIX=/usr \
	-D CMAKE_SKIP_RPATH:BOOL=TRUE .
%make_build

%install
find -name cmake_install.cmake | xargs -i \
    subst 's|"/usr|"%buildroot/usr|' {}
find -name CMakeRelink.dir | xargs -i \
    bash -c "rmdir {} ; ln -s .. {}"
#cmake -P cmake_install.cmake
make install
%__mkdir_p %buildroot%_datadir/opensync/defaults
%__mkdir_p %buildroot%_libdir/opensync/plugins

%files
%_libdir/libopensync.so*
%_libdir/opensync
%_datadir/opensync

%files devel
%_includedir/opensync-1.0
%_pkgconfigdir/*.pc

%files tools
%_bindir/*

%files -n python-module-opensync
%dir %python_sitelibdir/*

%changelog
* Sat Nov 17 2007 Ildar Mulyukov <ildar@altlinux.ru> 0.34-alt0.1
- 

* Mon Apr 02 2007 Alexey Shabalin <shaba@altlinux.ru> 0.22-alt1
- 0.22

* Mon Feb 12 2007 Alexey Shabalin <shaba@altlinux.ru> 0.21-alt1
- 0.21
- cleanup spec (drop cvs)

* Wed Nov 08 2006 Alexey Shabalin <shaba@altlinux.ru> 0.20-alt1
- release 0.20

* Tue Oct 03 2006 Alexey Shabalin <shaba@altlinux.ru> 0.19-alt2
- release 0.19
- build puthon module
- fix spec (add in files %%_libexecdir/osplugin)
- fix BuildRequires

* Thu Sep 21 2006 Alexey Shabalin <shaba@altlinux.ru> 0.19-alt1cvs20060921
- svn version 20060921 

* Tue Jul 18 2006 Alexey Shabalin <shaba@altlinux.ru> 0.18-alt2cvs20060718
- svn version 20060718

* Mon May 29 2006 Alexey Shabalin <shaba@altlinux.ru> 0.18-alt2cvs20060529
- svn version 20060529
- set_verify_elf_method relaxed
- add directory %%_datadir/opensync/defaults

* Tue Nov 22 2005 Alexey Shabalin <shaba@altlinux.ru> 0.18-alt1
- 0.18 release
- build for Sisyphus

* Fri Sep 30 2005 Alexey Shabalin <shaba@altlinux.ru> 0.18-alt0.1.cvs20050930
- Initial package

      parent reply	other threads:[~2007-12-03 12:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-03 12:28 Denis Kuznetsov
2007-12-03 12:46 ` Denis Kuznetsov
2007-12-03 13:06   ` Damir Shayhutdinov
2007-12-04 10:53     ` Ildar Mulyukov
2007-12-04 12:06       ` Damir Shayhutdinov
2008-01-22 10:57         ` Alexey Shabalin
2008-01-23  5:47           ` Ildar Mulyukov
2008-01-23  8:14             ` Alexey Shabalin
2007-12-03 12:54 ` Ildar Mulyukov [this message]

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=1196686488l.26817l.2l@ildar.innovations.kz \
    --to=ildar@altlinux.ru \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git