Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
libyui.33664
libyui-rest-api.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libyui-rest-api.spec of Package libyui.33664
# # spec file for package libyui-rest-api # # Copyright (c) 2023 SUSE LLC # # 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 https://bugs.opensuse.org/ # Name: libyui-rest-api # DO NOT manually bump the version here; instead, use rake version:bump Version: 4.3.7 Release: 0 %define so_version 16 %define bin_name %{name}%{so_version} BuildRequires: boost-devel BuildRequires: cmake >= 3.10 BuildRequires: gcc-c++ BuildRequires: jsoncpp-devel BuildRequires: libmicrohttpd-devel BuildRequires: libyui-devel >= %{version} Summary: Libyui - REST API plugin, the shared part License: LGPL-2.1-only OR LGPL-3.0-only URL: http://github.com/libyui Source: libyui-%{version}.tar.bz2 %description This package provides a libyui REST API plugin. It allows inspecting and controlling the UI remotely via an HTTP REST API, it is designed for automated tests. %package -n %{bin_name} Summary: Libyui - REST API plugin, the shared part Requires: libyui%{so_version} Requires: yui_backend = %{so_version} Provides: %{name} = %{version} %description -n %{bin_name} This package provides a libyui REST API plugin. It allows inspecting and controlling the UI remotely via an HTTP REST API, it is designed for automated tests. %package devel Summary: Libyui - REST API header files Requires: %{bin_name} = %{version} Requires: boost-devel Requires: glibc-devel Requires: jsoncpp-devel Requires: libmicrohttpd-devel Requires: libstdc++-devel Requires: libyui-devel >= %{version} %description devel This package provides a libyui REST API plugin. This is a development subpackage. %prep %setup -q -n libyui-%{version} %build pushd %{name} mkdir build cd build export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG $(getconf LFS_CFLAGS)" export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG $(getconf LFS_CFLAGS)" %if %{?_with_debug:1}%{!?_with_debug:0} CMAKE_OPTS="-DCMAKE_BUILD_TYPE=RELWITHDEBINFO" %else CMAKE_OPTS="-DCMAKE_BUILD_TYPE=RELEASE" %endif cmake .. \ $CMAKE_OPTS make %{?jobs:-j%jobs} popd %install pushd %{name} cd build make install DESTDIR="$RPM_BUILD_ROOT" install -m0755 -d %{buildroot}/%{_libdir}/yui install -m0755 -d %{buildroot}/%{_docdir}/%{bin_name}/ install -m0644 ../../COPYING* %{buildroot}/%{_docdir}/%{bin_name}/ popd %post -n %{bin_name} -p /sbin/ldconfig %postun -n %{bin_name} -p /sbin/ldconfig %files -n %{bin_name} %dir %{_libdir}/yui %{_libdir}/yui/lib*.so.* %doc %dir %{_docdir}/%{bin_name} %license %{_docdir}/%{bin_name}/COPYING* %files devel %dir %{_docdir}/%{bin_name} %{_libdir}/yui/lib*.so %{_includedir}/yui %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