forked from pool/utempter
- remove /sbin/ldconfig -n $DESTDIR%{_libdir} as it should be not
needed in install phase - Remove Requires: %name as there is no name and adjust obsolete as there exist version 0.5.5.6 which is larger than the provides - Remove sle10 obsolete for ppc64 utempter-64bit - Clean-up with spec-cleaner OBS-URL: https://build.opensuse.org/package/show/Base:System/utempter?expand=0&rev=27
This commit is contained in:
parent
2f131392dc
commit
c4e6f5ad3f
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 13 16:13:17 UTC 2014 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- remove /sbin/ldconfig -n $DESTDIR%{_libdir} as it should be not
|
||||||
|
needed in install phase
|
||||||
|
- Remove Requires: %name as there is no name and adjust obsolete
|
||||||
|
as there exist version 0.5.5.6 which is larger than the provides
|
||||||
|
- Remove sle10 obsolete for ppc64 utempter-64bit
|
||||||
|
- Clean-up with spec-cleaner
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 14 15:59:02 UTC 2014 - fcrozat@suse.com
|
Thu Aug 14 15:59:02 UTC 2014 - fcrozat@suse.com
|
||||||
|
|
||||||
|
@ -17,28 +17,20 @@
|
|||||||
|
|
||||||
|
|
||||||
%define lname libutempter0
|
%define lname libutempter0
|
||||||
Name: utempter
|
|
||||||
%define utmpGroup utmp
|
%define utmpGroup utmp
|
||||||
|
Name: utempter
|
||||||
Version: 1.1.6
|
Version: 1.1.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A privileged helper for utmp and wtmp updates
|
Summary: A privileged helper for utmp and wtmp updates
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: utempter-64bit
|
|
||||||
%endif
|
|
||||||
Url: ftp://ftp.altlinux.org/pub/people/ldv/utempter/
|
Url: ftp://ftp.altlinux.org/pub/people/ldv/utempter/
|
||||||
Source: ftp://ftp.altlinux.org/pub/people/ldv/utempter/lib%name-%version.tar.bz2
|
Source: ftp://ftp.altlinux.org/pub/people/ldv/utempter/lib%{name}-%{version}.tar.bz2
|
||||||
Source1: ftp://ftp.altlinux.org/pub/people/ldv/utempter/lib%name-%version.tar.bz2.asc
|
Source1: ftp://ftp.altlinux.org/pub/people/ldv/utempter/lib%{name}-%{version}.tar.bz2.asc
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
Source3: %name.keyring
|
Source3: %{name}.keyring
|
||||||
Patch0: utempter.eal3.diff
|
Patch0: utempter.eal3.diff
|
||||||
Patch1: utempter-no-staticlib.patch
|
Patch1: utempter-no-staticlib.patch
|
||||||
# will be checked by source service
|
|
||||||
#BuildRequires: gpg-offline
|
|
||||||
|
|
||||||
#
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -49,26 +41,25 @@ setuid root.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for utempter
|
Summary: Development files for utempter
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %lname = %{version}
|
Requires: %{lname} = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Utempter is a privileged helper for utmp and wtmp updates. This
|
Utempter is a privileged helper for utmp and wtmp updates. This
|
||||||
package contains the development files needed.
|
package contains the development files needed.
|
||||||
|
|
||||||
%package -n %lname
|
%package -n %{lname}
|
||||||
Summary: Shared library of utempter
|
Summary: Shared library of utempter
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
PreReq: permissions
|
Requires(post): permissions
|
||||||
Provides: utempter = %version
|
Provides: %{name} = %{version}
|
||||||
Obsoletes: utempter <= 0.5.5
|
Obsoletes: %{name} < 0.5.6
|
||||||
Requires: %{name}
|
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %{lname}
|
||||||
Utempter is a privileged helper for utmp and wtmp updates. This
|
Utempter is a privileged helper for utmp and wtmp updates. This
|
||||||
package contains the library used by applications.
|
package contains the library used by applications.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n lib%name-%version
|
%setup -q -n lib%{name}-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
@ -79,26 +70,26 @@ make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags} -fPIC" CC="gcc"
|
|||||||
export DESTDIR=%{buildroot}
|
export DESTDIR=%{buildroot}
|
||||||
make PREFIX=$DESTDIR libdir=%{_libdir} DESTDIR=%{buildroot} install
|
make PREFIX=$DESTDIR libdir=%{_libdir} DESTDIR=%{buildroot} install
|
||||||
chmod 755 $DESTDIR%{_libdir}/libutempter.so*
|
chmod 755 $DESTDIR%{_libdir}/libutempter.so*
|
||||||
/sbin/ldconfig -n $DESTDIR%{_libdir}
|
|
||||||
|
|
||||||
%verifyscript -n %lname
|
%verifyscript -n %{lname}
|
||||||
%verify_permissions -e /usr/lib/utempter/utempter
|
%verify_permissions -e %{_libexecdir}/utempter/utempter
|
||||||
|
|
||||||
%post -n %lname
|
%post -n %{lname}
|
||||||
%set_permissions /usr/lib/utempter/utempter
|
%set_permissions %{_libexecdir}/utempter/utempter
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %lname -p /sbin/ldconfig
|
%postun -n %{lname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %{lname}
|
||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%dir /usr/lib/utempter
|
%dir %{_libexecdir}/utempter
|
||||||
%attr(02755, root, %{utmpGroup}) /usr/lib/utempter/utempter
|
%attr(02755, root, %{utmpGroup}) %{_libexecdir}/utempter/utempter
|
||||||
%attr(755,root,root) %{_libdir}/libutempter.so.*
|
%attr(755,root,root) %{_libdir}/libutempter.so.*
|
||||||
%attr(644,root,root) %doc %{_mandir}/man8/*
|
%attr(644,root,root) %doc %{_mandir}/man8/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%defattr(644,root,root,755)
|
%defattr(644,root,root,755)
|
||||||
%attr(755,root,root) %{_libdir}/libutempter.so
|
%attr(755,root,root) %{_libdir}/libutempter.so
|
||||||
|
Loading…
Reference in New Issue
Block a user