]> git.pld-linux.org Git - packages/obconf.git/blob - obconf.spec
42e11ba1cb076a3137e2487847ae14475a7be5af
[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:        5
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 URL:            http://openbox.org/obconf/
16 BuildRequires:  autoconf >= 2.54
17 BuildRequires:  automake
18 BuildRequires:  gettext-devel >= 0.15
19 BuildRequires:  gtk+2-devel >= 2:2.12.0
20 BuildRequires:  libglade2-devel >= 1:2.6.2
21 BuildRequires:  libtool
22 BuildRequires:  openbox-devel >= 1:3.4.5
23 BuildRequires:  pkgconfig
24 BuildRequires:  rpmbuild(macros) >= 1.311
25 BuildRequires:  startup-notification-devel
26 Requires(post,postun):  shared-mime-info
27 Requires:       desktop-file-utils
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 ObConf allows you to configure Openbox in real-time. You can change
32 options such as the theme, desktop names, and focus settings.
33
34 %description -l pl.UTF-8
35 ObConf pozwala na konfigurację Openboksa w czasie rzeczywistym. Można
36 nim zmieniać opcje takie jak motyw, nazwy pulpitów i ustawienia
37 zachowania okien.
38
39 %prep
40 %setup -q
41 %patch0 -p1
42
43 %build
44 %{__libtoolize}
45 %{__aclocal} -I m4
46 %{__autoconf}
47 %{__automake}
48 %configure
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_datadir}/locale/pl/LC_MESSAGES
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 # install pl locale
59 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/locale/pl/LC_MESSAGES
60
61 # no -> nb
62 mv $RPM_BUILD_ROOT%{_datadir}/locale/{no,nb}
63
64 %find_lang %{name}
65
66 # kde3 file association, shared-mime-info should be sufficant nowadays
67 %{__rm} $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/x-openbox-theme.desktop
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 %update_desktop_database
74 %update_mime_database
75
76 %postun
77 %update_mime_database
78
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc AUTHORS README
82 %attr(755,root,root) %{_bindir}/obconf
83 %{_datadir}/%{name}
84 %{_desktopdir}/obconf.desktop
85 %{_pixmapsdir}/obconf.png
86 %{_datadir}/mime/packages/obconf.xml
This page took 0.07992 seconds and 2 git commands to generate.