Package libtrash: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | Name: libtrash Version: 3.3 Release: alt2 Summary: %name - a trash can for GNU/Linux License: GNU GPL Group: System/Libraries Url: http://pages.stern.nyu.edu/~marriaga/software/libtrash/ Source: http://pages.stern.nyu.edu/~marriaga/software/libtrash/%name-%version.tgz Source1: %name.README.ALT Source2: %name-profile.tar.bz2 BuildRequires: /proc BuildRequires: python3-devel python-tools-2to3 %description This is the homepage of libtrash, the shared library which, when preloaded, implements a trash can under GNU/Linux. Through the interception of function calls which might lead to accidental data loss libtrash effectively ensures that your data remains protected from your own mistakes. %package devel Summary: Development files of %name Group: Development/C Requires: %name = %EVR %description devel This is the homepage of libtrash, the shared library which, when preloaded, implements a trash can under GNU/Linux. Through the interception of function calls which might lead to accidental data loss libtrash effectively ensures that your data remains protected from your own mistakes. This package contains development files of %name. %prep %setup find -type f -name '*.py' -exec 2to3 -w -n '{}' + sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \ $(find ./ -name '*.py') sed -i 's|python|&3|' src/Makefile %build %make_build cp %SOURCE1 README.ALT tar -jxf %SOURCE2 subst "s@^INSTLIBDIR=\${DESTDIR}/usr/lib@INSTLIBDIR=\${DESTDIR}%_libdir@g" src/Makefile %install mkdir -p %buildroot{%_libdir,%_sysconfdir,%_includedir} %makeinstall_std install -p -m644 src/*.h %buildroot%_includedir/ %files %doc README.ALT CHANGE.LOG README TODO config.txt libtrash.conf libtrash.sh libtrash.csh cleanTrash %config(noreplace) %_sysconfdir/%name.conf %_libdir/%name.* %exclude %_libdir/%name.so %files devel %_includedir/* %_libdir/%name.so %changelog * Tue Jan 28 2020 Andrey Bychkov <mrdrew@altlinux.org> 3.3-alt2 - Porting on Python3. * Fri Sep 12 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.3-alt1 - Version 3.3 * Mon Apr 15 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 3.1-alt1.1.qa1 - NMU: rebuilt for debuginfo. * Mon Nov 02 2009 Igor Vlasenko <viy@altlinux.ru> 3.1-alt1.1 - NMU (by repocop): the following fixes applied: * post_ldconfig for libtrash * postun_ldconfig for libtrash * Sun Jan 06 2008 Eugene Ostapets <eostapets@altlinux.ru> 3.1-alt1 - new version * Sun Jun 17 2007 Eugene Ostapets <eostapets@altlinux.ru> 2.8-alt1 - new version * Fri Mar 16 2007 Eugene Ostapets <eostapets@altlinux.ru> 2.6-alt1 - new version * Mon Nov 13 2006 Eugene Ostapets <eostapets@altlinux.ru> 2.5-alt2 - fix x86_64 build * Sun Nov 12 2006 Eugene Ostapets <eostapets@altlinux.ru> 2.5-alt1 - new version * Mon Dec 12 2005 Eugene Ostapets <eostapets@altlinux.ru> 2.4-alt1 - first build |