Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37715579
en ru br
ALT Linux repositórios
S:3.3-alt2
5.0: 3.1-alt1
4.1: 3.1-alt1
4.0: 2.6-alt1
3.0:
+backports:2.4-alt1.M30

Group :: Sistema/Bibliotecas
RPM: libtrash

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

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 at ^INSTLIBDIR=\${DESTDIR}/usr/lib at INSTLIBDIR=\${DESTDIR}%_libdir at 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

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009