Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
qore-openldap-module
qore-openldap-module.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qore-openldap-module.spec of Package qore-openldap-module
# # spec file for package qore-openldap-module # # Copyright (c) 2022 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 module_api %(qore --latest-module-api 2>/dev/null) %define module_dir %{_libdir}/qore-modules %if 0%{?sles_version} %define dist .sles%{?sles_version} %else %if 0%{?suse_version} # get *suse release major version %define os_maj %(echo %suse_version|rev|cut -b3-|rev) # get *suse release minor version without trailing zeros %define os_min %(echo %suse_version|rev|cut -b-2|rev|sed s/0*$//) %if %suse_version > 1010 %define dist .opensuse%{os_maj}_%{os_min} %else %define dist .suse%{os_maj}_%{os_min} %endif %endif %endif # see if we can determine the distribution type %if 0%{!?dist:1} %define rh_dist %(if [ -f /etc/redhat-release ];then cat /etc/redhat-release|sed "s/[^0-9.]*//"|cut -f1 -d.;fi) %if 0%{?rh_dist} %define dist .rhel%{rh_dist} %else %define dist .unknown %endif %endif Summary: OPENLDAP module for Qore Name: qore-openldap-module Version: 1.2 Release: 1%{dist} License: GPL-2.0-or-later OR LGPL-2.1-or-later Group: Development/Languages URL: http://qore.org Source: https://github.com/qorelanguage/module-openldap/releases/download/v%{version}/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: /usr/bin/env Requires: qore-module(abi)%{?_isa} = %{module_api} BuildRequires: gcc-c++ BuildRequires: qore-devel >= 0.9 %if 0%{?suse_version} || 0%{?sles_version} BuildRequires: openldap2-devel %else BuildRequires: openldap-devel %endif BuildRequires: qore %description This package contains the openldap module for the Qore Programming Language. This module exposes functionality from the openldap library as a Qore API. %if 0%{?suse_version} %debug_package %endif %package doc Summary: Documentation and examples for the Qore openldap module Group: Development/Languages %description doc This package contains the HTML documentation and example programs for the Qore openldap module. %files doc %defattr(-,root,root,-) %doc docs/openldap test %prep %setup -q ./configure RPM_OPT_FLAGS="$RPM_OPT_FLAGS" --prefix=/usr --disable-debug %build %{__make} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{module_dir} mkdir -p $RPM_BUILD_ROOT/usr/share/doc/qore-openldap-module make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{module_dir} %doc COPYING.MIT COPYING.LGPL README RELEASE-NOTES AUTHORS %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