|
@@ -6,37 +6,12 @@
|
|
%define lsbldso ld-lsb.so
|
|
%define lsbldso ld-lsb.so
|
|
%endif
|
|
%endif
|
|
|
|
|
|
-%ifarch ia64
|
|
|
|
-%define ldso ld-linux-ia64.so.2
|
|
|
|
-%define lsbldso ld-lsb-ia64.so
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
-%ifarch ppc
|
|
|
|
-%define ldso ld.so.1
|
|
|
|
-%define lsbldso ld-lsb-ppc32.so
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
-%ifarch ppc64
|
|
|
|
-%define ldso ld64.so.1
|
|
|
|
-%define lsbldso ld-lsb-ppc64.so
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
-%ifarch s390
|
|
|
|
-%define ldso ld.so.1
|
|
|
|
-%define lsbldso ld-lsb-s390.so
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
-%ifarch s390x
|
|
|
|
-%define ldso ld64.so.1
|
|
|
|
-%define lsbldso ld-lsb-s390x.so
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
%ifarch x86_64
|
|
%ifarch x86_64
|
|
%define ldso ld-linux-x86-64.so.2
|
|
%define ldso ld-linux-x86-64.so.2
|
|
%define lsbldso ld-lsb-x86-64.so
|
|
%define lsbldso ld-lsb-x86-64.so
|
|
%endif
|
|
%endif
|
|
|
|
|
|
-%ifarch ia64 ppc64 s390x x86_64
|
|
|
|
|
|
+%ifarch x86_64
|
|
%define qual ()(64bit)
|
|
%define qual ()(64bit)
|
|
%else
|
|
%else
|
|
%define qual %{nil}
|
|
%define qual %{nil}
|
|
@@ -50,11 +25,15 @@ Summary: LSB support for Vine Linux
|
|
Summary(ja): Vine Linux の LSB サポート
|
|
Summary(ja): Vine Linux の LSB サポート
|
|
Name: lsb
|
|
Name: lsb
|
|
Version: 4.0
|
|
Version: 4.0
|
|
-Release: 5%{?_dist_release}
|
|
|
|
|
|
+Release: 6%{?_dist_release}
|
|
|
|
+Group: system
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+
|
|
|
|
+License: GPLv2
|
|
URL: http://www.linuxfoundation.org/
|
|
URL: http://www.linuxfoundation.org/
|
|
Source0: %{name}-vine-%{version}.tar.bz2
|
|
Source0: %{name}-vine-%{version}.tar.bz2
|
|
-License: GPLv2
|
|
|
|
-Group: System Environment/Base
|
|
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
BuildRequires: glibc-static
|
|
BuildRequires: glibc-static
|
|
# dependency for primary LSB application for v1.3
|
|
# dependency for primary LSB application for v1.3
|
|
@@ -63,21 +42,6 @@ Provides: lsb = %{version}
|
|
%ifarch %{ix86}
|
|
%ifarch %{ix86}
|
|
%define archname ia32
|
|
%define archname ia32
|
|
%endif
|
|
%endif
|
|
-%ifarch ia64
|
|
|
|
-%define archname ia64
|
|
|
|
-%endif
|
|
|
|
-%ifarch ppc
|
|
|
|
-%define archname ppc32
|
|
|
|
-%endif
|
|
|
|
-%ifarch ppc64
|
|
|
|
-%define archname ppc64
|
|
|
|
-%endif
|
|
|
|
-%ifarch s390
|
|
|
|
-%define archname s390
|
|
|
|
-%endif
|
|
|
|
-%ifarch s390x
|
|
|
|
-%define archname s390x
|
|
|
|
-%endif
|
|
|
|
%ifarch x86_64
|
|
%ifarch x86_64
|
|
%define archname amd64
|
|
%define archname amd64
|
|
%endif
|
|
%endif
|
|
@@ -348,6 +312,9 @@ Requires: /usr/sbin/useradd
|
|
Requires: /usr/sbin/userdel
|
|
Requires: /usr/sbin/userdel
|
|
Requires: /usr/sbin/usermod
|
|
Requires: /usr/sbin/usermod
|
|
|
|
|
|
|
|
+Requires: /bin/mailx
|
|
|
|
+Requires: lsb-release
|
|
|
|
+
|
|
%description
|
|
%description
|
|
The Linux Standard Base (LSB) is an attempt to develop a set of
|
|
The Linux Standard Base (LSB) is an attempt to develop a set of
|
|
standards that will increase compatibility among Linux distributions.
|
|
standards that will increase compatibility among Linux distributions.
|
|
@@ -356,13 +323,16 @@ Applications. It also contains requirements that will ensure that all
|
|
components required by the LSB that are provided by Red Hat Linux are
|
|
components required by the LSB that are provided by Red Hat Linux are
|
|
installed on the system.
|
|
installed on the system.
|
|
|
|
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q -n %{name}-vine-%{version}
|
|
%setup -q -n %{name}-vine-%{version}
|
|
|
|
|
|
|
|
+
|
|
%build
|
|
%build
|
|
cd lsb-release-%{upstreamlsbrelver}
|
|
cd lsb-release-%{upstreamlsbrelver}
|
|
make
|
|
make
|
|
|
|
|
|
|
|
+
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
# LSB uses /usr/lib rather than /usr/lib64 even for 64bit OS
|
|
# LSB uses /usr/lib rather than /usr/lib64 even for 64bit OS
|
|
@@ -401,64 +371,36 @@ mkdir -p $RPM_BUILD_ROOT/bin
|
|
# it's OK to put non binary in /usr/lib.
|
|
# it's OK to put non binary in /usr/lib.
|
|
ln -snf ../../../sbin/chkconfig $RPM_BUILD_ROOT/usr/lib/lsb/install_initd
|
|
ln -snf ../../../sbin/chkconfig $RPM_BUILD_ROOT/usr/lib/lsb/install_initd
|
|
ln -snf ../../../sbin/chkconfig $RPM_BUILD_ROOT/usr/lib/lsb/remove_initd
|
|
ln -snf ../../../sbin/chkconfig $RPM_BUILD_ROOT/usr/lib/lsb/remove_initd
|
|
-ln -snf mail $RPM_BUILD_ROOT/bin/mailx
|
|
|
|
-
|
|
|
|
-gcc $RPM_OPT_FLAGS -Os -static -o lsb_vine_trigger{.%{_target_cpu},.c} -DLSBSOVER='"%{lsbsover}"' \
|
|
|
|
- -DLDSO='"%{ldso}"' -DLSBLDSO='"/%{_lib}/%{lsbldso}"' -D_GNU_SOURCE
|
|
|
|
-install -m 700 lsb_vine_trigger.%{_target_cpu} \
|
|
|
|
- $RPM_BUILD_ROOT%{_sbindir}/lsb_vine_trigger.%{_target_cpu}
|
|
|
|
|
|
|
|
cp -p lsb_vine_init $RPM_BUILD_ROOT/bin/lsb_vine_init
|
|
cp -p lsb_vine_init $RPM_BUILD_ROOT/bin/lsb_vine_init
|
|
|
|
|
|
-%clean
|
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+rm -rf %{buildroot}%{_bindir}
|
|
|
|
+rm -rf %{buildroot}%{_mandir}
|
|
|
|
|
|
-%triggerpostun -- glibc
|
|
|
|
-if [ -x /usr/sbin/lsb_vine_trigger.%{_target_cpu} ]; then
|
|
|
|
- /usr/sbin/lsb_vine_trigger.%{_target_cpu}
|
|
|
|
-fi
|
|
|
|
|
|
|
|
-%ifnarch %{ix86}
|
|
|
|
- /sbin/sln %{ldso} /%{_lib}/%{lsbldso} || :
|
|
|
|
-%else
|
|
|
|
- if [ -f /emul/ia32-linux/lib/%{ldso} ]; then
|
|
|
|
- for LSBVER in %{lsbsover}; do
|
|
|
|
- /sbin/sln /emul/ia32-linux/lib/%{ldso} /%{_lib}/%{lsbldso}.$LSBVER || :
|
|
|
|
- done
|
|
|
|
- else
|
|
|
|
- for LSBVER in %{lsbsover}; do
|
|
|
|
- /sbin/sln %{ldso} /%{_lib}/%{lsbldso}.$LSBVER || :
|
|
|
|
- done
|
|
|
|
- fi
|
|
|
|
-%endif
|
|
|
|
|
|
+%clean
|
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%ifarch %{ix86}
|
|
|
|
-%post
|
|
|
|
-# make this softlink again for /emul
|
|
|
|
- if [ -f /emul/ia32-linux/lib/%{ldso} ]; then
|
|
|
|
- for LSBVER in %{lsbsover}; do
|
|
|
|
- /sbin/sln /emul/ia32-linux/lib/%{ldso} /%{_lib}/%{lsbldso}.$LSBVER || :
|
|
|
|
- done
|
|
|
|
- fi
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{_sysconfdir}/lsb-vine
|
|
%{_sysconfdir}/lsb-vine
|
|
%dir %{_sysconfdir}/lsb-release.d
|
|
%dir %{_sysconfdir}/lsb-release.d
|
|
%{_sysconfdir}/lsb-release.d/*
|
|
%{_sysconfdir}/lsb-release.d/*
|
|
-%{_mandir}/*/*
|
|
|
|
-%{_bindir}/*
|
|
|
|
/bin/lsb_vine_init
|
|
/bin/lsb_vine_init
|
|
/usr/lib/lsb
|
|
/usr/lib/lsb
|
|
/%{_lib}/*so*
|
|
/%{_lib}/*so*
|
|
/lib/lsb*
|
|
/lib/lsb*
|
|
-%{_sbindir}/lsb_vine_trigger.%{_target_cpu}
|
|
|
|
-/bin/mailx
|
|
|
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Mar 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0-6
|
|
|
|
+- dropped /bin/mailx: provided by mailutils.
|
|
|
|
+- dropped lsb_release: provides by lsb-release.
|
|
|
|
+- dropped scriptlets and triggers.
|
|
|
|
+
|
|
* Mon Oct 14 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0-5
|
|
* Mon Oct 14 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0-5
|
|
-- made not to require qt3.
|
|
|
|
|
|
+- dropped dependence on qt3.
|
|
- removed stuff for unsuppoted architectures.
|
|
- removed stuff for unsuppoted architectures.
|
|
|
|
|
|
* Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 4.0-4
|
|
* Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 4.0-4
|