%global with_apbuild %{?_with_apbuild:1}%{!?_with_apbuild:0} %global with_debug %{?_with_debug:1}%{!?_with_debug:0} Name: limba Version: 0.4.2 Release: 1%{dist}.omega13a License: GNU GPL URL: http://people.freedesktop.org/~mak/limba Group: System/Configuration/Packaging Summary: Distribution neutral packaging framework for Linux systems. Source0: http://people.freedesktop.org/~mak/limba/releases/Limba-%{version}.tar.xz Source1: libuild.sh BuildRequires: glib2-devel BuildRequires: gobject-introspection-devel BuildRequires: libappstream-glib-builder-devel, libappstream-glib-devel BuildRequires: polkit-devel BuildRequires: libarchive-devel BuildRequires: gpgme-devel BuildRequires: libuuid-devel BuildRequires: libcurl-devel BuildRequires: systemd-devel BuildRequires: kernel >= 3.18 %if %{with_apbuild} BuildRequires: autopackage-devel %endif Requires: kernel >= 3.18 Obsoletes: autopackage Obsoletes: autopackage%{?_isa} Obsoletes: autopackage-devel Obsoletes: autopackage-devel%{?_isa} Obsoletes: listaller Obsoletes: listaller%{?_isa} Obsoletes: listaller-debuginfo Obsoletes: listaller-debuginfo%{?_isa} Provides: autopackage Provides: autopackage%{?_isa} Provides: autopackage-devel Provides: autopackage-devel%{?_isa} Provides: listaller Provides: listaller%{?_isa} Provides: listaller-debuginfo Provides: listaller-debuginfo%{?_isa} %description Limba provides developers with a way to easily create software bundles for their applications which run on multiple Linux distributions. It provides atomic upgrades of software, simultaneous installation of multiple software versions and a simple way to obtain and upgrade software. It is based on ideas of Glick2 and Listaller, and uses modern Linux kernel features to allow applications to share libraries and other components, reducing the amount of duplicate software components running on a Linux system. Limba logo %if %{with_debug} %{debug_package} %global debug_package %{nil} %else %global debug_package %{nil} %endif %prep %setup -q -n Limba-%{version} %build %if %{with_apbuild} export CC=apgcc export CXX=apg++ export APBUILD_MINIMUM_GLIBC=2.14 export APBUILD_DEBUG=1 rm -rf ~/.config/apbuild %else export CC=gcc export CXX=g++ %endif mkdir build && cd build %__cmake .. \ -DMAINTAINER=OFF \ -DLIBUILD=ON \ -DL10N=ON \ -DINSTALL_SUID=ON make %install %if %{with_apbuild} export CC=apgcc export CXX=apg++ export APBUILD_MINIMUM_GLIBC=2.14 export APBUILD_DEBUG=1 %else export CC=gcc export CXX=g++ %endif rm -rf $RPM_BUILD_ROOT cd build make DESTDIR=$RPM_BUILD_ROOT install %{__install} -D -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/profile.d/libuild.sh %post # for backwards compadibility %{__rm} -f /usr/bin/apgcc %{__rm} -f /usr/bin/apg++ %{__ln_s} /usr/bin/ligcc /usr/bin/apgcc %{__ln_s} /usr/bin/lig++ /usr/bin/apg++ %files %changelog * Mon Jun 22 2015 Brandon Amaro - 0.4.2-1 - initial build for omega13a's yum repo