rsbac-admin-1.4.0-rc3: compile with rpmbuild
Gergely Lónyai <[email protected]>
| Newsgroups | gmane.linux.rsbac |
|---|---|
| Message-ID | <[email protected]> |
Hi, I would like modifying the old rsbac-admin.spec to new rsbac-admin but the libnss_rsbac not will installing. Building RSBAC NSS... ------------------------------------- CC interface.c LD libnss_rsbac.la Installing RSBAC NSS... ------------------------------------- INTO /home/aleph/rpm/BUILD (/home/aleph/rpm/BUILD) DIR /home/aleph/rpm/BUILD/lib INSTALL libnss_rsbac.la libtool: install: warning: relinking `libnss_rsbac.la' /home/aleph/rpm/BUILD/lib: file not recognized: Is a directory collect2: ld returned 1 exit status libtool: install: error: relink `libnss_rsbac.la' with the above command before installing it make[1]: *** [install] Error 1 make: *** [nss-install] Error 2 Aleph _______________________________________________ rsbac mailing list [email protected] http://www.rsbac.org/mailman/listinfo/rsbac
rsbac-admin.spec
(text/x-rpm-spec, 7.8 KB)
%define name rsbac-admin
%define fname rsbac
%define version 1.4.0
%define rcrel -rc3
%define release %mkrel 3.1
%define url http://www.rsbac.org
%define lib_name_orig lib%{fname}
%define lib_major 1
%define lib_name %mklibname %{fname} %{lib_major}
%define nss_name nss_rsbac
%define libnss_name_orig lib%{nss_name}
%define libnss_name %mklibname %{nss_name} 2
Name: %{name}
Version: %{version}
Release: %{release}
Summary: A set of RSBAC utilities
License: GPL
Group: System/Configuration/Other
Url: %{url}
Source0: %{url}/download/code/v%{version}/%{name}-%{version}%{rcrel}.tar.bz2
Requires(pre): /usr/sbin/useradd
Requires: dialog
BuildRequires: libtool pam-devel ncurses-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Obsoletes: %{name}-doc
Provides: %{name}-doc
%description
RSBAC administration is done via command line tools or dialog menus.
Please see the online documentation at http://www.rsbac.org/instadm.htm
or the %{name}-doc package.
#%package -n %{name}-doc
#Summary: RSBAC administration documentation
#Group: System/Configuration/Other
#%description -n %{name}-doc
#RSBAC administration documentation.
%package -n %{lib_name}
Summary: Main library for %{name}
Group: System/Libraries
Provides: %{lib_name_orig} = %{version}-%{release}
%description -n %{lib_name}
This package contains the library needed to run programs dynamically
linked with %{name}.
%package -n %{lib_name}-devel
Summary: Headers for developing programs that will use %{name}
Group: Development/C
Requires: kernel-source
Requires: %{lib_name} = %{version}
Provides: %{lib_name_orig}-devel = %{version}-%{release}
%ifarch x86_64
Provides: lib64%{fname}-devel = %{version}-%{release}
%endif
%description -n %{lib_name}-devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.
%package -n %{lib_name}-static-devel
Summary: Static library for developing programs that will use %{name}
Group: Development/C
Requires: %{lib_name}-devel = %{version}
Provides: %{lib_name_orig}-static-devel = %{version}-%{release}
%description -n %{lib_name}-static-devel
This package contains the static library that programmers will need to develop
applications which will use %{name}.
%package -n pam_rsbac
Summary: RSBAC plugins for PAM
Group: System/Libraries
%description -n pam_rsbac
This package contains plugins that enable using RSBAC for authentication
through PAM.
%package -n rsbac-rklogd
Summary: Standalone daemon to log RSBAC messages
Group: System/Kernel and hardware
%description -n rsbac-rklogd
This is a standalone daemon to log RSBAC messages
to its own facility, by default the file /var/log/rsbac/rsbac.log
To prevent messages to be logged through syslog too,
add the kernel parameter 'rsbac_nosyslog' at boot.
It provides also a log viewer: rklogd-viewer
%package -n %{libnss_name}
Summary: RSBAC NSS module to use RSBAC User Management
Group: System/Libraries
Provides: %{libnss_name_orig} = %{version}-%{release}
%description -n %{libnss_name}
This package contains the RSBAC NSS module to use RSBAC User Management.
%package -n %{libnss_name}-devel
Summary: Headers for developing programs that will use %{libnss_name}
Group: Development/C
Requires: kernel-source
Requires: %{libnss_name} = %{version}
Provides: %{libnss_name_orig}-devel = %{version}-%{release}
%ifarch x86_64
Provides: lib64%{nss_name}-devel = %{version}-%{release}
%endif
%description -n %{libnss_name}-devel
This package contains the headers that programmers will need to develop
applications which will use %{libnss_name}.
%prep
%setup -q -n %{name}-%{version}%{rcrel}
# lib64 fixes
find -name "Makefile" | xargs sed -i -e "s|/lib\b|/%{_lib}|g"
#sed 's/$(LIBTOOL) --mode=install.*/& -inst-prefix=$(DESTDIR)/g' -i main/nss/Makefile
%build
%make PREFIX=$RPM_BUILD_DIR DIR_PAM=$RPM_BUILD_DIR/%_lib/security \
DESTDIR=$RPM_BUILD_DIR DIR_LIBS=$RPM_BUILD_DIR/%_lib \
LIBDIR=$RPM_BUILD_DIR/%_lib inst_prefix_dir=$RPM_BUILD_DIR
%install
rm -rf $RPM_BUILD_ROOT
find main/tools/src/scripts -type f | xargs chmod a+x
%makeinstall PREFIX=$RPM_BUILD_DIR DIR_PAM=$RPM_BUILD_DIR/%_lib/security \
DESTDIR=$RPM_BUILD_DIR DIR_LIBS=$RPM_BUILD_DIR/%_lib \
LIBDIR=$RPM_BUILD_DIR/%_lib inst_prefix_dir=$RPM_BUILD_DIR
#find $RPM_BUILD_ROOT -name '*.la' | xargs sed -i -e "s|-L$RPM_BUILD_DIR/%{name}-%{version}/main/libs||g"
%find_lang %name --all-name
# Documentation
rm -rf rsbac-tools
mv $RPM_BUILD_ROOT/%{_docdir}/rsbac-tools-%{version} rsbac-tools
find rsbac-tools/examples -type f | xargs chmod a-x
rm -f rsbac-tools/examples/reg/reg_syscall
%clean
rm -rf $RPM_BUILD_ROOT
%post -n %{lib_name} -p /sbin/ldconfig
%postun -n %{lib_name} -p /sbin/ldconfig
%post -n %{libnss_name} -p /sbin/ldconfig
%postun -n %{libnss_name} -p /sbin/ldconfig
%files -f %name.lang
%defattr(-,root,root,0755)
%doc README rsbac-tools
%{_bindir}/acl*
%{_bindir}/attr*
%{_bindir}/auth*
%{_bindir}/backup*
%{_bindir}/daz*
%{_bindir}/get*
%{_bindir}/linux2acl
%{_bindir}/mac*
%{_bindir}/net*
%{_bindir}/pm*
%{_bindir}/rc*
%{_bindir}/rs*
%{_bindir}/switch*
%{_bindir}/user_aci.sh
%{_mandir}/man1/*
%files -n %{lib_name}
%defattr(-,root,root)
%{_libdir}/%{lib_name_orig}.so.*
%files -n %{lib_name}-devel
%defattr(-,root,root)
%{_libdir}/%{lib_name_orig}.so
%{_libdir}/%{lib_name_orig}.la
%{_includedir}/rsbac
%files -n %{lib_name}-static-devel
%defattr(-,root,root)
%{_libdir}/%{lib_name_orig}*.a
%files -n pam_rsbac
%defattr(-,root,root)
/%_lib/security/pam_rsbac*.so*
%files -n %{libnss_name}
%defattr(-,root,root)
%_libdir/libnss_rsbac*.so.*
%files -n %{libnss_name}-devel
%defattr(-,root,root)
%_libdir/libnss_rsbac*.la
%_libdir/libnss_rsbac*.a
%_libdir/libnss_rsbac*.so
%files -n rsbac-rklogd
%defattr(-,root,root)
%_bindir/rklogd-viewer
%_sbindir/rklogd
%{_mandir}/man8/rklogd*
%changelog
* Wed Aug 30 2006 Arnaud Patard <[email protected]> 1.2.8-1mdv2007.0
- 1.2.8
- Drop obselete patches
- Don't build with VERBOSE=1
- Packaging fixes (e.g. call ldconfig)
* Mon Jul 17 2006 Oden Eriksson <[email protected]> 1.2.6-7mdv2007.0
- rebuild
* Mon Jul 17 2006 Oden Eriksson <[email protected]> 1.2.6-6mdv2007.0
- rebuild
* Sun Jul 16 2006 Oden Eriksson <[email protected]> 1.2.6-5mdv2007.0
- don't build it twice (P1)
- added lib64 fixes
- fix docs
* Mon May 29 2006 Thierry Vignaud <[email protected]> 1.2.6-3mdv2007.0
- add bug reference
* Mon May 22 2006 Thierry Vignaud <[email protected]> 1.2.6-3mdk
- add buildrequires: ncurses-devel
* Mon May 22 2006 Thierry Vignaud <[email protected]> 1.2.6-2mdk
- buildrequires: pam-devel
- obsoletes rsbac-admin-doc (dead subpackge since 1 year) (#19057)
- don't package X times the not so usefull README
* Fri May 19 2006 Arnaud Patard <[email protected]> 1.2.6-1mdk
- 1.2.6
* Wed May 10 2006 Thierry Vignaud <[email protected]> 1.2.5-3mdk
- use %%mkrel
- compile everything
- patch 5: fix compiling pam support
* Thu Mar 30 2006 Christiaan Welvaart <[email protected]> 1.2.5-2mdk
- add BuildRequires: libtool
* Wed Jan 18 2006 Arnaud Patard <[email protected]> 1.2.5-1mdk
- 1.2.5
* Tue Sep 20 2005 Guillaume Rousse <[email protected]> 1.2.4-3mdk
- ship devel man page in devel package in correct place
* Sat May 21 2005 Oden Eriksson <[email protected]> 1.2.4-2mdk
- use the %%configure2_5x macro
* Thu Mar 31 2005 Arnaud Patard <[email protected]> 1.2.4-1mdk
- Update to current stable version (to match kernel version and fix the build)
* Mon Feb 28 2005 Christiaan Welvaart <[email protected]> 1.2.3-4mdk
- run aclocal before automake
* Sat Dec 25 2004 Per Øyvind Karlsen <[email protected]> 1.2.3-3mdk
- bah, fix buildrequires
* Sat Dec 25 2004 Per Øyvind Karlsen <[email protected]> 1.2.3-2mdk
- use automake-1.8
- cosmetics
* Mon Jul 19 2004 Nicolas Planel <[email protected]> 1.2.3-1mdk
- Inital release for Mandrakelinux distribution.