Project import/mucommander - Diff 9e1424d682...947c8066cf

... ... --- a/.abf.yml
... ... +++ b/.abf.yml
... ... @@ -1,2 +1,3 @@
1 1
sources:
2
  "mucommander-0_9_0.tar.gz": baca5c5a5bb38fe6287fe48e474cf16890bb132e
2
  mucommander-0.9.2.tar.gz: cd6240ee76abfb8908158e6ae6680ea3d98cacbf
3
  mucommander.png: 2b26b32c1cd19fd4ba4c319a32dae4b980ee7d2c
... ... --- /dev/null
... ... +++ b/mucommander
... ... @@ -0,0 +1,3 @@
1
#!/bin/bash
2
cd /usr/share/java/mucommander
3
exec /usr/share/java/mucommander/mucommander.sh 
view file @ 947c8066cf
... ... --- a/mucommander.spec
... ... +++ b/mucommander.spec
... ... @@ -1,17 +1,19 @@
1 1
%define oname muCommander
2
Name: mucommander 
3
Version: 0.9.0
4
Release: 5
5
Summary: muCommander is a lightweight, cross-platform file manager
6
License: GPL
7
Group:   File tools
8
URL:		http://www.mucommander.com/
9
Source0:	http://www.mucommander.com/download/mucommander-0_9_0.tar.gz
10
BuildArch:      noarch
11
Requires:       java >= 1.6.0
12 2
13
%description
3
Summary:	muCommander is a lightweight, cross-platform file manager
4
Name:		mucommander 
5
Version:	0.9.2
6
Release:	1
7
License:	GPL
8
Group:		File tools
9
Url:		http://www.mucommander.com/
10
Source0:	https://github.com/mucommander/mucommander/releases/download/%{version}/%{name}-%{version}.tar.gz
11
Source1:	%{name}.png
12
Source2:	%{name}
13
Requires:	java >= 1.8.0
14
BuildArch:	noarch
14 15
16
%description
15 17
muCommander is a lightweight, cross-platform file manager with a dual-pane
16 18
interface. It runs on any operating system with Java support
17 19
(Mac OS X, Windows, Linux, *BSD, Solaris...).
... ... @@ -35,42 +37,44 @@ Here's a non-exhaustive list of what you'll find:
37 37
    Dutch, Slovak, Japanese, Swedish, Danish, Ukrainian and Arabic.
38 38
* Free Software (GPL)
39 39
40
%files
41
%doc license.txt readme.txt
42
%{_bindir}/%{name}
43
%{_datadir}/applications/rosa-%{name}.desktop
44
%{_datadir}/pixmaps/%{name}.png
45
%{_javadir}/*
46
47
#-----------------------------------------------------------------------
48
40 49
%prep 
50
%setup -qn %{oname}-%{version}
41 51
42
%setup -q -n %{oname}-0_9_0
52
%build
43 53
44 54
%install
45
%__install -dm 755 %{buildroot}/usr/lib
46
cp -r $RPM_BUILD_DIR/%{oname}-0_9_0 $RPM_BUILD_ROOT/usr/lib/%{name}
55
install -dm 755 %{buildroot}%{_javadir}
56
install -dm 755 %{buildroot}%{_javadir}/%{name}
57
cp -f *.jar %{buildroot}%{_javadir}/%{name}/
58
cp -f *.sh %{buildroot}%{_javadir}/%{name}/
59
mkdir -p %{buildroot}/%{_datadir}/pixmaps
60
install -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/pixmaps
61
mkdir -p %{buildroot}%{_bindir}
62
install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}
47 63
48 64
# menu-entry
49 65
mkdir -p %{buildroot}%{_datadir}/applications
50
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
66
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop <<EOF
51 67
[Desktop Entry]
52 68
Name=muCommander
53
GenericName=muCommander
54
Comment=File Manager
55
Exec=/usr/bin/mucommander
56
Icon=/usr/lib/mucommander/mucommander.png
69
GenericName=File Manager
70
GenericName[ru]=Файловый менеджер
71
Comment=A lightweight, cross-platform file manager with a dual-pane interface
72
Comment[ru]=Легковесный, кроссплатформенный файловый менеджер с двухпанельным интерфейсом
73
Exec=%{name}
74
Icon=%{name}
57 75
Terminal=false
58 76
Type=Application
59 77
StartupNotify=true
60 78
MimeType=foo/bar;foo2/bar2;
61 79
Categories=Application;Utility;
62 80
EOF
63
64
65
66
67
%post
68
ln -sf /usr/lib/mucommander/mucommander.sh /usr/bin/mucommander
69
70
%postun
71
rm -f /usr/bin/mucommander
72
73
%files
74
%defattr(-,root,root)
75
%doc license.txt readme.txt
76
/usr/lib/*
77
/usr/share/*
78