SHA256
1
0
forked from pool/lvm2

- Pass over with spec-cleaner

- Pass over with spec-cleaner

- Pass over with spec-cleaner

OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=173
This commit is contained in:
Tomáš Chvátal
2017-04-10 10:40:22 +00:00
committed by Git OBS Bridge
parent e8d0c874f6
commit cc9b493fe9
6 changed files with 135 additions and 123 deletions

View File

@@ -16,6 +16,8 @@
#
%define libname libdevmapper1_03
%define libname_event libdevmapper-event1_03
### COMMON-DEF-BEGIN ###
%define lvm2_version 2.02.168
%define device_mapper_version 1.02.137
@@ -23,10 +25,6 @@
%define dlm_version 3.99.1
%define sanlock_version 3.3.0
### COMMON-DEF-END ###
%define libname libdevmapper1_03
%define libname_event libdevmapper-event1_03
Name: device-mapper
Version: %{device_mapper_version}
Release: 0
@@ -37,7 +35,18 @@ Url: http://www.sourceware.org/lvm2/
Source: ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz
Source1: ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz.asc
Source99: baselibs.conf
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: suse-module-tools
BuildRequires: thin-provisioning-tools >= %{thin_provisioning_version}
BuildRequires: pkgconfig(libselinux)
BuildRequires: pkgconfig(libsepol)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(systemd)
Requires: thin-provisioning-tools >= %{thin_provisioning_version}
Requires(post): coreutils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
### COMMON-PATCH-BEGIN ###
# Upstream patches
# SUSE patches: 1000+ for LVM, 2000+ for device mapper
@@ -95,19 +104,6 @@ Patch2011: lvm2-testsuite.patch
Patch2012: simplify-special-case-for-md-in-69-dm-lvm-metadata.patch
### COMMON-PATCH-END ###
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: suse-module-tools
BuildRequires: thin-provisioning-tools >= %{thin_provisioning_version}
BuildRequires: pkgconfig(libselinux)
BuildRequires: pkgconfig(libsepol)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(systemd)
Requires: thin-provisioning-tools >= %{thin_provisioning_version}
Requires(post): coreutils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
%description
Programs and man pages for configuring and using the device mapper.
@@ -225,9 +221,9 @@ ln -s %{_sbindir}/dmsetup %{buildroot}/sbin/dmsetup
%{_sbindir}/dmsetup
%{_sbindir}/dmeventd
%{_sbindir}/dmstats
%{_mandir}/man8/dmstats.8.*
%{_mandir}/man8/dmsetup.8.*
%{_mandir}/man8/dmeventd.8.*
%{_mandir}/man8/dmstats.8%{ext_man}
%{_mandir}/man8/dmsetup.8%{ext_man}
%{_mandir}/man8/dmeventd.8%{ext_man}
%{_udevrulesdir}/10-dm.rules
%{_udevrulesdir}/13-dm-disk.rules
%{_udevrulesdir}/95-dm-notify.rules
@@ -238,6 +234,7 @@ ln -s %{_sbindir}/dmsetup %{buildroot}/sbin/dmsetup
##############################################################################
# Library for device-mapper
##############################################################################
%package -n %{libname}
Summary: Library for device-mapper
Group: System/Libraries
@@ -257,6 +254,7 @@ Device mapper main shared library
##############################################################################
# Event library for device-mapper
##############################################################################
%package -n %{libname_event}
Summary: Event library for device-mapper
Group: System/Libraries
@@ -276,6 +274,7 @@ Device mapper event daemon shared library
##############################################################################
# Development package for the device mapper
##############################################################################
%package devel
Summary: Development package for the device mapper
Group: Development/Libraries/C and C++