]> git.pld-linux.org Git - packages/ruby-facter.git/commitdiff
install to vendor dir
authorElan Ruusamäe <glen@delfi.ee>
Wed, 1 May 2013 10:00:14 +0000 (13:00 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 1 May 2013 10:00:14 +0000 (13:00 +0300)
ruby-facter.spec

index 0ad82bbf4e8a078f5dc31b0458348408230f0a81..8a9365335111efe6380d295c92d0554a81127f81 100644 (file)
@@ -4,14 +4,13 @@ Name:         ruby-%{pkgname}
 Version:       1.6.18
 Release:       1
 License:       GPL v2+
-Group:         Networking/Admin
+Group:         Development/Languages
 Source0:       http://downloads.puppetlabs.com/%{pkgname}/%{pkgname}-%{version}.tar.gz
 # Source0-md5: c209df5909ccd4112c19cf4b535027a7
-URL:           http://www.puppetlabs.com/puppet/related-projects/facter/
+URL:           http://puppetlabs.com/puppet/related-projects/facter/
 BuildRequires: docutils
-BuildRequires: rpmbuild(macros) >= 1.484
-BuildRequires: ruby >= 1:1.8.6
-BuildRequires: ruby-modules
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
 Requires:      net-tools
 Requires:      which
 # dmidecode and pciutils are not available on all arches
@@ -19,13 +18,11 @@ Requires:   which
 Requires:      dmidecode
 Requires:      pciutils
 %endif
-Obsoletes:     facter
-%{?ruby_mod_ver_requires_eq}
+Obsoletes:     facter < 1.5.9
+# due arch specific dependencies
+#BuildArch:    noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# nothing to be placed there. we're not noarch only because of ruby packaging
-%define                _enable_debug_packages  0
-
 %description
 Facter is a lightweight program that gathers basic node information
 about the hardware and operating system. Facter is especially useful
@@ -47,6 +44,7 @@ install -d $RPM_BUILD_ROOT%{ruby_sitelibdir}
        --quick \
        --no-man \
        --no-rdoc \
+       --sitelibdir=%{ruby_vendorlibdir} \
        --destdir=$RPM_BUILD_ROOT
 
 %clean
@@ -56,5 +54,5 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README.md etc/facter.conf
 %attr(755,root,root) %{_bindir}/facter
-%{ruby_sitelibdir}/facter
-%{ruby_sitelibdir}/facter.rb
+%{ruby_vendorlibdir}/facter
+%{ruby_vendorlibdir}/facter.rb
This page took 0.054688 seconds and 4 git commands to generate.