From 6e4c04cb9d15c1660d7c1ef8342b1ae9942c1c5a Mon Sep 17 00:00:00 2001 From: Sérgio M. Basto Date: Oct 09 2019 06:56:10 +0000 Subject: Merge branch 'master' into epel8 --- diff --git a/.gitignore b/.gitignore index e69de29..903e3bd 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,8 @@ +/debconf_1.5.52.tar.gz +/debconf_1.5.53.tar.gz +/debconf_1.5.56.tar.gz +/debconf_1.5.59.tar.xz +/debconf_1.5.60.tar.xz +/debconf_1.5.63.tar.xz +/debconf_1.5.69.tar.xz +/debconf_1.5.73.tar.xz diff --git a/debconf.spec b/debconf.spec new file mode 100644 index 0000000..0adb87e --- /dev/null +++ b/debconf.spec @@ -0,0 +1,394 @@ +Name: debconf +Version: 1.5.73 +Release: 1%{?dist} +Summary: Debian configuration management system + +License: BSD +URL: https://tracker.debian.org/pkg/debconf +Source0: http://ftp.de.debian.org/debian/pool/main/d/%{name}/%{name}_%{version}.tar.xz +BuildArch: noarch + +#Build-Depends: debhelper (>= 9~), dh-exec, po-debconf, po4a (>= 0.23) +#Build-Depends-Indep: perl (>= 5.10.0-16), python3 (>= 3.1.2-8), gettext (>= 0.13), libintl-perl, libqtgui4-perl +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: po4a >= 0.23 +BuildRequires: gettext >= 0.13 +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl-libintl-perl +BuildRequires: perl-Gtk3 +# Not actual requirements, although listed at +# http://ftp.de.debian.org/debian/pool/main/d/debconf/debconf_1.5.32.dsc +BuildRequires: debhelper >= 7.0.50 +BuildRequires: po-debconf + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# to test frontends : dpkg-reconfigure --frontend=kde tzdata +Requires: perl-Text-Iconv +Obsoletes: debconf-kde < 1.5.69-5 +Obsoletes: debconf-gnome < 1.5.69-5 + +%description +Debconf is a configuration management system for Debian +packages. Packages use Debconf to ask questions when +they are installed. + +%package doc +Summary: Debconf documentation +Requires: %{name} = %{version}-%{release} + +%description doc +This package contains lots of additional documentation for Debconf, +including the debconf user's guide, documentation about using +different backend databases via the /etc/debconf.conf file, and a +developer's guide to debconf. + +%package i18n +Summary: Full internationalization support for debconf +Requires: %{name} = %{version}-%{release} + +%description i18n +This package provides full internationalization for debconf, +including translations into all available languages, support +for using translated debconf templates, and support for +proper display of multibyte character sets. + +%package utils +Summary: This package contains some small utilities for debconf developers +Requires: %{name} = %{version}-%{release} + +%description utils +This package contains some small utilities for debconf developers. + +%package -n python%{python3_pkgversion}-%{name} +Summary: python3 for debconf. +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} + +%description -n python%{python3_pkgversion}-%{name} +This package contains the python3 for debconf. + + +%prep +%setup -q -n work + + +%build +%make_build + + +%install +make install-utils prefix=%{buildroot} +make install-i18n prefix=%{buildroot} +#make install-python3 prefix=%{buildroot} +install -d %{buildroot}%{python3_sitelib} +install -m 0644 debconf.py %{buildroot}%{python3_sitelib} + +make install-rest prefix=%{buildroot} + +# Add /var/cache/debconf and initial contents +mkdir -p %{buildroot}/%{_var}/cache/%{name} +touch %{buildroot}/%{_var}/cache/%{name}/config.dat +touch %{buildroot}/%{_var}/cache/%{name}/passwords.dat +touch %{buildroot}/%{_var}/cache/%{name}/templates.dat + +mkdir -p \ + %{buildroot}/%{perl_vendorlib} \ + %{buildroot}/%{_mandir}/man{1,3,5,7,8} \ + %{buildroot}/%{_mandir}/de/man{1,3,5,7,8} \ + %{buildroot}/%{_mandir}/fr/man{1,3,5,7,8} \ + %{buildroot}/%{_mandir}/ru/man{1,3,5,7,8} \ + %{buildroot}/%{_mandir}/pt_BR/man{1,3,8} + +#if "%{_datadir}/perl5" != "%{perl_vendorlib}" +#mv %{buildroot}/%{_datadir}/perl5/Debconf %{buildroot}/%{perl_vendorlib}/. +#mv %{buildroot}/%{_datadir}/perl5/Debian %{buildroot}/%{perl_vendorlib}/. +#endif + +chmod 755 %{buildroot}/%{_datadir}/%{name}/confmodule* + +# Base and i18n man pages +for man in \ + "debconf-apt-progress" \ + "debconf-communicate" \ + "debconf-copydb" \ + "debconf-escape" \ + "debconf-set-selections" \ + "debconf-show" \ + "debconf" \ + "dpkg-preconfigure" \ + "dpkg-reconfigure"; do + + for level in 1 8; do + for lang in de fr pt_BR ru; do + if test -f doc/man/gen/$man.$lang.$level; then + short_lang=`echo "$lang" | sed 's/_.*//'` + install -m 644 doc/man/gen/$man.$lang.$level %{buildroot}/%{_mandir}/$lang/man$level/$man.$level + echo "%lang($short_lang) %{_mandir}/$lang/man$level/$man.$level*" >> "man-i18n.lang" + fi + done + test -f doc/man/gen/$man.$level && \ + install -m 644 doc/man/gen/$man.$level %{buildroot}/%{_mandir}/man$level/$man.$level + done +done + +# Doc foo +for man in \ + "Debconf::Client::ConfModule" \ + "confmodule" \ + "debconf.conf" \ + "debconf-devel" \ + "debconf"; do + + for level in 3 5 7; do + for lang in de fr pt_BR ru; do + if test -f doc/man/$man.$lang.$level*; then + short_lang=`echo "$lang" | sed 's/_.*//'` + install -m 644 doc/man/$man.$lang.$level* %{buildroot}/%{_mandir}/$lang/man$level/$man.$level + echo "%lang($short_lang) %{_mandir}/$lang/man$level/$man.$level*" >> "man-doc.lang" + fi + done + test -f doc/man/$man.$level && \ + install -m 644 doc/man/$man.$level %{buildroot}/%{_mandir}/man$level/$man.$level + done +done + +# Utils man pages +for man in get-selections \ + getlang \ + loadtemplate \ + mergetemplate; do + for lang in de fr pt_BR ru; do + short_lang=`echo "$lang" | sed 's/_.*//'` + if test -f doc/man/gen/debconf-$man.$lang.1; then + install -m 644 doc/man/gen/debconf-$man.$lang.1 %{buildroot}/%{_mandir}/$lang/man1/debconf-$man.1 + echo "%lang($short_lang) %{_mandir}/$lang/man1/debconf-$man.1*" >> "man-utils.lang" + fi + done + test -f doc/man/gen/debconf-$man.1 && \ + install -m 644 doc/man/gen/debconf-$man.1 %{buildroot}/%{_mandir}/man1/debconf-$man.1 +done + +%find_lang debconf + +%files +%doc doc/README doc/EXAMPLES doc/CREDITS doc/README.translators doc/README.LDAP doc/TODO +%doc debian/changelog debian/README.Debian +%license debian/copyright +%config(noreplace) %{_sysconfdir}/debconf.conf +%{_bindir}/debconf +%{_bindir}/debconf-apt-progress +%{_bindir}/debconf-communicate +%{_bindir}/debconf-copydb +%{_bindir}/debconf-escape +%{_bindir}/debconf-set-selections +%{_bindir}/debconf-show +%{_sbindir}/dpkg-preconfigure +%{_sbindir}/dpkg-reconfigure +%{perl_vendorlib}/Debconf +%{perl_vendorlib}/Debian +%{_datadir}/%{name} +%{_mandir}/man1/debconf-apt-progress.1* +%{_mandir}/man1/debconf-communicate.1* +%{_mandir}/man1/debconf-copydb.1* +%{_mandir}/man1/debconf-escape.1* +%{_mandir}/man1/debconf-set-selections.1* +%{_mandir}/man1/debconf-show.1* +%{_mandir}/man1/debconf.1* +%{_mandir}/man8/dpkg-preconfigure.8* +%{_mandir}/man8/dpkg-reconfigure.8* +%{_datadir}/pixmaps/debian-logo.png +%{_var}/cache/%{name} +%{perl_vendorlib}/Debconf/Element/Gnome* +%{perl_vendorlib}/Debconf/FrontEnd/Gnome* +%{perl_vendorlib}/Debconf/FrontEnd/Kde* + + +%files doc -f man-doc.lang +%doc samples/ +%doc doc/CREDITS doc/README doc/README.LDAP doc/TODO +%doc debian/changelog +%doc debian/copyright +%doc doc/debconf.schema +%doc doc/hierarchy.txt +%doc doc/namespace.txt +%doc doc/passthrough.txt +%{_mandir}/man3/confmodule.3* +%{_mandir}/man5/debconf.conf.5* +%{_mandir}/man7/debconf-devel.7* +%{_mandir}/man7/debconf.7* + + +%files i18n -f man-i18n.lang -f debconf.lang +%doc debian/changelog debian/copyright debian/README.Debian + + +%files utils -f man-utils.lang +%doc debian/changelog debian/copyright debian/README.Debian +%{_bindir}/debconf-get-selections +%{_bindir}/debconf-getlang +%{_bindir}/debconf-loadtemplate +%{_bindir}/debconf-mergetemplate +%{_mandir}/man1/debconf-get-selections.1* +%{_mandir}/man1/debconf-getlang.1* +%{_mandir}/man1/debconf-loadtemplate.1* +%{_mandir}/man1/debconf-mergetemplate.1* + +%files -n python%{python3_pkgversion}-%{name} +%{python3_sitelib}/debconf.py +%{python3_sitelib}/__pycache__/debconf.* + +%changelog +* Tue Oct 08 2019 Sérgio Basto - 1.5.73-1 +- Update to 1.5.73 + +* Thu Oct 03 2019 Miro Hrončok - 1.5.69-8 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 1.5.69-7 +- Rebuilt for Python 3.8 + +* Wed Jul 24 2019 Fedora Release Engineering - 1.5.69-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 01 2019 Jitka Plesnikova - 1.5.69-5 +- Perl 5.30 rebuild + +* Tue May 28 2019 Sérgio Basto +- Obsoletes debconf-kde and debconf-gnome sub-packages + +* Mon May 27 2019 Petr Pisar - 1.5.69-4 +- Remove an unused build dependency on perl-Qt-devel (bug #1676813) +- Require Perl ABI by all packages that install module into standard paths + +* Thu Jan 31 2019 Fedora Release Engineering - 1.5.69-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 15 2019 Miro Hrončok - 1.5.69-2 +- Subpackage python2-debconf has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Mon Sep 17 2018 Sérgio Basto - 1.5.69-1 +- Update to 1.5.69 (#1504325) +- Provide Python2 and Python3 sub packages (#1531598) +- Fix FTBFS (#1603758) + +* Thu Jul 12 2018 Fedora Release Engineering - 1.5.63-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 29 2018 Jitka Plesnikova - 1.5.63-3 +- Perl 5.28 rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.5.63-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Aug 18 2017 Sérgio Basto - 1.5.63-1 +- Update to 1.5.63 (#1453021) + +* Wed Aug 16 2017 Iryna Shcherbina - 1.5.60-5 +- Add a build-time dependency on python2-devel + +* Wed Jul 26 2017 Fedora Release Engineering - 1.5.60-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 1.5.60-3 +- Perl 5.26 rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.5.60-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sat Feb 04 2017 Sérgio Basto - 1.5.60-1 +- Update debconf to 1.5.60 + +* Thu Jan 26 2017 Sérgio Basto - 1.5.59-1 +- Update debconf to 1.5.59 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.5.56-6 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Tue May 17 2016 Jitka Plesnikova - 1.5.56-5 +- Perl 5.24 rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 1.5.56-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.5.56-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 06 2015 Jitka Plesnikova - 1.5.56-2 +- Perl 5.22 rebuild + +* Fri May 01 2015 Sérgio Basto - 1.5.56-1 +- Update to 1.5.56 , version of Debian 8 stable . + +* Thu Aug 28 2014 Jitka Plesnikova - 1.5.53-2 +- Perl 5.20 rebuild + +* Mon Jul 28 2014 Sérgio Basto - 1.5.53-1 +- Update to 1.5.53 (same version currently in Debian/testing) + +* Sat Jun 07 2014 Fedora Release Engineering - 1.5.52-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Nov 18 2013 Oron Peled - 1.5.52-1 +- Update to 1.5.52 (same version currently in Debian/testing) + +* Thu Oct 10 2013 Sandro Mani - 1.5.51-1 +- Update to 1.5.51 +- Drop upstreamed patches +- Split off gnome and kde frontends to subpackages + +* Sat Aug 03 2013 Fedora Release Engineering - 1.5.49-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 1.5.49-4 +- Perl 5.18 rebuild + +* Sun Jun 09 2013 Oron Peled - 1.5.49-3 +- Added missing /var/cache/debconf and initial contents + +* Mon Jun 03 2013 Sérgio Basto - 1.5.49-2 +- Source rpms will have last 2 commits, which document better our patches. + +* Wed Apr 3 2013 Oron Peled - 1.5.49-1 +- Bump to version used by Debian/wheezy +- Fix 'find ... -perm' in Makefile to modern format. The deprecated + format (+100) caused problems with find version >= 4.5.11 +- Split 'make install' as is done in debian/rules for consistency + +* Wed Feb 13 2013 Fedora Release Engineering - 1.5.42-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jul 18 2012 Fedora Release Engineering - 1.5.42-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sun Jun 10 2012 Petr Pisar - 1.5.42-6 +- Perl 5.16 rebuild + +* Sun May 13 2012 Oron Peled - 1.5.42-5 +- Bump release to match f17, f16 builds + +* Sat May 12 2012 Oron Peled - 1.5.42-4 +- Fix find_lang for man-pages. It is not smart enough to do + it all in one swoop. So we generate the expected results + manually (during installation) +- Fix exclude of python3 (picked wrong directory on x86-64 + +* Tue May 1 2012 Oron Peled - 1.5.42-3 +- Added --with-man and --all-name to find_lang +- Use wild-cards for language directories of man-pages + +* Thu Apr 12 2012 Oron Peled - 1.5.42-2 +- Added find_lang stuff +- Don't specify man-pages compression +- Added BR python +- Added BR perl-Qt (for KDE frontend) + +* Mon Mar 26 2012 Jeroen van Meeuwen - 1.5.42-1 +- New upstream version + +* Tue Sep 7 2010 Jeroen van Meeuwen - 1.5.32-4 +- Fix available python interpreters (4) +- Fix %%install (4) +- Fix build requirements (3) +- Include doc, i18n and utils packages (2) +- First package (1) diff --git a/sources b/sources index e69de29..96ab1c9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (debconf_1.5.73.tar.xz) = fa2e240842f4f020df031ef37803c22a680372b996302372dfd3377bf21723f2e949167f9ea13ebad5c1c516052c26adcd627d152a62110ccddd3a9e2b892bdc