]> git.pld-linux.org Git - packages/obconf.git/blob - obconf.spec
- fix building with openbox 3.5
[packages/obconf.git] / obconf.spec
1 # TODO:
2 # - update to 2.0.3 (temporary broken link)
3 # - packaging compiled .mo is not upgradeable, drop it or include .po
4 Summary:        Tool for configuring the Openbox window manager
5 Summary(pl.UTF-8):      Narzędzie do konfiguracji zarządcy okien Openbox
6 Name:           obconf
7 Version:        2.0.3
8 Release:        6
9 License:        GPL v2+
10 Group:          X11/Applications
11 Source0:        http://icculus.org/openbox/obconf/%{name}-%{version}.tar.gz
12 # Source0-md5:  b22e273721851dedad72acbc77eefb68
13 Source1:        %{name}.mo
14 Patch0:         %{name}-desktop.patch
15 Patch1:         openbox35.patch
16 URL:            http://openbox.org/obconf/
17 BuildRequires:  autoconf >= 2.54
18 BuildRequires:  automake
19 BuildRequires:  gettext-devel >= 0.15
20 BuildRequires:  gtk+2-devel >= 2:2.12.0
21 BuildRequires:  libglade2-devel >= 1:2.6.2
22 BuildRequires:  libtool
23 BuildRequires:  openbox-devel >= 1:3.5.0
24 BuildRequires:  pkgconfig
25 BuildRequires:  rpmbuild(macros) >= 1.311
26 BuildRequires:  startup-notification-devel
27 Requires(post,postun):  shared-mime-info
28 Requires:       desktop-file-utils
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 ObConf allows you to configure Openbox in real-time. You can change
33 options such as the theme, desktop names, and focus settings.
34
35 %description -l pl.UTF-8
36 ObConf pozwala na konfigurację Openboksa w czasie rzeczywistym. Można
37 nim zmieniać opcje takie jak motyw, nazwy pulpitów i ustawienia
38 zachowania okien.
39
40 %prep
41 %setup -q
42 %patch0 -p1
43 %patch1 -p1
44
45 %build
46 %{__libtoolize}
47 %{__aclocal} -I m4
48 %{__autoconf}
49 %{__automake}
50 %configure
51 %{__make}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_datadir}/locale/pl/LC_MESSAGES
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 # install pl locale
61 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/locale/pl/LC_MESSAGES
62
63 # no -> nb
64 mv $RPM_BUILD_ROOT%{_datadir}/locale/{no,nb}
65
66 %find_lang %{name}
67
68 # kde3 file association, shared-mime-info should be sufficant nowadays
69 %{__rm} $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/x-openbox-theme.desktop
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post
75 %update_desktop_database
76 %update_mime_database
77
78 %postun
79 %update_mime_database
80
81 %files -f %{name}.lang
82 %defattr(644,root,root,755)
83 %doc AUTHORS README
84 %attr(755,root,root) %{_bindir}/obconf
85 %{_datadir}/%{name}
86 %{_desktopdir}/obconf.desktop
87 %{_pixmapsdir}/obconf.png
88 %{_datadir}/mime/packages/obconf.xml
This page took 0.053252 seconds and 3 git commands to generate.