]> git.pld-linux.org Git - packages/lxrandr.git/blob - lxrandr.spec
891825e87dec79bc1ee462ab8697c917307317ec
[packages/lxrandr.git] / lxrandr.spec
1 #
2 # Conditional build:
3 %bcond_with             gtk3            # build GTK+3 disables GTK+2
4 %bcond_without          gtk2    # build with GTK+2
5
6 %if %{with gtk3}
7 %undefine       with_gtk2
8 %endif
9
10 Summary:        a GTK+2 interface to XRandR for LXDE desktop
11 Name:           lxrandr
12 Version:        0.1.2
13 Release:        2
14 License:        GPL v3
15 Group:          X11/Applications
16 Source0:        http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
17 # Source0-md5:  8a7391581541bba58839ac11dbf5b575
18 URL:            http://wiki.lxde.org/en/LXRandR
19 BuildRequires:  gettext-devel
20 %{?with_gtk2:BuildRequires:     gtk+2-devel >= 2:2.12.0}
21 %{?with_gtk3:BuildRequires:     gtk+3-devel}
22 BuildRequires:  pkgconfig
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 A GTK+ interface to XRandR for LXDE desktop.
27
28 %prep
29 %setup -q
30
31 %build
32 %configure \
33         %{?with_gtk3:--enable-gtk3}
34 touch po/stamp-it
35 %{__make}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 %{__make} install \
40         DESTDIR=$RPM_BUILD_ROOT
41
42 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK,tt_RU}
43
44 %find_lang %{name}
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files -f %{name}.lang
50 %defattr(644,root,root,755)
51 %doc AUTHORS README
52 %attr(755,root,root) %{_bindir}/lxrandr
53 %{_desktopdir}/lxrandr.desktop
54 %{_mandir}/man1/lxrandr*
This page took 0.069055 seconds and 2 git commands to generate.