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