diff --git a/.gitignore b/.gitignore index e69de29..03e3428 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/debconf_1.5.42.tar.gz diff --git a/debconf-1.5.32-no-utf8-to-pod2man.patch b/debconf-1.5.32-no-utf8-to-pod2man.patch new file mode 100644 index 0000000..3f328b3 --- /dev/null +++ b/debconf-1.5.32-no-utf8-to-pod2man.patch @@ -0,0 +1,12 @@ +diff -ur debconf.orig/doc/Makefile debconf.0-no-utf8-to-pod2man/doc/Makefile +--- debconf.orig/doc/Makefile 2009-10-01 18:35:16.000000000 +0200 ++++ debconf.0-no-utf8-to-pod2man/doc/Makefile 2010-05-11 19:17:18.111544663 +0200 +@@ -1,7 +1,7 @@ + all: manpages + ./graph.pl `find .. -name \*.pm` > hierarchy.txt + +-pod2man=pod2man -c Debconf -r '' --utf8 ++pod2man=pod2man -c Debconf -r '' + manpages: + cd man && po4a po4a/po4a.cfg + for pod in man/*.pod; do \ diff --git a/debconf-1.5.42-python_version_support.patch b/debconf-1.5.42-python_version_support.patch new file mode 100644 index 0000000..b09d781 --- /dev/null +++ b/debconf-1.5.42-python_version_support.patch @@ -0,0 +1,26 @@ +diff -ur debconf-1.5.42.orig/Makefile debconf-1.5.42/Makefile +--- debconf-1.5.42.orig/Makefile 2012-02-10 23:21:12.000000000 +0000 ++++ debconf-1.5.42/Makefile 2012-03-26 14:00:00.907278606 +0100 +@@ -35,8 +35,7 @@ + $(MAKE) -C po install + + # This would probably be easier if we used setup.py ... +-PYTHON2_SUPPORTED := $(shell pyversions -s) +-PYTHON_SITEDIR = $(prefix)/usr/lib/$(1)/$(if $(filter 2.0 2.1 2.2 2.3 2.4 2.5,$(patsubst python%,%,$(1))),site-packages,dist-packages) ++PYTHON_SITEDIR = $(shell python -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib())") + + # Install all else. + install-rest: +@@ -56,10 +55,8 @@ + # Install modules. + find Debconf -type f -name '*.pm' |grep -v CVS | \ + xargs -i install -m 0644 {} $(prefix)/usr/share/perl5/{} +- set -e; for dir in $(foreach python,$(PYTHON2_SUPPORTED),$(call PYTHON_SITEDIR,$(python))); do \ +- install -d $$dir; \ +- install -m 0644 debconf.py $$dir/; \ +- done ++ install -d $(prefix)$(PYTHON_SITEDIR) ++ install -m 0644 debconf.py $(prefix)$(PYTHON_SITEDIR) + install -d $(prefix)/usr/lib/python3/dist-packages + install -m 0644 debconf3.py $(prefix)/usr/lib/python3/dist-packages/debconf.py + # Special case for back-compatability. diff --git a/debconf.spec b/debconf.spec new file mode 100644 index 0000000..c50692c --- /dev/null +++ b/debconf.spec @@ -0,0 +1,243 @@ +Name: debconf +Version: 1.5.42 +Release: 3%{?dist} +Summary: Debian configuration management system + +Group: Development/Tools +License: BSD +URL: http://packages.debian.org/sid/debconf +Source0: http://ftp.de.debian.org/debian/pool/main/d/%{name}/%{name}_%{version}.tar.gz +Patch0: debconf-1.5.32-no-utf8-to-pod2man.patch +Patch1: debconf-1.5.42-python_version_support.patch +BuildArch: noarch + +BuildRequires: python +BuildRequires: po4a >= 0.23 +BuildRequires: gettext >= 0.13 +BuildRequires: perl-Qt-devel +# 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: perl-libintl +#BuildRequires: po-debconf + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%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 +Group: Development/Tools +License: BSD +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 +Group: Development/Tools +License: BSD +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 +Group: Development/Tools +License: BSD +Requires: %{name} = %{version}-%{release} + +%description utils +This package contains some small utilities for debconf developers. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + + +%build +make %{?_smp_mflags} + +%install +make install prefix=%{buildroot} +make install-i18n prefix=%{buildroot} +make install-utils prefix=%{buildroot} + +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 + test -f doc/man/gen/$man.$lang.$level && \ + install -m 644 doc/man/gen/$man.$lang.$level %{buildroot}/%{_mandir}/$lang/man$level/$man.$level + 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 + test -f doc/man/$man.$lang.$level* && \ + install -m 644 doc/man/$man.$lang.$level* %{buildroot}/%{_mandir}/$lang/man$level/$man.$level + 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 + test -f doc/man/gen/debconf-$man.$lang.1 && \ + install -m 644 doc/man/gen/debconf-$man.$lang.1 %{buildroot}/%{_mandir}/$lang/man1/debconf-$man.1 + 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 --with-man --all-name + +%files -f debconf.lang +%doc doc/README doc/EXAMPLES doc/CREDITS doc/README.translators doc/README.LDAP doc/TODO +%doc debian/changelog debian/copyright debian/README.Debian +%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 +%{python_sitelib}/debconf.* +%exclude %{_libdir}/python3 +%{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 + +%files doc -f debconf.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/Debconf::Client::ConfModule.3* +%{_mandir}/*/man3/confmodule.3* +%{_mandir}/*/man5/debconf.conf.5* +%{_mandir}/*/man7/debconf-devel.7* +%{_mandir}/*/man7/debconf.7* +%{_mandir}/man3/confmodule.3* +%{_mandir}/man5/debconf.conf.5* +%{_mandir}/man7/debconf-devel.7* +%{_mandir}/man7/debconf.7* + +%files i18n -f debconf.lang +%doc debian/changelog debian/copyright debian/README.Debian +%{_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* + +%files utils -f debconf.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* +%{_mandir}/*/man1/debconf-get-selections.1* +%{_mandir}/*/man1/debconf-getlang.1* +%{_mandir}/*/man1/debconf-loadtemplate.1* +%{_mandir}/*/man1/debconf-mergetemplate.1* + +%changelog +* 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..0b3f629 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f2cb612f90b22f9e491152b30586b963 debconf_1.5.42.tar.gz