-
Notifications
You must be signed in to change notification settings - Fork 0
/
printruler.spec
48 lines (38 loc) · 1.32 KB
/
printruler.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
# norootforbuild
%define jobs $(( `/usr/bin/getconf _NPROCESSORS_ONLN` + 1 ))
Name: printruler
Version: r12
Release: 1.0
License: GNU GPL v3
Group: Hardware/Printing
Url: http://code.google.com/p/printruler/
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes libqt4-devel update-desktop-files
Requires: ghostscript-library psutils xpdf-tools
Summary: Application similar to fineprint, but for linux
%description
Printruler lets you merge multiple print jobs, edit them (delete pages, add blank pages) and do other cool stuff.
%prep
%setup -qn %{name}
%build
#qmake QMAKE_CXXFLAGS="$RPM_OPT_FLAGS" QMAKE_STRIP=echo
qmake QMAKE_CXXFLAGS="$RPM_OPT_FLAGS" CONFIG-=debug_and_release CONFIG+=debug
%__make %{?jobs:-j%jobs}
%suse_update_desktop_file -c printruler Printruler "" printruler printruler Utility PrintingUtility
%install
%__make INSTALL_ROOT="%{buildroot}" install
%__install -Dm 0644 logo.png %{buildroot}%{_datadir}/pixmaps/printruler.png
%fdupes %{buildroot}
%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README
%{_bindir}/printruler
%{_datadir}/applications/printruler.desktop
%{_datadir}/pixmaps/printruler.png
%{_datadir}/printruler
%changelog
* Sun Nov 06 2008 [email protected]
- Initial RPM