]> git.pld-linux.org Git - packages/libfm.git/blob - libfm.spec
478299bf03f19532547ee2bf64a5d8a7303f4843
[packages/libfm.git] / libfm.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # disable gtk-doc
4
5 Summary:        Helper library for pcmanfm
6 Summary(pl.UTF-8):      Biblioteka pomocnicza do pcmanfm
7 Name:           libfm
8 Version:        0.1.17
9 Release:        2
10 License:        GPL v2+
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/pcmanfm/%{name}-%{version}.tar.gz
13 # Source0-md5:  a97e03d973e6ac727f28d0934d6c9ad5
14 Patch0:         %{name}-link.patch
15 Patch1:         mate-desktop.patch
16 URL:            http://pcmanfm.sourceforge.net/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  gettext-devel
20 BuildRequires:  glib2-devel >= 1:2.27.0
21 BuildRequires:  gtk+2-devel
22 %{?with_apidocs:BuildRequires:  gtk-doc}
23 BuildRequires:  intltool >= 0.40.0
24 BuildRequires:  libtool
25 BuildRequires:  menu-cache-devel
26 BuildRequires:  pkgconfig
27 Requires(post,postun):  /sbin/ldconfig
28 Requires(post,postun):  shared-mime-info
29 Requires:       glib2 >= 1:2.27.0
30 # in case someone want to split this package into smaller ones
31 Provides:       libfm-gtk
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 Helper library for pcmanfm.
36
37 %description -l pl.UTF-8
38 Biblioteka pomocnicza dla pcmanfm
39
40 %package devel
41 Summary:        Header files and libraries for libfm development
42 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja do libfm
43 Group:          Development/Libraries
44 Requires:       %{name} = %{epoch}:%{version}-%{release}
45 Provides:       libfm-gtk-devel
46
47 %description devel
48 This package contains the header files needed to develop programs that
49 use these libfm.
50
51 %description devel -l pl.UTF-8
52 Pakiet zawiera pliki nagłówkowe potrzebne do rozwoju oprogramowania
53 korzystającego z libfm.
54
55 %package static
56 Summary:        Static library for libfm development
57 Summary(pl.UTF-8):      Biblioteka statyczna do libfm
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
60
61 %description static
62 This package contains the header files and libraries needed to develop
63 programs that use these libfm.
64
65 %description static -l pl.UTF-8
66 Pakiet zawiera pliki nagłówkowe potrzebne do rozwoju oprogramowania
67 korzystającego z libfm.
68
69 %package apidocs
70 Summary:        LIBFM API documentation
71 Summary(pl.UTF-8):      Dokumentacja API LIBFM
72 Group:          Documentation
73 Requires:       gtk-doc-common
74
75 %description apidocs
76 LIBFM API documentation.
77
78 %description apidocs -l pl.UTF-8
79 Dokumentacja API LIBFM.
80
81 %prep
82 %setup -q
83 %patch0 -p1
84 %patch1 -p1
85
86 # docs dir missing in tarball, but configure.ac references it
87 install -d docs/reference/libfm
88 touch docs/Makefile.in
89 touch docs/reference/Makefile.in
90 touch docs/reference/libfm/Makefile.in
91
92 %build
93 %configure \
94         %{!?with_apidocs:--enable-gtk-doc=no} \
95         %{?with_apidocs:--with-html-dir=%{_gtkdocdir}}
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100 %{__make} install \
101         INSTALL_DATA="install -p -m 644" \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 # pkg-config present, so drop .la
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfm.la
106 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfm-gtk.la
107
108 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tt_RU
109
110 %find_lang %{name}
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post
116 /sbin/ldconfig
117 %update_mime_database
118
119 %postun
120 /sbin/ldconfig
121 %update_mime_database
122
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS TODO
126 %dir /etc/xdg/libfm
127 %config(noreplace) %verify(not md5 mtime size) /etc/xdg/libfm/libfm.conf
128 %attr(755,root,root) %{_libdir}/libfm.so.*.*.*
129 %attr(755,root,root) %ghost %{_libdir}/libfm.so.1
130 %{_datadir}/libfm
131 %{_datadir}/mime/packages/libfm.xml
132
133 # -gtk
134 %config(noreplace) %verify(not md5 mtime size) /etc/xdg/libfm/pref-apps.conf
135 %attr(755,root,root) %{_bindir}/libfm-pref-apps
136 %attr(755,root,root) %{_libdir}/libfm-gtk.so.*.*.*
137 %attr(755,root,root) %ghost %{_libdir}/libfm-gtk.so.1
138 %{_desktopdir}/libfm-pref-apps.desktop
139
140 %files devel
141 %defattr(644,root,root,755)
142 %{_includedir}/libfm
143 %{_libdir}/libfm-gtk.so
144 %{_libdir}/libfm.so
145 %{_pkgconfigdir}/libfm-gtk.pc
146 %{_pkgconfigdir}/libfm.pc
147
148 %files static
149 %defattr(644,root,root,755)
150 %{_libdir}/libfm-gtk.a
151 %{_libdir}/libfm.a
152
153 %if %{with apidocs}
154 %files apidocs
155 %defattr(644,root,root,755)
156 %{_gtkdocdir}/libfm
157 %endif
This page took 0.054486 seconds and 2 git commands to generate.