Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial submit of libsolv. Part of MER#76.
Signed-off-by: Marko Saukko <marko.saukko@gmail.com>
  • Loading branch information
saukko committed Apr 8, 2012
0 parents commit 5561840
Show file tree
Hide file tree
Showing 4 changed files with 286 additions and 0 deletions.
Binary file added libsolv-0.0.0.tar.bz2
Binary file not shown.
3 changes: 3 additions & 0 deletions libsolv.changes
@@ -0,0 +1,3 @@
* Wed Mar 28 2012 Marko Saukko <sage@merproject.org> - 0.0.0
- Initial packaging based on libsolv-0.0.0-7.1.src.rpm from openSUSE factory.
- Part of MER#76
197 changes: 197 additions & 0 deletions libsolv.spec
@@ -0,0 +1,197 @@
#
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.23
#
# >> macros
%global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True);")
# << macros

Name: libsolv
Summary: A new approach to package dependency solving
Version: 0.0.0
Release: 3.3.3
Group: Development/Libraries/C and C++
License: BSD 3-Clause
URL: git://gitorious.org/opensuse/libsolv.git
Source0: libsolv-%{version}.tar.bz2
Source100: libsolv.yaml
BuildRequires: pkgconfig(rpm)
BuildRequires: pkgconfig(zlib)
BuildRequires: db4-devel
BuildRequires: expat-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: perl-devel
BuildRequires: python-devel
BuildRequires: swig
BuildRequires: cmake


%description
A new approach to package dependency solving.


%package demo
Summary: Applications demoing the libsolv library
Group: System/Management
Requires: curl
Requires: gnupg2

%description demo
Applications demoing the libsolv library.

%package -n python-solv
Summary: Python bindings for the libsolv library
Group: Development/Languages/Python

%description -n python-solv
Python bindings for sat solver.

%package devel
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
Requires: libsolv-tools = %version
Requires: libsolv0 = %version
Requires: rpm-devel

%description devel
Development files for libsolv, a new approach to package dependency solving.

%package -n perl-solv
Summary: Perl bindings for the libsolv library
Group: Development/Languages/Perl
Requires: perl = %{perl_version}

%description -n perl-solv
Perl bindings for sat solver.

%package -n libsolv0
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig

%description -n libsolv0
A new approach to package dependency solving.

%package tools
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
Requires: gzip
Requires: bzip2
Requires: coreutils
Provides: satsolver-tools = 0.18
Obsoletes: satsolver-tools < 0.18

%description tools
A new approach to package dependency solving.


%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%cmake . \
-DFEDORA=1 \
-DENABLE_HELIXREPO=1 \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLIB=%{_lib} \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_PERL=1 \
-DENABLE_PYTHON=1 \
-DUSE_VENDORDIRS=1 \
-DCMAKE_SKIP_RPATH=1

make %{?jobs:-j%jobs}

# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install

# >> install post
# we want to leave the .a file untouched
export NO_BRP_STRIP_DEBUG=true
# << install post



















%post -n libsolv0 -p /sbin/ldconfig

%postun -n libsolv0 -p /sbin/ldconfig






%files demo
%defattr(-,root,root,-)
# >> files demo
%{_bindir}/solv
# << files demo

%files -n python-solv
%defattr(-,root,root,-)
# >> files python-solv
%{python_sitearch}/*
# << files python-solv

%files devel
%defattr(-,root,root,-)
# >> files devel
%{_libdir}/libsolv.so
%{_libdir}/libsolvext.so
%{_includedir}/solv
%{_bindir}/helix2solv
%{_datadir}/cmake/Modules/*
# << files devel

%files -n perl-solv
%defattr(-,root,root,-)
# >> files perl-solv
%{perl_vendorarch}/*
# << files perl-solv

%files -n libsolv0
%defattr(-,root,root,-)
# >> files libsolv0
%doc LICENSE*
%{_libdir}/libsolv.so.*
%{_libdir}/libsolvext.so.*
# << files libsolv0

%files tools
%defattr(-,root,root,-)
# >> files tools
%exclude %{_bindir}/helix2solv
%exclude %{_bindir}/solv
%{_bindir}/*
# << files tools

86 changes: 86 additions & 0 deletions libsolv.yaml
@@ -0,0 +1,86 @@
Name: libsolv
Summary: A new approach to package dependency solving
Version: 0.0.0
Release: 3.3.3
Group: Development/Libraries/C and C++
License: BSD 3-Clause
URL: git://gitorious.org/opensuse/libsolv.git
Sources:
- libsolv-%{version}.tar.bz2
Description: A new approach to package dependency solving.

PkgConfigBR:
- rpm
- zlib
PkgBR:
- db4-devel
- expat-devel
- cmake
- gcc-c++
- perl-devel
- python-devel
- swig
Builder: cmake
ConfigOptions:
- -DFEDORA=1
- -DENABLE_HELIXREPO=1
- -DCMAKE_INSTALL_PREFIX=%{_prefix}
- -DLIB=%{_lib}
- -DCMAKE_VERBOSE_MAKEFILE=TRUE
- -DCMAKE_BUILD_TYPE=Release
- -DENABLE_PERL=1
- -DENABLE_PYTHON=1
- -DUSE_VENDORDIRS=1
- -DCMAKE_SKIP_RPATH=1
NoFiles: true
SubPackages:
- Name: demo
Summary: Applications demoing the libsolv library
Group: System/Management
Description: Applications demoing the libsolv library.
Requires:
- curl
- gnupg2

- Name: python-solv
AsWholeName: yes
Summary: Python bindings for the libsolv library
Group: Development/Languages/Python
Description: Python bindings for sat solver.

- Name: devel
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
Description: Development files for libsolv, a new approach to package dependency solving.
Requires:
- libsolv-tools = %version
- libsolv0 = %version
- rpm-devel

- Name: perl-solv
AsWholeName: yes
Summary: Perl bindings for the libsolv library
Group: Development/Languages/Perl
Description: Perl bindings for sat solver.
Requires:
- perl = %{perl_version}

- Name: libsolv0
AsWholeName: yes
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
Description: A new approach to package dependency solving.

- Name: tools
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
Description: A new approach to package dependency solving.
Requires:
- gzip
- bzip2
- coreutils
Provides:
- satsolver-tools = 0.18
Obsoletes:
- satsolver-tools < 0.18

0 comments on commit 5561840

Please sign in to comment.