- Cleanup a bit with-spec-cleaner help
OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/dpkg?expand=0&rev=21
This commit is contained in:
parent
8344784a15
commit
75cfd16202
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 1 12:59:58 UTC 2015 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Cleanup a bit with-spec-cleaner help
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 1 12:54:48 UTC 2015 - tchvatal@suse.com
|
Wed Apr 1 12:54:48 UTC 2015 - tchvatal@suse.com
|
||||||
|
|
||||||
|
55
dpkg.spec
55
dpkg.spec
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%define admindir %{_localstatedir}/lib/rpm/
|
%define admindir %{_localstatedir}/lib/rpm/
|
||||||
|
|
||||||
Name: dpkg
|
Name: dpkg
|
||||||
Version: 1.17.24
|
Version: 1.17.24
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -32,9 +31,10 @@ Patch1: update-alternatives-suse.patch
|
|||||||
# PATCH-FIX-UPSTREAM remove --utf8 since we only build En manpages.
|
# PATCH-FIX-UPSTREAM remove --utf8 since we only build En manpages.
|
||||||
Patch6: dpkg-sparc.diff
|
Patch6: dpkg-sparc.diff
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libbz2-devel
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
%define use_selinux 1
|
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
|
BuildRequires: update-alternatives
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: perl(Date::Parse)
|
BuildRequires: perl(Date::Parse)
|
||||||
@ -42,22 +42,17 @@ BuildRequires: perl(IO::String)
|
|||||||
Requires: cpio
|
Requires: cpio
|
||||||
Requires: make
|
Requires: make
|
||||||
Requires: patch
|
Requires: patch
|
||||||
|
Requires: perl = %{perl_version}
|
||||||
|
Requires: update-alternatives
|
||||||
|
Requires: perl(Date::Parse)
|
||||||
|
Requires(pre): /bin/touch
|
||||||
|
Recommends: perl(File::FcntlLock)
|
||||||
Provides: deb = %{version}
|
Provides: deb = %{version}
|
||||||
Obsoletes: deb < %{version}
|
Obsoletes: deb < %{version}
|
||||||
Provides: dpkg-dev = %{version}
|
Provides: dpkg-dev = %{version}
|
||||||
Provides: dpkg-doc = %{version}
|
Provides: dpkg-doc = %{version}
|
||||||
Provides: dselect = %{version}
|
Provides: dselect = %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Requires(pre): /bin/touch
|
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
BuildRequires: libbz2-devel
|
|
||||||
BuildRequires: update-alternatives
|
|
||||||
Requires: perl = %{perl_version}
|
|
||||||
Requires: update-alternatives
|
|
||||||
Requires: perl(Date::Parse)
|
|
||||||
Recommends: perl(File::FcntlLock)
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains tools for working with Debian packages. It makes
|
This package contains tools for working with Debian packages. It makes
|
||||||
@ -70,43 +65,26 @@ dpkg-doc, dpkg-dev.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for dpkg
|
Summary: Development files for dpkg
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{name} = %{version}
|
||||||
Provides: deb-devel = %{version}
|
Provides: deb-devel = %{version}
|
||||||
Obsoletes: deb-devel < %{version}
|
Obsoletes: deb-devel < %{version}
|
||||||
Requires: %{name} = %{version}
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Libraries and header files for dpkg.
|
Libraries and header files for dpkg.
|
||||||
|
|
||||||
%package lang
|
%lang_package
|
||||||
Summary: Languages for package %{name}
|
|
||||||
Group: System/Localization
|
|
||||||
Requires: %{name} = %{version}
|
|
||||||
Provides: %{name}-lang-all = %{version}
|
|
||||||
Provides: deb-lang = %{version}
|
|
||||||
Obsoletes: deb-lang < %{version}
|
|
||||||
%if %{defined suse_version}
|
|
||||||
Supplements: packageand(bundle-lang-other:%{name})
|
|
||||||
BuildArch: noarch
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description lang
|
|
||||||
Provides translations to the package %{name}
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%if 0%{?use_selinux}
|
|
||||||
export SELINUX_LIBS="-lselinux"
|
export SELINUX_LIBS="-lselinux"
|
||||||
%endif
|
%configure \
|
||||||
%{configure}\
|
--disable-silent-rules \
|
||||||
%if 0%{?use_selinux}
|
|
||||||
--with-selinux \
|
--with-selinux \
|
||||||
%endif
|
|
||||||
--localstatedir=%{_localstatedir}/lib \
|
--localstatedir=%{_localstatedir}/lib \
|
||||||
--with-admindir=%{_localstatedir}/lib/dpkg
|
--with-admindir=%{_localstatedir}/lib/dpkg
|
||||||
|
|
||||||
@ -132,7 +110,7 @@ sed -i 's/^#define ARCHITECTURE ""/#define ARCHITECTURE "%{debarch}"/' config.h
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__make} install DESTDIR=%{?buildroot}
|
make install DESTDIR=%{?buildroot}
|
||||||
|
|
||||||
# remove update-alternatives stuff (included in separate package)
|
# remove update-alternatives stuff (included in separate package)
|
||||||
rm -rf %{buildroot}%{_sysconfdir}/alternatives
|
rm -rf %{buildroot}%{_sysconfdir}/alternatives
|
||||||
@ -143,16 +121,16 @@ rm -rf %{buildroot}%{_mandir}/man8/update-alternatives.8
|
|||||||
rm -rf %{buildroot}%{_mandir}/*/man8/update-alternatives.8
|
rm -rf %{buildroot}%{_mandir}/*/man8/update-alternatives.8
|
||||||
|
|
||||||
# locales
|
# locales
|
||||||
%{find_lang} %{name}
|
%find_lang %{name}
|
||||||
%{find_lang} dselect
|
%find_lang dselect
|
||||||
%{find_lang} dpkg-dev
|
%find_lang dpkg-dev
|
||||||
cat dselect.lang dpkg-dev.lang >> %{name}.lang
|
cat dselect.lang dpkg-dev.lang >> %{name}.lang
|
||||||
|
|
||||||
# extras
|
# extras
|
||||||
install -m 755 %{SOURCE3} %{buildroot}%{_bindir}
|
install -m 755 %{SOURCE3} %{buildroot}%{_bindir}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} check
|
make %{?_smp_mflags} check
|
||||||
|
|
||||||
%post
|
%post
|
||||||
cd %{_localstatedir}/lib/dpkg
|
cd %{_localstatedir}/lib/dpkg
|
||||||
@ -162,6 +140,7 @@ done
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%files lang -f %{name}.lang
|
%files lang -f %{name}.lang
|
||||||
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user