<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lvm2</Name>
        <Homepage>http://sources.redhat.com/lvm/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Userland logical volume management tools</Summary>
        <Description>LVM2 includes all of the support for handling read/write operations physical and logical volumes.</Description>
        <Archive sha1sum="2a7cce6407d91847731d8f2ca2b4ba7dee03225a" type="targz">ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.142.tgz</Archive>
        <BuildDependencies>
            <Dependency>libutil-linux-devel</Dependency>
            <Dependency>eudev-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!--<Patch level="1">lvm2-2.02.63-always-make-static-libdm.patch</Patch>
            <Patch level="1">lvm2-2.02.92-dynamic-static-ldflags.patch</Patch>
            <Patch level="1">lvm2-2.02.105-pthread-pkgconfig.patch</Patch>
            <Patch>lvm2-2.02.106-static-pkgconfig-libs.patch</Patch>-->
        </Patches>
    </Source>

    <Package>
        <Name>device-mapper</Name>
        <RuntimeDependencies>
            <Dependency>eudev</Dependency>
        </RuntimeDependencies>
        <Summary>Light-weight kernel component can support user-space tools for logical volume management</Summary>
        <Description>Device-mapper includes the driver enables the definition of new block devices composed of ranges of sectors of existing devices to define disk partitions or logical volumes.</Description>
        <Files>
            <Path fileType="executable">/usr/sbin/dmsetup</Path>
            <Path fileType="executable">/usr/sbin/dmstats</Path>
            <Path fileType="library">/usr/lib/libdevmapper.a</Path>
            <Path fileType="library">/usr/lib/libdevmapper.so*</Path>
            <Path fileType="data">/lib/udev/rules.d/10-dm.rules</Path>
            <Path fileType="data">/lib/udev/rules.d/13-dm-disk.rules</Path>
            <Path fileType="data">/lib/udev/rules.d/95-dm-notify.rules</Path>
            <Path fileType="doc">/usr/share/doc/VERSION_DM</Path>
            <Path fileType="doc">/usr/share/doc/WHATS_NEW_DM</Path>
            <Path fileType="man">/usr/share/man/man8/dmsetup.8</Path>
            <Path fileType="man">/usr/share/man/man8/dmstats.8</Path>
        </Files>
    </Package>

    <Package>
        <Name>device-mapper-devel</Name>
        <Summary>Development libraries and headers for device-mapper</Summary>
        <Description>Device-mapper-devel contains files needed to develop applications that use the device-mapper libraries.</Description>
        <RuntimeDependencies>
            <Dependency release="current" >device-mapper</Dependency>
	    <Dependency>eudev-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/libdevmapper.h</Path>
            <Path fileType="data">/usr/lib/pkgconfig/devmapper.pc</Path>
        </Files>
    </Package>

    <Package>
        <Name>device-mapper-event</Name>
        <Summary>Device-mapper event daemon</Summary>
        <Description>This package contains the dmeventd daemon for monitoring the state of device-mapper devices.</Description>
        <RuntimeDependencies>
            <Dependency release="current" >device-mapper</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/sbin/dmeventd</Path>
            <Path fileType="library">/usr/lib/libdevmapper-event.a</Path>
            <Path fileType="library">/usr/lib/libdevmapper-event.so*</Path>
            <Path fileType="library">/usr/lib/libdevmapper-event-lvm2thin.so</Path>
            <Path fileType="library">/usr/lib/device-mapper/libdevmapper-event-lvm2thin.so</Path>
            <Path fileType="man">/usr/share/man/man8/dmeventd.8</Path>
        </Files>
    </Package>

    <Package>
        <Name>device-mapper-event-devel</Name>
        <Summary>Development libraries and headers for the device-mapper event daemon</Summary>
        <Description>This contains contains files needed to develop applications that use the device-mapper event library.</Description>
        <RuntimeDependencies>
            <Dependency release="current" >device-mapper-event</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/libdevmapper-event.h</Path>
            <Path fileType="data">/usr/lib/pkgconfig/devmapper-event.pc</Path>
        </Files>
    </Package>

    <Package>
        <Name>lvm2</Name>
        <Summary>Userland logical volume management tools</Summary>
        <Description>LVM2 includes all of the support for handling read/write operations on physical volumes,creating volume groups from one or more physical volumes and creating one or more logical volumes in volume groups.</Description>
        <RuntimeDependencies>
            <Dependency release="current">device-mapper</Dependency>
            <Dependency release="current">device-mapper-event</Dependency>
            <Dependency>libutil-linux</Dependency>
            <Dependency>eudev</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/sbin/lvmconf</Path>
            <Path fileType="executable">/usr/sbin/blkdeactivate</Path>
            <Path fileType="executable">/usr/sbin/fsadm</Path>
            <Path fileType="executable">/usr/sbin/lv*</Path>
            <Path fileType="executable">/usr/sbin/vg*</Path>
            <Path fileType="executable">/usr/sbin/pv*</Path>
            <Path fileType="library">/usr/lib/liblvm2app.so*</Path>
            <Path fileType="library">/usr/lib/liblvm2cmd.so*</Path>
            <Path fileType="library">/usr/lib/libdevmapper-event-lvm2.so*</Path>
            <Path fileType="library">/usr/lib/device-mapper/libdevmapper-event-lvm2mirror.so</Path>
            <Path fileType="library">/usr/lib/device-mapper/libdevmapper-event-lvm2snapshot.so</Path>
            <Path fileType="library">/usr/lib/libdevmapper-event-lvm2mirror.so</Path>
            <Path fileType="library">/usr/lib/libdevmapper-event-lvm2snapshot.so</Path>
            <Path fileType="library">/usr/lib/libdevmapper-event-lvm2raid.so</Path>
            <Path fileType="library">/usr/lib/device-mapper/libdevmapper-event-lvm2raid.so</Path>
            <Path fileType="config">/etc/lvm</Path>
            <Path fileType="data">/etc/lvm/archive</Path>
            <Path fileType="data">/etc/lvm/backup</Path>
            <Path fileType="data">/etc/lvm/cache</Path>
            <Path fileType="data">/var/lock/lvm</Path>
            <Path fileType="data">/lib/udev/rules.d/11-dm-lvm.rules</Path>
            <Path fileType="data">/usr/lib/tmpfiles.d/lvm2.conf</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man/man5/lvm.conf.5</Path>
            <Path fileType="man">/usr/share/man/man7</Path>
            <Path fileType="man">/usr/share/man/man8/fsadm.8</Path>
            <Path fileType="man">/usr/share/man/man8/blkdeactivate.8</Path>
            <Path fileType="man">/usr/share/man/man8/*pv*</Path>
            <Path fileType="man">/usr/share/man/man8/*lv*</Path>
            <Path fileType="man">/usr/share/man/man8/*vg*</Path>
        </Files>
        <AdditionalFiles>
             <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/lvm2.conf">tmpfiles.conf</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>lvm2-devel</Name>
        <Summary>Development libraries and headers</Summary>
        <Description>This package contains files needed to develop applications that use the lvm2 libraries.</Description>
        <RuntimeDependencies>
            <Dependency>libutil-linux-devel</Dependency>
            <Dependency release="current">lvm2</Dependency>
            <Dependency release="current">device-mapper-devel</Dependency>
            <Dependency release="current">device-mapper-event-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/lvm2cmd.h</Path>
            <Path fileType="header">/usr/include/lvm2app.h</Path>
            <Path fileType="data">/usr/lib/pkgconfig/lvm2app.pc</Path>
        </Files>
    </Package>

    <Package>
        <Name>dietlibc-libdevmapper</Name>
        <Summary>Static devmapper library built with dietlibc</Summary>
        <Description>device mapper contains ioctl library and utilities for use with logical volume management (LVM2) built with dietlibc</Description>
        <Files>
            <Path fileType="library">/usr/lib/dietlibc/lib-i386/libdevmapper.a</Path>
        </Files>
    </Package>

    <Package>
        <Name>device-mapper-static</Name>
        <Summary>Staticaly linked Device-mapper library and utility</Summary>
        <Description>device mapper contains statically linked libraries and utility for initramfs.</Description>
        <Files>
            <Path fileType="executable">/sbin/dmsetup.static</Path>
        </Files>
    </Package>

    <Package>
        <Name>lvm2-static</Name>
        <Summary>Staticaly linked Logical Volume Management utilities</Summary>
        <Description>Number of utilities for creating, checking, and repairing logical volumes - statically linked for initramfs.</Description>
        <Files>
            <Path fileType="executable">/sbin/lvm.static</Path>
            <Path fileType="library">/usr/lib/liblvm2app.a</Path>
            <Path fileType="library">/usr/lib/liblvm2cmd.a</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2016-04-27</Date>
            <Version>2.02.142</Version>
            <Comment>Release Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-13</Date>
            <Version>2.02.142</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
