- add libtool as buildrequire to avoid implicit dependency

OBS-URL: https://build.opensuse.org/package/show/YaST:Head/yast2-ldap?expand=0&rev=21
This commit is contained in:
Stephan Kulow 2011-12-13 11:01:39 +00:00 committed by Git OBS Bridge
parent a880b9fdb2
commit 76c49a11db
3 changed files with 46 additions and 24 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:50c6017e9dcf86aa8366b2fdc7a8debc57672392224ed6beddc41ef27798e4e8 oid sha256:27a872b5bfe883cafdaeb8ea8b1ac771c62877af8c3f1ec68c17a3dcc8768a90
size 268851 size 269897

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 25 12:21:42 UTC 2011 - coolo@suse.com
- add libtool as buildrequire to avoid implicit dependency
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 31 15:42:11 CEST 2011 - jsuchome@suse.cz Wed Aug 31 15:42:11 CEST 2011 - jsuchome@suse.cz

View File

@ -1,23 +1,39 @@
# #
# spec file for package yast2-ldap (Version 2.21.1) # spec file for package yast2-ldap
# #
# norootforbuild # Copyright (c) 2011 SUSE LINUX Products 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.
Name: yast2-ldap # Please submit bugfixes or comments via http://bugs.opensuse.org/
Version: 2.21.1 #
Release: 0
Name: yast2-ldap
Version: 2.21.1
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-ldap-2.21.1.tar.bz2 Source0: yast2-ldap-%{version}.tar.bz2
prefix: /usr BuildRequires: doxygen
BuildRequires: gcc-c++
Group: System/YaST BuildRequires: libldapcpp-devel
License: GPL v2 or later BuildRequires: libtool
BuildRequires: gcc-c++ libldapcpp-devel libxcrypt-devel yast2-devtools doxygen yast2-core-devel yast2 BuildRequires: libxcrypt-devel
Summary: YaST2 - LDAP Agent BuildRequires: yast2
Requires: ldapcpplib yast2 BuildRequires: yast2-core-devel
BuildRequires: yast2-devtools
Summary: YaST2 - LDAP Agent
License: GPL-2.0+
Group: System/YaST
Requires: ldapcpplib yast2
%description %description
This agent is used by various YaST2 modules to work with LDAP. It This agent is used by various YaST2 modules to work with LDAP. It
@ -25,31 +41,30 @@ enables searching the LDAP tree and adding/deleting/modifying items on
an LDAP server. an LDAP server.
%prep %prep
%setup -n yast2-ldap-2.21.1 %setup -n yast2-ldap-%{version}
%build %build
%{prefix}/bin/y2tool y2autoconf %{_prefix}/bin/y2tool y2autoconf
%{prefix}/bin/y2tool y2automake %{_prefix}/bin/y2tool y2automake
autoreconf --force --install autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG" export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG" export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
%{?suse_update_config:%{suse_update_config -f}} %{?suse_update_config:%{suse_update_config -f}}
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir} ./configure --libdir=%{_libdir} --prefix=%{_prefix} --mandir=%{_mandir}
# V=1: verbose build in case we used AM_SILENT_RULES(yes) # V=1: verbose build in case we used AM_SILENT_RULES(yes)
# so that RPM_OPT_FLAGS check works # so that RPM_OPT_FLAGS check works
make %{?jobs:-j%jobs} V=1 make %{?jobs:-j%jobs} V=1
%install %install
make install DESTDIR="$RPM_BUILD_ROOT" make install DESTDIR="$RPM_BUILD_ROOT"
[ -e "%{prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT" [ -e "%{_prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
for f in `find $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/ -name "*.desktop"` ; do for f in `find $RPM_BUILD_ROOT/%{_prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
d=${f##*/} d=${f##*/}
%suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop} %suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}
done done
%clean %clean
rm -rf "$RPM_BUILD_ROOT" rm -rf "$RPM_BUILD_ROOT"
@ -60,4 +75,6 @@ rm -rf "$RPM_BUILD_ROOT"
%{_libdir}/YaST2/plugin/libpy2ag_ldap.so.* %{_libdir}/YaST2/plugin/libpy2ag_ldap.so.*
%{_libdir}/YaST2/plugin/libpy2ag_ldap.so %{_libdir}/YaST2/plugin/libpy2ag_ldap.so
%{_libdir}/YaST2/plugin/libpy2ag_ldap.la %{_libdir}/YaST2/plugin/libpy2ag_ldap.la
%doc %{prefix}/share/doc/packages/yast2-ldap %doc %{_prefix}/share/doc/packages/yast2-ldap
%changelog