master - nix: Import the modular specfile we use for nix-driven builds.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2fbc94f974c96e98d32fc426333c81c0d1a4c004 Commit: 2fbc94f974c96e98d32fc426333c81c0d1a4c004 Parent: 38ab4c31a65b6ade5ec1e49dca4ef596a9c80923 Author: Petr Rockai <[email protected]> AuthorDate: Wed May 8 12:33:11 2013 +0200 Committer: Petr Rockai <[email protected]> CommitterDate: Fri Feb 28 11:23:49 2014 +0100
nix: Import the modular specfile we use for nix-driven builds.
--- spec/build.inc | 48 ++++++ spec/lvm2.spec | 13 ++ spec/macros.inc | 73 ++++++++ spec/packages.inc | 476 +++++++++++++++++++++++++++++++++++++++++++++++++++++ spec/source.inc | 99 +++++++++++ 5 files changed, 709 insertions(+), 0 deletions(-)
spec/build.inc new file +48 -0
@@ -0,0 +1,48 @@ +%with udevdir %{_udevdir} +%enableif %{enable_cmirror} cmirrord +%enableif %{enable_udev} udev_sync +%enableif %{enable_profiling} profiling +%global enable_lvmetad %(if echo %{services} | grep -q lvmetad; then echo 1; else echo 0; fi) +%enableif %{enable_lvmetad} lvmetad + +%build +%configure \ + --with-default-dm-run-dir=%{_default_dm_run_dir} \ + --with-default-run-dir=%{_default_run_dir} \ + --with-default-pid-dir=%{_default_pid_dir} \ + --with-default-locking-dir=%{_default_locking_dir} \ + --with-usrlibdir=%{_libdir} \ + --enable-lvm1_fallback \ + --enable-fsadm \ + --with-pool=internal \ + --with-user= \ + --with-group= \ + --with-device-uid=0 \ + --with-device-gid=6 \ + --with-device-mode=0660 \ + --enable-pkgconfig \ + --enable-applib \ + --enable-cmdlib \ + --enable-dmeventd \ + %{configure_flags} + +make %{?_smp_mflags} +%{?extra_build_commands} + +%install +make install DESTDIR=$RPM_BUILD_ROOT +make install_system_dirs DESTDIR=$RPM_BUILD_ROOT +make install_initscripts DESTDIR=$RPM_BUILD_ROOT +%if %{enable_systemd} +make install_systemd_units DESTDIR=$RPM_BUILD_ROOT +make install_tmpfiles_configuration DESTDIR=$RPM_BUILD_ROOT +%endif + +# when building an src.rpm from freestanding specfiles +test -e %{_sourcedir}/source.inc || cp source.inc build.inc packages.inc macros.inc %{_sourcedir} + +%check +%{?check_commands} + +%clean +rm -rf $RPM_BUILD_ROOT
spec/lvm2.spec new file +13 -0
@@ -0,0 +1,13 @@ +%define import() %include %(test -e %{S:%1} && echo %{S:%1} || echo %{_sourcedir}/%1) + +%import source.inc + +# PatchN: nnn.patch goes here + +%prep +%setup -q -n LVM2.%{version} + +%import build.inc +%import packages.inc + +%changelog
spec/macros.inc new file +73 -0
73 lines not on this page · raw message
spec/packages.inc new file +476 -0
476 lines not on this page · raw message
spec/source.inc new file +99 -0
99 lines not on this page · raw message