dpkg/dpkg.spec

154 lines
4.0 KiB
RPMSpec

Name: dpkg
Version: 1.18.4
Release: 1mamba
Summary: Debian's package maintenance system
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://packages.debian.org/search?keywords=dpkg
Source: http://http.debian.net/debian/pool/main/d/dpkg/dpkg_%{version}.tar.xz
Patch0: dpkg-1.18.4-perl-deps-workaround.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbzip2-devel
BuildRequires: libgcc
BuildRequires: liblzma-devel
BuildRequires: libncurses5
BuildRequires: libpcre-devel
BuildRequires: libperl
BuildRequires: libselinux-devel
BuildRequires: libsepol-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Debian's package maintenance system.
%package alternatives
Group: System/Management
Summary: Alternatives management (Debian version)
%description alternatives
Alternatives management (Debian version).
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch0 -p1
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang dselect
%find_lang dpkg-dev
%find_lang %{name} || touch %{name}.lang
cat dselect.lang dpkg-dev.lang >> %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/dpkg
%{_bindir}/dpkg-*
%{_bindir}/dselect
%{_includedir}/dpkg/ar.h
%{_includedir}/dpkg/arch.h
%{_includedir}/dpkg/atomic-file.h
%{_includedir}/dpkg/buffer.h
%{_includedir}/dpkg/c-ctype.h
%{_includedir}/dpkg/command.h
%{_includedir}/dpkg/compress.h
%{_includedir}/dpkg/deb-version.h
%{_includedir}/dpkg/debug.h
%{_includedir}/dpkg/dir.h
%{_includedir}/dpkg/dpkg-db.h
%{_includedir}/dpkg/dpkg.h
%{_includedir}/dpkg/ehandle.h
%{_includedir}/dpkg/error.h
%{_includedir}/dpkg/fdio.h
%{_includedir}/dpkg/file.h
%{_includedir}/dpkg/glob.h
%{_includedir}/dpkg/macros.h
%{_includedir}/dpkg/namevalue.h
%{_includedir}/dpkg/options.h
%{_includedir}/dpkg/parsedump.h
%{_includedir}/dpkg/path.h
%{_includedir}/dpkg/pkg-array.h
%{_includedir}/dpkg/pkg-format.h
%{_includedir}/dpkg/pkg-list.h
%{_includedir}/dpkg/pkg-queue.h
%{_includedir}/dpkg/pkg-show.h
%{_includedir}/dpkg/pkg-spec.h
%{_includedir}/dpkg/pkg.h
%{_includedir}/dpkg/progname.h
%{_includedir}/dpkg/program.h
%{_includedir}/dpkg/progress.h
%{_includedir}/dpkg/report.h
%{_includedir}/dpkg/string.h
%{_includedir}/dpkg/subproc.h
%{_includedir}/dpkg/tarfn.h
%{_includedir}/dpkg/trigdeferred.h
%{_includedir}/dpkg/triglib.h
%{_includedir}/dpkg/varbuf.h
%{_includedir}/dpkg/version.h
%{perl_vendorlib}/Dpkg.pm
%dir %{perl_vendorlib}/Dpkg
%{perl_vendorlib}/Dpkg/*
%dir %{perl_vendorlib}/Dselect
%{perl_vendorlib}/Dselect/*
%dir %{_libdir}/dpkg
%dir %{_libdir}/dpkg/methods
%{_libdir}/dpkg/methods/*
%{_libdir}/dpkg/parsechangelog/debian
%{_sbindir}/start-stop-daemon
%dir %{_datadir}/dpkg
%{_datadir}/dpkg/*
%{_mandir}/man1/dpkg*.1*
%{_mandir}/man1/dselect.1*
%{_mandir}/man1/update-alternatives.1*
%{_mandir}/man5/deb*.5*
%{_mandir}/man5/dpkg.cfg.5*
%{_mandir}/man5/dselect.cfg.5*
%{_mandir}/man8/start-stop-daemon.8*
%doc AUTHORS COPYING THANKS
%files alternatives
%defattr(-,root,root)
%{_sysconfdir}/alternatives/README
%{_bindir}/update-alternatives
%files devel
%defattr(-,root,root)
%{_libdir}/libdpkg.a
%{_libdir}/libdpkg.la
%{_libdir}/pkgconfig/libdpkg.pc
%{_mandir}/man3/Dpkg.3*
%{_mandir}/man3/Dpkg::*.3*
%doc ChangeLog ChangeLog.old NEWS README README.l10n TODO
%changelog
* Fri Mar 18 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.18.4-1mamba
- package created using the webbuild interface