Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:puppet
facter
facter.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File facter.spec of Package facter
# # spec file for package facter # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define soname libfacter3_9_2 Name: facter Version: 3.9.2 Release: 0 Summary: Collect and display system facts License: Apache-2.0 Group: Development/Libraries/C and C++ Url: https://github.com/puppetlabs/facter Source: https://github.com/puppetlabs/%{name}/archive/%{version}.tar.gz Patch0: facter-respect-libdir.patch BuildRequires: boost-devel BuildRequires: cmake >= 3.2.2 BuildRequires: cpp-hocon-devel BuildRequires: curl-devel BuildRequires: gcc-c++ BuildRequires: java-devel >= 1.5.0 BuildRequires: leatherman-devel BuildRequires: libwhereami-devel BuildRequires: openssl-devel BuildRequires: pkgconfig BuildRequires: ruby-devel BuildRequires: pkgconfig(blkid) BuildRequires: pkgconfig(yaml-cpp) BuildRequires: puppet-common Requires: puppet-common Requires: virt-what BuildRoot: %{_tmppath}/%{name}-%{version}-build %description An implementation of facter functionality in C++11, providing: - a shared library which gather facts about the system - an executable for standalone command line usage - a ruby file to enable require 'facter'. %package devel Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description devel An implementation of facter functionality in C++11, providing: - a shared library which gather facts about the system - an executable for standalone command line usage - a ruby file to enable require 'facter'. Development files. %package -n %{soname} Summary: Libraries for %{name} Group: System/Libraries %description -n %{soname} An implementation of facter functionality in C++11, providing: - a shared library which gather facts about the system - an executable for standalone command line usage - a ruby file to enable require 'facter'. Libraries. %package ruby Summary: Ruby bindings for %{name} Group: Development/Languages/Ruby Requires: %{name} = %{version} %description ruby An implementation of facter functionality in C++11, providing: - a shared library which gather facts about the system - an executable for standalone command line usage - a ruby file to enable require 'facter'. Ruby bindings. %package jruby Summary: Jruby bindings for %{name} Group: Development/Languages/Java Requires: %{name} = %{version} %description jruby An implementation of facter functionality in C++11, providing: - a shared library which gather facts about the system - an executable for standalone command line usage - a ruby file to enable require 'facter'. Java bindings. %prep %setup -q %patch0 -p1 sed -i 's:hocon.a:hocon.so:' cmake/FindCPPHOCON.cmake sed -i 's:whereami.a:whereami.so:' cmake/FindWHEREAMI.cmake %build %cmake make %{?_smp_mflags} %check export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/lib %ctest %install %cmake_install %{?_smp_mflags} install -d %{buildroot}%{_sysconfdir}/puppetlabs/%{name}/facts.d %post -n %{soname} -p /sbin/ldconfig %postun -n %{soname} -p /sbin/ldconfig %files %defattr(-,root,root) %dir %{_sysconfdir}/puppetlabs/%{name} %dir %{_sysconfdir}/puppetlabs/%{name}/facts.d %{_bindir}/%{name} %{_mandir}/man8/%{name}.8%{ext_man} %files devel %defattr(-,root,root) %{_includedir}/%{name} %files -n %{soname} %defattr(-,root,root) %{_libdir}/lib%{name}.so* %files ruby %defattr(-,root,root) %{_libdir}/ruby/vendor_ruby/%{name}.rb %files jruby %defattr(-,root,root) %{_libdir}/ruby/vendor_ruby/%{name}.jar %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor