]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - libsepol/libsepol.nm
libnftl: Update to snapshot 20150531
[people/amarx/ipfire-3.x.git] / libsepol / libsepol.nm
index fd2605f533f94b0af07f3d2f2f0afa84cbf4151b..ac647815e7826b6a73eac3e46d0572968bf150e8 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = libsepol
-version    = 2.0.41
-release    = 2
+version    = 2.1.5
+release    = 1
 
 groups     = System/Libraries
 url        = http://www.selinuxproject.org
@@ -13,35 +13,42 @@ license    = LGPLv2+
 summary    = SELinux binary policy manipulation library.
 
 description
-       libsepol provides an API for the manipulation of SELinux binary \
+       libsepol provides an API for the manipulation of SELinux binary
        policies.
 end
 
-source_dl  =
 sources    = %{thisapp}.tgz
 
 build
+       # Keep static libsepol.a for some selinux tools, that needs to link 
+       # against it. We will put it into an own package.
+       keep_libraries = %{libdir}/libsepol.a
+
        build
                make clean
-               make CFLAGS="%{CFLAGS}" %{PARALELLISMFLAGS}
+               make CFLAGS="%{CFLAGS}" %{PARALLELISMFLAGS}
        end
 
-       make_install_targets += LIBDIR="%{BUILDROOT}%{libdir}" \
-               SHLIBDIR="%{BUILDROOT}/%{lib}"
+       # Install libraries to correct place.
+       make_install_targets += \
+               LIBDIR="%{BUILDROOT}%{libdir}" \
+               SHLIBDIR="%{BUILDROOT}%{libdir}"
 
        install_cmds
                # Remove binaries
                rm -rf %{BUILDROOT}/usr/bin
 
-               # Remove manpages from binaries
+               # Remove manpages for binaries
                rm -rf %{BUILDROOT}/usr/share/man/man8
+
+               # Fix bad symlink.
+               ln -svf libsepol.so.1 %{BUILDROOT}%{libdir}/libsepol.so
        end
 end
 
 packages
        package %{name}
-       end
-
+       
        package %{name}-devel
                template DEVEL
        end
@@ -49,4 +56,14 @@ packages
        package %{name}-debuginfo
                template DEBUGINFO
        end
+
+       package %{name}-static
+               summary = Static libraries used to build policy manipulation tools.
+               description = %{summary}
+               groups = Development/Libraries
+
+               files
+                       %{libdir}/libsepol.a
+               end
+       end
 end