]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - pakfire/pakfire.nm
pakfire: Add some perl macros.
[people/ms/ipfire-3.x.git] / pakfire / pakfire.nm
index ed34cde00ceab2334cf67ce8f4cb626f8a182dd7..bf339a3dfcf7a56278095f46fc420bcc8e7af294 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = pakfire
-version    = 0.9.10
-release    = 2
+version    = 0.9.23
+release    = 6
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Packaging
@@ -22,16 +22,32 @@ source_dl  = http://source.ipfire.org/releases/pakfire/
 
 build
        requires
+               beecrypt-devel
+               elfutils-devel
                gettext
-               libsolv-devel
+               libcap-devel
+               libsolv-devel >= 0.0.0-4
+               popt-devel
                python-devel
+               xz-devel
        end
 
+       # libgomp was broken in earlier releases.
+       requires += gcc >= 4.6.2-4
+       requires += beecrypt >= 4.2.1-2
+
        CFLAGS += -fno-strict-aliasing
 
        test
-               # Check, if the binary module is loadable.
+               # Check, if the binary modules are loadable.
                cd %{DIR_APP}/python/src/ && python -c "import _pakfire"
+               cd %{DIR_APP}/python/src/ && python -c "import _lzma"
+       end
+
+       install_cmds
+               # Remove all example repository definitions.
+               # Those will be solely provided by system-release.
+               rm -rfv %{BUILDROOT}%{sysconfdir}/pakfire/repos/*
        end
 end
 
@@ -39,46 +55,104 @@ packages
        package %{name}
                groups += Base
 
-               requires = pakfire-common=%{thisver}
+               requires = pakfire-common = %{thisver}
        end
 
        package %{name}-common
                requires
-                       pyliblzma
+                       libsolv >= 0.0.0-4
+                       pygpgme
                        python-progressbar
                        python-urlgrabber
-                       pyxattr
                        system-release
                end
 
                files
+                       %{sysconfdir}/pakfire/general.conf
+                       %{bindir}/pakfire-key
                        /usr/lib/pakfire/pakfire-multicall.py
-                       /usr/lib*/python*/site-packages/pakfire*
+                       %{libdir}/python*/site-packages/pakfire*
                        /usr/share/locale
                end
+               configfiles = %{sysconfdir}/pakfire/general.conf
        end
-       
-       package %{name}-build
-               summary = The pakfire builder.
+
+       package %{name}-builder
+               summary = The Pakfire builder.
                description
                        The tools that are needed to build new pakfire packages.
                end
                groups += Build
 
                requires
-                       %{name}=%{thisver}
-                       quality-agent=%{thisver}
+                       # For --rpm-requires.
+                       bash >= 4.2-7
+
+                       %{name} = %{thisver}
+                       quality-agent = %{thisver}
+                       cpio
+                       elfutils
+               end
+               provides = pakfire-build = %{thisver}
+               obsoletes = pakfire-build < %{thisver}
+
+               conflicts
+                       build-essentials
+                       systemd-devel < 38
+               end
+
+               configfiles
+                       /etc/pakfire/builder.conf
+                       /etc/pakfire/distros
                end
-               conflicts = build-essentials
 
                files
-                       /usr/bin/pakfire-builder
-                       /usr/bin/pakfire-server
+                       /etc/pakfire/builder.conf
+                       /etc/pakfire/distros
+                       %{libdir}/libpakfire_preload.so
+                       %{bindir}/pakfire-builder
+                       %{bindir}/pakfire-server
                        /usr/lib/pakfire/*
                        !/usr/lib/pakfire/pakfire-multicall.py
                end
        end
 
+       package %{name}-client
+               summary = The Pakfire XMLRPC client.
+               description
+                       The pakfire client has the power to create build jobs
+                       and communicate with the Pakfire Build Service.
+               end
+
+               requires
+                       pakfire-common = %{thisver}
+               end
+
+               files
+                       %{sysconfdir}/pakfire/client.conf
+                       %{bindir}/pakfire-client
+               end
+               configfiles = %{sysconfdir}/pakfire/client.conf
+       end
+
+       package %{name}-daemon
+               summary = The Pakfire daemon.
+               description
+                       The Pakfire daemon takes build jobs from the
+                       Pakfire Build Service and compiles them.
+               end
+
+               requires
+                       pakfire-builder = %{thisver}
+               end
+
+               files
+                       %{sysconfdir}/pakfire/daemon.conf
+                       %{bindir}/pakfire-daemon
+               end
+               configfiles = %{sysconfdir}/pakfire/daemon.conf
+       end
+
        package quality-agent
                arch = noarch
 
@@ -91,9 +165,22 @@ packages
                end
 
                files
-                       /usr/lib/pakfire/quality-agent*
+                       /usr/lib/pakfire/quality-agent
+                       /usr/lib/quality-agent*
                end
 
-               requires = binutils file grep
+               requires
+                       gawk
+                       binutils
+                       coreutils
+                       findutils
+                       file
+                       grep
+                       sed
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
        end
 end