From a8edf0e5bff5f363d54752ab7a4d4032b5328dc9 Mon Sep 17 00:00:00 2001 From: pertusus Date: Jul 05 2008 22:09:23 +0000 Subject: Initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..bd0d08d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Xdialog-2.3.1.tar.bz2 diff --git a/sources b/sources index e69de29..a9fafda 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0671f8353717513bf1f0ebc80e9710f6 Xdialog-2.3.1.tar.bz2 diff --git a/xdialog-2.3.1-nostrip.patch b/xdialog-2.3.1-nostrip.patch new file mode 100644 index 0000000..b6c2ddd --- /dev/null +++ b/xdialog-2.3.1-nostrip.patch @@ -0,0 +1,28 @@ +diff -up Xdialog-2.3.1/configure.in.nostrip Xdialog-2.3.1/configure.in +--- Xdialog-2.3.1/configure.in.nostrip 2008-04-05 19:25:33.000000000 +0200 ++++ Xdialog-2.3.1/configure.in 2008-04-05 19:26:00.000000000 +0200 +@@ -65,10 +65,6 @@ if test "x$GCC" = "xyes"; then + *[[\ \ ]-Wall[\ \ ]]*) ;; + *) CFLAGS="$CFLAGS -Wall" ;; + esac +- case " $CFLAGS " in +- *[[\ \ ]-s[\ \ ]]*) ;; +- *) CFLAGS="$CFLAGS -s" ;; +- esac + case `gcc --version` in + 2.95*|2.96*|2.97*) + case " $CFLAGS " in +diff -up Xdialog-2.3.1/configure.nostrip Xdialog-2.3.1/configure +--- Xdialog-2.3.1/configure.nostrip 2008-04-05 19:25:42.000000000 +0200 ++++ Xdialog-2.3.1/configure 2008-04-05 19:26:37.000000000 +0200 +@@ -8268,10 +8268,6 @@ if test "x$GCC" = "xyes"; then + *[\ \ ]-Wall[\ \ ]*) ;; + *) CFLAGS="$CFLAGS -Wall" ;; + esac +- case " $CFLAGS " in +- *[\ \ ]-s[\ \ ]*) ;; +- *) CFLAGS="$CFLAGS -s" ;; +- esac + case `gcc --version` in + 2.95*|2.96*|2.97*) + case " $CFLAGS " in diff --git a/xdialog.spec b/xdialog.spec new file mode 100644 index 0000000..1f14be5 --- /dev/null +++ b/xdialog.spec @@ -0,0 +1,94 @@ +%define real_name Xdialog + +Name: xdialog +Summary: X11 drop in replacement for cdialog +Version: 2.3.1 +Release: 3%{?dist} +License: GPL+ +Group: Applications/System +URL: http://xdialog.free.fr + +Source0: http://xdialog.free.fr/%{real_name}-%{version}.tar.bz2 +Patch0: xdialog-2.3.1-nostrip.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gtk+-devel >= 1.2.0 +BuildRequires: gtk2-devel >= 2.2.0 +BuildRequires: gettext + +Provides: %{real_name} = %{version}-%{release} +Obsoletes: %{real_name} < %{version}-%{release} + +# there is no need for .desktop file since there is a mandatory argument + +%description +Xdialog is designed to be a drop in replacement for the cdialog program. +It converts any terminal based program into a program with an X-windows +interface. The dialogs are easier to see and use and Xdialog adds even +more functionalities (help button+box, treeview, editbox, file selector, +range box, and much more). + +%prep +%setup -q -n %{real_name}-%{version} +iconv -f latin1 -t utf8 ChangeLog > ChangeLog.utf8 +touch -c -r ChangeLog ChangeLog.utf8 +mv ChangeLog.utf8 ChangeLog +%patch0 -p1 -b .nostrip +touch -c -r configure.nostrip configure +touch -c -r configure.in.nostrip configure.in + +%build +# build both the gtk1 and gtk2 versions. Upstream advises not to use +# the gtk2 version, however the issues with gtk2 version is with non UTF-8 +# locales which should be rare on fedora, and gtk2 has more features. +%configure +make %{?_smp_mflags} +mv src/Xdialog src/Xdialog-gtk1 +make clean +%configure --with-gtk2 +make %{?_smp_mflags} +sed -i -e 's:%{_datadir}/doc/Xdialog:%{_datadir}/doc/%{name}:g' doc/Xdialog.1 + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} INSTALL='install -p' +install -m0755 src/Xdialog-gtk1 %{buildroot}%{_bindir} + +rm -rf __dist_html +mkdir -p __dist_html/html +cp -p doc/*.html doc/*.png __dist_html/html +# there are references to the samples in the documentation. +ln -s ../samples __dist_html/html/samples + +%find_lang %{real_name} + +%clean +rm -rf %{buildroot} + +%files -f %{real_name}.lang +%defattr(-, root, root, -) +%doc AUTHORS BUGS COPYING ChangeLog README +%doc __dist_html/html/ samples/ +%{_mandir}/man1/Xdialog.1* +%{_bindir}/Xdialog +%{_bindir}/Xdialog-gtk1 +%exclude %{_docdir}/%{real_name}-%{version} + +%changelog +* Sun Jun 29 2008 Patrice Dumas 2.3.1-3 +- add BR gettext + +* Wed Jun 25 2008 Patrice Dumas 2.3.1-2 +- review request cleanups + +* Sat Apr 5 2008 Patrice Dumas 2.3.1-1 +- submit to fedora. + +* Sat Apr 08 2006 Dries Verachtert - 2.1.2-1.2 +- Rebuild for Fedora Core 5. + +* Tue Feb 22 2005 Dag Wieers - 2.1.2-1 +- Updated to release 2.1.2. + +* Tue Apr 29 2003 Dag Wieers - 2.1.1-0 +- Initial package. (using DAR)