]> git.pld-linux.org Git - SPECS.git/blob - snotes.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / snotes.spec
1 # TODO: optflags
2 %define         ver     1.1.4-2
3 %define         _ver    %(echo %ver | tr - _)
4 Summary:        Sticky little notes on desktop
5 Summary(pl.UTF-8):      Notatki przyklejane na pulpicie
6 Name:           snotes
7 Version:        %{_ver}
8 Release:        0.1
9 License:        GPL
10 Group:          X11/Applications
11 Source0:        http://dl.sourceforge.net/s-notes/%{name}-%{ver}.tar.gz
12 # Source0-md5:  b49a9639cf479b4a22947676344f58e9
13 Source1:        %{name}.desktop
14 Source2:        %{name}.png
15 BuildRequires:  qmake
16 BuildRequires:  qt-devel
17 BuildRequires:  sed >= 4.0
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Sticky little notes on desktop.
22
23 %description -l pl.UTF-8
24 Notatki przyklejane na pulpicie.
25
26 %prep
27 %setup -q -n %{name}
28
29 %build
30 rm -f snotes *.o
31 qmake -project
32 qmake -nocache
33 %{__sed} -i -e s/-lqt/-lqt-mt/ Makefile
34 %{__make} \
35         QTDIR=%{_prefix}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39
40 install -D snotes $RPM_BUILD_ROOT%{_bindir}/snotes
41 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
42 install -D %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc ChangeLog README
50 %attr(755,root,root) %{_bindir}/*
51 %{_desktopdir}/*.desktop
52 %{_pixmapsdir}/*
This page took 0.08653 seconds and 3 git commands to generate.