[libsolv] Initial commit
Karel Klíč
kklic at fedoraproject.org
Mon Feb 6 19:35:30 UTC 2012
commit 732335eba756c16bd9a7683eb420b38b763d8fe5
Author: Karel Klic <kklic at redhat.com>
Date: Mon Feb 6 20:35:49 2012 +0100
Initial commit
.gitignore | 1 +
libsolv.spec | 143 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 145 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0348624 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libsolv-857fe28.tar.xz
diff --git a/libsolv.spec b/libsolv.spec
new file mode 100644
index 0000000..0b73fc0
--- /dev/null
+++ b/libsolv.spec
@@ -0,0 +1,143 @@
+%global gitrev 857fe28
+%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
+%filter_provides_in %{perl_vendorarch}/.*\.so$
+%filter_provides_in %{python_sitearch}/.*\.so$
+%filter_provides_in %{ruby_sitearch}/.*\.so$
+%filter_setup
+
+Name: libsolv
+Version: 0.0.0
+Release: 1.git%{gitrev}%{?dist}
+License: BSD
+Url: https://github.com/openSUSE/libsolv
+# git clone https://github.com/openSUSE/libsolv.git
+# git archive %{gitrev} --prefix=libsolv/ | xz > libsolv-%{gitrev}.tar.xz
+Source: libsolv-%{gitrev}.tar.xz
+Group: Development/Libraries
+Summary: Package dependency solver
+BuildRequires: cmake libdb-devel expat-devel rpm-devel zlib-devel
+BuildRequires: swig perl perl-devel ruby ruby-devel python2-devel
+%description
+A free package dependency solver using a satisfiability algorithm. The
+library is based on two major, but independent, blocks:
+
+- Using a dictionary approach to store and retrieve package
+ and dependency information.
+
+- Using satisfiability, a well known and researched topic, for
+ resolving package dependencies.
+
+%package devel
+Summary: A new approach to package dependency solving
+Group: Development/Libraries
+Requires: libsolv-tools%{?_isa} = %version
+Requires: libsolv%{?_isa} = %version
+Requires: rpm-devel%{?_isa}
+Requires: cmake
+
+%description devel
+Development files for libsolv,
+
+%package tools
+Summary: A new approach to package dependency solving
+Group: Development/Libraries
+Requires: gzip bzip2 coreutils
+
+%description tools
+Package dependency solver tools.
+
+%package demo
+Summary: Applications demoing the libsolv library
+Group: Development/Libraries
+Requires: curl gnupg2
+
+%description demo
+Applications demoing the libsolv library.
+
+%package -n ruby-solv
+Summary: Ruby bindings for the libsolv library
+Group: Development/Languages
+
+%description -n ruby-solv
+Ruby bindings for sat solver.
+
+%package -n python-solv
+Summary: Python bindings for the libsolv library
+Group: Development/Languages
+Requires: python
+
+%description -n python-solv
+Python bindings for sat solver.
+
+%package -n perl-solv
+Summary: Perl bindings for the libsolv library
+Group: Development/Languages
+Requires: perl
+
+%description -n perl-solv
+Perl bindings for sat solver.
+
+%prep
+%setup -q -n libsolv
+
+%build
+%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DENABLE_PERL=1 \
+ -DENABLE_PYTHON=1 \
+ -DENABLE_RUBY=1 \
+ -DUSE_VENDORDIRS=1 \
+ -DFEDORA=1
+
+make %{?_smp_mflags}
+
+%install
+make DESTDIR=$RPM_BUILD_ROOT install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc LICENSE* README BUGS
+%_libdir/libsolv.so.*
+%_libdir/libsolvext.so.*
+
+%files tools
+%_bindir/deltainfoxml2solv
+%_bindir/dumpsolv
+%_bindir/installcheck
+%_bindir/mergesolv
+%_bindir/repo2solv.sh
+%_bindir/repomdxml2solv
+%_bindir/rpmdb2solv
+%_bindir/rpmmd2solv
+%_bindir/rpms2solv
+%_bindir/updateinfoxml2solv
+
+%files devel
+%doc examples/solv.c
+%_libdir/libsolv.so
+%_libdir/libsolvext.so
+%_includedir/solv
+%_datadir/cmake/Modules/FindLibSolv.cmake
+
+%files demo
+%_bindir/solv
+
+%files -n perl-solv
+%doc examples/p5solv
+%{perl_vendorarch}/*
+
+%files -n ruby-solv
+%doc examples/rbsolv
+%{ruby_sitearch}/*
+
+%files -n python-solv
+%doc examples/pysolv
+%{python_sitearch}/*
+
+%changelog
+* Thu Feb 2 2012 Karel Klíč <kklic at redhat.com> - 0.0.0-1.git857fe28
+- Initial packaging
+- Based on Jindra Novy's spec file
+- Based on upstream spec file
diff --git a/sources b/sources
index e69de29..3d7626c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+324282413919e5ab121558a5143cd6d9 libsolv-857fe28.tar.xz
More information about the scm-commits
mailing list