]> git.pld-linux.org Git - SPECS.git/blob - squash.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / squash.spec
1 Summary:        Squash - a simple application with a simple purpose - a batch image resizer
2 Summary(pl.UTF-8):      Squash - prosta aplikacja o prostym zastosowaniu - wsadowe skalowanie obrazów
3 Name:           squash
4 Version:        0.3
5 Release:        2
6 License:        GPL v2
7 Group:          X11/Applications/Graphics
8 Source0:        http://squash.googlecode.com/files/%{name}-%{version}.tar.bz2
9 # Source0-md5:  a5984bfbf4e61d222582a17a1dd93ccc
10 Source1:        %{name}.desktop
11 URL:            http://code.google.com/p/squash/
12 BuildRequires:  QtCore-devel >= 4.3.0
13 BuildRequires:  QtGui-devel >= 4.3.0
14 BuildRequires:  qt4-build >= 4.3.3-3
15 BuildRequires:  qt4-qmake >= 4.3.3-3
16 Obsoletes:      squeeze < 0.3
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Squash allows resizing of images in a batch mode. It is friendly and
21 usable and does one thing well - resizing images. It is a
22 multi-threaded application and is designed to run on Linux, Mac and
23 Windows.
24
25 %description -l pl.UTF-8
26 Squash umożliwia zmianę rozmiaru obrazów w trybie wsadowym. Jest
27 przyjazny w użyciu i wykonuje swoje jedyne zadanie bardzo dobrze. Jest
28 aplikacją wielowątkową, zaprojektowaną do uruchamiania pod Linuksem,
29 MacOS-em i Windows.
30
31 %prep
32 %setup -q
33
34 sed -i -e 's,-O3,%{rpmcxxflags} %{rpmcppflags},;s,-gstabs+,,' Makefile.qmake
35
36 %build
37 qmake-qt4 Makefile.qmake \
38         "CONFIG %{!?debug:+}%{?debug:-}= release" \
39         "CONFIG %{!?debug:-}%{?debug:+}= debug"
40 %{__make} \
41         CXX="%{__cxx}"
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_bindir}}
46 install -p squash $RPM_BUILD_ROOT%{_bindir}
47 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
48 cp -a qrc/squash.png $RPM_BUILD_ROOT%{_pixmapsdir}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc AUTHORS
56 %attr(755,root,root) %{_bindir}/squash
57 %{_desktopdir}/squash.desktop
58 %{_pixmapsdir}/squash.png
This page took 0.043236 seconds and 3 git commands to generate.