]> git.pld-linux.org Git - packages/convmv.git/blame - convmv.spec
up to 2.0
[packages/convmv.git] / convmv.spec
CommitLineData
239ff11b 1%include /usr/lib/rpm/macros.perl
b0308362 2Summary: Convmv - convert filenames from one encoding to another
3db086b0 3Summary(pl.UTF-8): Convmv - konwersja nazw plików z jednego kodowania do innego
b0308362 4Name: convmv
c0bd2ee4
ER
5Version: 2.0
6Release: 1
b0308362
PS
7License: GPL v2
8Group: Applications/File
c0bd2ee4
ER
9Source0: https://j3e.de/linux/convmv/%{name}-%{version}.tar.gz
10# Source0-md5: 984a13dd5068c0c67356b87e4078d66e
11URL: https://j3e.de/linux/convmv/
b0308362 12BuildRequires: perl-tools-pod
239ff11b
ER
13BuildRequires: rpm-perlprov >= 4.1-13
14BuildArch: noarch
b0308362
PS
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
9f8182bf
PS
18Convmv is meant to help convert a single filename, a directory tree
19and the contained files or a whole filesystem into a different
20encoding. It just converts the filenames, not the content of the
21files. A special feature of convmv is that it also takes care of
22symlinks, also converts the symlink target pointer in case the symlink
23target is being converted, too. All this comes in very handy when one
24wants to switch over from old 8-bit locales to UTF-8 locales. It is
25also possible to convert directories to UTF-8 which are already partly
26UTF-8 encoded. Convmv is able to detect if certain files are UTF-8
27encoded and will skip them by default. To turn this smartness off use
28the "--nosmart" switch.
b0308362 29
ca5ec029
JR
30%description -l pl.UTF-8
31Convmv ma za zadanie pomóc przy konwersji pojedynczych nazw plików,
32drzew katalogów wraz z zawartymi w nich plikami lub całego systemu
33plików na inne kodowanie. Konwertuje tylko nazwy plików, a nie ich
34zawartość. Szczególną cechą convmv jest to, że dba także o dowiązania
f6f0b62f 35symboliczne i konwertuje wskazania docelowe w przypadku, gdy cel
ca5ec029
JR
36dowiązania jest zmieniany. Jest to pomocne przy przechodzeniu ze
37starych 8-bitowych lokalizacji do nowych w UTF-8. Można także
38przekonwertować do UTF-8 katalogi, które były już częściowo kodowane w
39UTF-8. Convmv jest w stanie wykryć, czy dane pliki są zakodowane w
40UTF-8 i domyślnie je pominąć. Aby wyłączyć to zachowanie można użyć
41przełącznika "--nosmart".
f6f0b62f 42
b0308362
PS
43%prep
44%setup -q
45
46%build
47%{__make}
48
49%install
50rm -rf $RPM_BUILD_ROOT
b0308362
PS
51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT \
53 PREFIX=%{_prefix}
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
60%doc CREDITS Changes TODO
ce324f93
ER
61%attr(755,root,root) %{_bindir}/convmv
62%{_mandir}/man1/convmv.1*
This page took 0.083556 seconds and 4 git commands to generate.