-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdoublecmd.spec
195 lines (148 loc) · 5.72 KB
/
doublecmd.spec
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
%global debug_package %{nil}
Name: doublecmd
Version: 0.9.6
Release: 2%{?dist}
Summary: Cross platform open source file manager with two panels
License: GPLv2+ and LGPLv2+ and Expat and MPLv1.1 and MPLv2.0 and ASL 2.0 and BSD and Expat and zlib
URL: http://doublecmd.sourceforge.net
Source0: https://sourceforge.net/projects/%{name}/files/Double%20Commander%20Source/%{name}-%{version}-src.tar.gz
Source1: %{name}-qt.desktop
BuildRequires: fpc >= 2.6.0
BuildRequires: fpc-src
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: lazarus >= 1.0.0
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xtrans)
BuildRequires: util-linux
BuildRequires: pkgconfig(pango)
BuildRequires: desktop-file-utils
BuildRequires: qt5pas-devel
BuildRequires: qt5-qtbase-devel
ExclusiveArch: %{ix86} x86_64
%description
Double Commander GTK2 is a cross platform open source file manager with two
panels side by side.
It is inspired by Total Commander and features some new ideas.
%package gtk
Summary: Twin-panel (commander-style) file manager (GTK)
Group: File tools
Requires: %{name}-common%{?_isa} = %{version}-%{release}
%description gtk
Double Commander GTK is a cross platform open source file manager with two
panels side by side.
It is inspired by Total Commander and features some new ideas.
%package qt
Summary: Twin-panel (commander-style) file manager (Qt4)
Group: File tools
Requires: %{name}-common%{?_isa} = %{version}-%{release}
%description qt
Double Commander QT4 is a cross platform open source file manager with two
panels side by side.
It is inspired by Total Commander and features some new ideas.
%package common
Summary: Common files for Double Commander
Requires: hicolor-icon-theme
Requires: polkit%{?_isa}
%description common
Common files for Double Commander GTK2 and Qt.
%prep
%autosetup -p0
chmod +x install/linux/install-help.sh
%build
lcl=qt5 ./build.sh beta
mv ./%name ./%name-qt
mv ./%name.zdli ./%name-qt.zdli
./clean.sh
lcl=gtk2 ./build.sh beta
%install
install/linux/install.sh --install-prefix=%{buildroot}
install -pm 0755 ./%{name}-qt %{buildroot}%{_libdir}/%{name}/%{name}-qt
ln -s ../%{_lib}/%{name}/%{name}-qt %{buildroot}%{_bindir}/%{name}-qt
install -pm 0644 ./%{name}-qt.zdli %{buildroot}%{_libdir}/%{name}/%{name}-qt.zdli
desktop-file-install %{SOURCE1}
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%files gtk
%{_libdir}/%{name}/%{name}
%{_bindir}/%{name}
%{_libdir}/%{name}/%{name}.zdli
%{_datadir}/applications/%{name}.desktop
%files qt
%{_libdir}/%{name}/%{name}-qt
%{_bindir}/%{name}-qt
%{_libdir}/%{name}/%{name}-qt.zdli
%{_datadir}/applications/%{name}-qt.desktop
%files common
%doc doc/changelog.txt doc/README.txt
%license doc/COPYING.LGPL.txt doc/COPYING.modifiedLGPL.txt doc/COPYING.txt
%exclude %{_libdir}/%{name}/%{name}
%exclude %{_libdir}/%{name}/%{name}-qt
%exclude %{_libdir}/%{name}/%{name}.zdli
%exclude %{_libdir}/%{name}/%{name}-qt.zdli
%exclude %{_bindir}/%{name}
%exclude %{_bindir}/%{name}-qt
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_datadir}/pixmaps/%{name}.*
%{_datadir}/icons/hicolor/scalable/apps/doublecmd.svg
%{_datadir}/polkit-1/actions/org.doublecmd.root.policy
%changelog
* Tue Oct 15 2019 Vasiliy N. Glazov <[email protected]> 0.9.6-2
- Corrected license and spec cleanup
* Fri Oct 11 2019 Vasiliy N. Glazov <[email protected]> 0.9.6-1
- Update to 0.9.6
* Tue Aug 13 2019 Vasiliy N. Glazov <[email protected]> 0.9.5-1
- Update to 0.9.5
* Wed Aug 29 2018 Vasiliy N. Glazov <[email protected]> 0.8.4-1
- Update to 0.8.4
* Thu Dec 14 2017 Vasiliy N. Glazov <[email protected]> 0.8.3-1
- Update to 0.8.3
* Thu Dec 14 2017 Vasiliy N. Glazov <[email protected]> 0.8.2-1
- Update to 0.8.2
* Thu Dec 14 2017 Vasiliy N. Glazov <[email protected]> 0.8.0-1
- Update to 0.8.0
* Mon Mar 06 2017 Vasiliy N. Glazov <[email protected]> 0.7.8-1
- Update to 0.7.8
* Mon Dec 26 2016 Vasiliy N. Glazov <[email protected]> 0.7.7-1
- Update to 0.7.7
* Fri Sep 16 2016 Vasiliy N. Glazov <[email protected]> 0.7.5-1
- Update to 0.7.5
* Fri Jul 15 2016 Vasiliy N. Glazov <[email protected]> 0.7.3-1
- Update to 0.7.3
* Fri Jun 03 2016 Vasiliy N. Glazov <[email protected]> 0.7.2-1
- Update to 0.7.2
* Thu Apr 21 2016 Vasiliy N. Glazov <[email protected]> 0.7.1-1
- Update to 0.7.1
* Mon Mar 14 2016 Vasiliy N. Glazov <[email protected]> 0.7.0-1
- Update to 0.7.0
* Thu Nov 19 2015 Vasiliy N. Glazov <[email protected]> 0.6.6-1
- Update to 0.6.6
- One spec for GTK and Qt version
* Fri Oct 09 2015 Vasiliy N. Glazov <[email protected]> 0.6.5-1
- Update to 0.6.5
* Tue Feb 10 2015 Vasiliy N. Glazov <[email protected]> 0.6.0-1
- Update to 0.6.0
* Wed Oct 12 2011 Vasiliy N. Glazov <[email protected]> 0.5.0-svn3993.1.R
- Update to new revision
* Tue Aug 30 2011 Vasiliy N. Glazov <[email protected]> 0.5.0-svn3926.1.R
- Update to new revision
* Tue Aug 30 2011 Vasiliy N. Glazov <[email protected]> 0.5.0-svn3860.1.R
- Update to new revision
* Mon Aug 08 2011 Vasiliy N. Glazov <[email protected]> 0.5.5-svn3789.2.R
- Added documentation package
* Mon Aug 08 2011 Vasiliy N. Glazov <[email protected]> 0.5.5-svn3789.1.R
- Removed .svn files
- Update svn to 3789
* Thu Jul 28 2011 Vasiliy N. Glazov <[email protected]> 0.5.5-svn3765.2.R
- Split packages
- Clean spec
* Thu Jul 28 2011 Vasiliy N. Glazov <[email protected]> 0.5.5-svn3765.1.R
- Initial build for Fedora
* Fri Jun 11 2010 - Alexander Koblov <[email protected]>
- Initial package, version 0.4.6