]> git.pld-linux.org Git - packages/ddd.git/commitdiff
- updated for 3.2.98:
authorwrobell <wrobell@pld-linux.org>
Tue, 23 Jan 2001 02:12:41 +0000 (02:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
    - info documentation
    - fixed file list
    - new DESTDIR patch
    - python modules compiled to bytecode

Changed files:
    ddd.spec -> 1.35

ddd.spec

index 86574f4cecef04ac762c86b01ebaa85c47466b73..2b470bee5288cf3be60f8f2e093e15d04761bf78 100644 (file)
--- a/ddd.spec
+++ b/ddd.spec
@@ -1,11 +1,13 @@
 
 %define python_sitepkgsdir %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`)
+%define python_compile_opt python -O -c "import compileall; compileall.compile_dir('pydb')"
+%define python_compile python -c "import compileall; compileall.compile_dir('pydb')"
 
 Summary:       X interface to the GDB, DBX and XDB debuggers
 Summary(pl):   Interfejs X do debugerów GDB, DBX i XDB
 Name:          ddd
-Version:       3.2.1
-Release:       4
+Version:       3.2.98
+Release:       1
 License:       GPL
 Group:         Development/Debuggers
 Group(pl):     Programowanie/Odpluskwiacze
@@ -20,6 +22,7 @@ BuildRequires:        motif-devel
 BuildRequires: ncurses-devel >= 5.0
 BuildRequires: libstdc++-devel
 BuildRequires: python
+BuildRequires: texinfo
 Requires:      gdb
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -78,38 +81,49 @@ Data Display Debugger - debugger pythona.
 %patch0 -p1
 
 %build
+automake -a -c
 %configure \
        --with-motif
 %{__make} CXXOPT="-DNDEBUG $RPM_OPT_FLAGS"
+%python_compile
+%python_compile_opt 
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{python_sitepkgsdir} \
        $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults \
-       $RPM_BUILD_ROOT%{_applnkdir}/Development 
+       $RPM_BUILD_ROOT%{_applnkdir}/Development
 
 %{__make} DESTDIR=$RPM_BUILD_ROOT install 
 
 install pydb/pydb.py $RPM_BUILD_ROOT%{_bindir}/pydb
-install pydb/{pydbcmd,pydbsupt}.py $RPM_BUILD_ROOT%{python_sitepkgsdir}
+install pydb/{pydbcmd,pydbsupt}.py[co] $RPM_BUILD_ROOT%{python_sitepkgsdir}
 
 install ddd/Ddd $RPM_BUILD_ROOT%{_libdir}/X11/app-defaults
 
 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Development
 
-gzip -9nf ANNOUNCE BUGS ChangeLog NEWS* OPENBUGS PROBLEMS README TIPS
+gzip -9nf ANNOUNCE BUGS NEWS* OPENBUGS PROBLEMS README TIPS
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
 %files
 %defattr(644,root,root,755)
-%doc {ANNOUNCE,BUGS,ChangeLog,NEWS*,OPENBUGS,PROBLEMS,README,TIPS,TODO}.gz
+%doc {ANNOUNCE,BUGS,NEWS*,OPENBUGS,PROBLEMS,README,TIPS}.gz
 %doc doc/sample.dddinit
 %{_applnkdir}/Development/ddd.desktop
 %attr(755,root,root) %{_bindir}/ddd
 %{_libdir}/X11/app-defaults/Ddd
 %{_mandir}/man1/*
+%{_datadir}/ddd*
+%{_infodir}/ddd*
 
 %files python
 %defattr(644,root,root,755)
This page took 0.070452 seconds and 4 git commands to generate.