GithubHelp home page GithubHelp logo

soci-pkg's Introduction

soci-pkg

SOCI packaging configurations

Debian

Just copy the debian/ directory to your soci directory and run dpkg-buildpackage -rfakeroot

debian/control is generated from debian/control.in manually, by calling DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean.

Packages, required for build:

  • patchutils
  • cdbs
  • debhelper
  • dh-buildinfo
  • devscripts
  • cmake
  • libboost-dev
  • libmysql15-dev
  • libpq-dev
  • libsqlite3-dev
  • unixodbc-dev

Fedora/CentOS/RedHat

The RPM specification file is reproduced here, in the fedora/ directory, for convenient reason. However, the master is hosted by Fedora: http://pkgs.fedoraproject.org/cgit/soci.git/tree/soci.spec

If you want to build the package on Fedora/CentOS/RedHat:

sudo yum -y install fedora-packager
sudo yum -y groupinstall development
rpmdev-setuptree

Change the %packager variable in the ~/.rpmmacros configuration file.

SOCI_VER=3.2.0
cd ~/rpmbuild/SPECS
wget http://pkgs.fedoraproject.org/cgit/soci.git/tree/soci.spec
pushd ~/rpmbuild/SOURCES
wget http://downloads.sourceforge.net/soci/soci-${SOCI_VER}.zip
popd
rpmbuild -bs soci.spec
rpmbuild -ba soci.spec

Note

On CentOS, you have to enable the EPEL repository, with something like:

rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

See the Fedora Wiki for more details.

soci-pkg's People

Contributors

da115115 avatar mloskot avatar onidaito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

soci-pkg's Issues

Better integration of debian/* into soci repository

Of course without cluttering it. In other words submodules?

Had a look at sparse checkout of git >1.7 and it might work with submodules. Problem is, that it is not exactly straight forward and I dont know to what extent it might touch the upstream repository.

Another solution would be to split debian/* into a own repository and cleanly include it as a submodule to soci. Other than a placeholder directory within the upstream, there would be no clutter, with the additional benefit of fixating the version of soci-debian (hypothetocal naming), required by the specific version of soci upstream.

If there is no aversion to using submodules in soci upstream, the next and more difficult question would be how fedora and other distros does things (unfortunately currently out of my scope of knowledge and time)

Best regards,
~lweberk

Set up Travis CI for soci-pkg

This is a good idea suggested by @kzeslaf in #1

Maybe you could also configure building debian packages by Travis CI after
changes to soci and soci-pkg repos. I don't know unfortunately how to do this nicely.
Maybe git submodules will do?

I'll try to learn how to configure it.

If anyone knows how to achieve it, please, share the magic.

Moving debian/ to top level

Hi,

anything speaking against it?. I would have the necessary merge request for you.

Blockers:

  • Move LICENSE_1_0.txt from src/ to repository root. Otherwise I got the changes running without changing anything outside the debian/*.

Best regards,
~lweberk

Debian packaging broken / building debian packages on Travis CI

Hi,

it seems that current version of Debian packaging is broken. It seems that last changes on file https://github.com/SOCI/soci/blob/master/src/CMakeLists.txt made impossible to apply this patch: https://github.com/SOCI/soci-pkg/blob/master/debian/patches/library_target.

I think that functionality of this patch should be applied directly to this CMakeLists file because current solution is not resistant on changes of this file.

Maybe you could also configure building debian packages by Travis CI after changes to soci and soci-pkg repos.

I don't know unfortunately how to do this nicely. Maybe git submodules will do?

P.S.
I'm using Ubuntu 12.04 64-bit. Deleting patch directory was enough to build, install and run example using soci correctly.

Debian multiarch package schema support

Hi,

anything speaking against this? would have a merge request for you if you want it.

It would:

  • Make use of the non invasive -DLIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) approach depicted in #1 by @juliantaylor

Best regards,
~lweberk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.