]>
Commit | Line | Data |
---|---|---|
baa77069 JB |
1 | # |
2 | # Conditional build: | |
0a0400fe | 3 | %bcond_with bluetooth # Bluetooth support |
baa77069 JB |
4 | %bcond_without caja # Caja (mate-file-manager) extension |
5 | # | |
6 | Summary: User-level file sharing for MATE desktop | |
7 | Summary(pl.UTF-8): Współdzielenie plików na poziomie użytkownika dla środowiska MATE | |
8 | Name: mate-user-share | |
26b971b4 | 9 | Version: 1.8.0 |
0a0400fe | 10 | Release: 2 |
baa77069 JB |
11 | License: GPL v2+ |
12 | Group: X11/Applications | |
26b971b4 JP |
13 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 3a2a12991a7109c304c79365d56a523f | |
baa77069 | 15 | URL: http://mate-desktop.org/ |
26b971b4 | 16 | %{?with_caja:BuildRequires: caja-devel} |
baa77069 JB |
17 | BuildRequires: dbus-devel >= 1.1.1 |
18 | BuildRequires: dbus-glib-devel | |
19 | BuildRequires: docbook-dtd412-xml | |
20 | BuildRequires: gettext-devel >= 0.10.40 | |
21 | BuildRequires: glib2-devel >= 1:2.26.0 | |
22 | BuildRequires: gnome-doc-utils | |
23 | BuildRequires: gtk+2-devel >= 2:2.12.0 | |
24 | BuildRequires: intltool >= 0.35.0 | |
25 | BuildRequires: libcanberra-gtk-devel | |
26 | BuildRequires: libnotify-devel >= 0.7.0 | |
27 | BuildRequires: libselinux-devel | |
28 | BuildRequires: libunique-devel >= 1.0 | |
29 | %{?with_bluetooth:BuildRequires: mate-bluetooth-devel >= 1.2.0} | |
baa77069 JB |
30 | BuildRequires: pkgconfig |
31 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
32 | Requires(post,postun): glib2 >= 1:2.26.0 | |
33 | Requires(post,postun): gtk-update-icon-cache | |
34 | Requires: apache >= 2.2 | |
35 | Requires: apache-mod_auth_digest >= 2.2 | |
36 | Requires: apache-mod_authn_file >= 2.2 | |
37 | Requires: apache-mod_authz_groupfile >= 2.2 | |
38 | Requires: apache-mod_authz_user >= 2.2 | |
39 | Requires: apache-mod_dav >= 2.2 | |
40 | Requires: apache-mod_dnssd >= 0.6 | |
41 | Requires: glib2 >= 1:2.26.0 | |
42 | Requires: gtk+2 >= 2:2.12.0 | |
43 | Requires: libnotify >= 0.7.0 | |
44 | %{?with_bluetooth:Requires: mate-bluetooth-libs >= 1.2.0} | |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
46 | ||
47 | %description | |
48 | mate-user-share is a small package that binds together various free | |
49 | software projects to bring easy to use user-level file sharing to the | |
50 | masses. | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | mate-user-share to mały pakiet, łączący kilka wolnodostępnych | |
54 | projektów, aby zapewnić łatwy sposób współdzielenia plików na poziomie | |
55 | użytkownika dostępny dla każdego. | |
56 | ||
26b971b4 | 57 | %package -n caja-extension-user-share |
baa77069 JB |
58 | Summary: Share extension for Caja (MATE file manager) |
59 | Summary(pl.UTF-8): Rozszerzenie współdzielenia plików dla zarządcy plików Caja | |
60 | Group: X11/Applications | |
61 | Requires: %{name} = %{version}-%{release} | |
26b971b4 | 62 | Requires: caja |
baa77069 | 63 | |
26b971b4 | 64 | %description -n caja-extension-user-share |
baa77069 JB |
65 | Share (user-level file sharing) extension for Caja (MATE file |
66 | manager). | |
67 | ||
26b971b4 | 68 | %description -n caja-extension-user-share -l pl.UTF-8 |
baa77069 JB |
69 | Rozszerzenie share (pozwalające na współdzielenie plików na poziomie |
70 | użytkownika) dla zarządcy plików Caja, przeznaczonego dla środowiska | |
71 | MATE. | |
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | ||
76 | %build | |
77 | %configure \ | |
78 | %{!?with_bluetooth:--disable-bluetooth} \ | |
79 | --disable-schemas-compile \ | |
80 | --disable-silent-rules \ | |
81 | --with-httpd=/usr/sbin/httpd \ | |
82 | --with-modules-path=/etc/httpd/modules | |
83 | ||
84 | %{__make} | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | %if %{with caja} | |
92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0/*.la | |
93 | %endif | |
94 | ||
95 | # mate < 1.5 did not exist in PLD, avoid dependency on mate-conf | |
96 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-user-share.convert | |
97 | ||
26b971b4 JP |
98 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn |
99 | ||
100 | %find_lang %{name} --with-mate --with-omf | |
baa77069 JB |
101 | |
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post | |
106 | %glib_compile_schemas | |
107 | %update_icon_cache hicolor | |
108 | ||
109 | %postun | |
110 | %glib_compile_schemas | |
111 | %update_icon_cache hicolor | |
112 | ||
113 | %files -f %{name}.lang | |
114 | %defattr(644,root,root,755) | |
115 | %doc ChangeLog NEWS README | |
116 | %attr(755,root,root) %{_bindir}/mate-file-share-properties | |
117 | %attr(755,root,root) %{_libexecdir}/mate-user-share | |
118 | /etc/xdg/autostart/mate-user-share-obexftp.desktop | |
119 | /etc/xdg/autostart/mate-user-share-obexpush.desktop | |
120 | /etc/xdg/autostart/mate-user-share-webdav.desktop | |
121 | %{_datadir}/glib-2.0/schemas/org.mate.FileSharing.gschema.xml | |
122 | %{_datadir}/mate-user-share | |
123 | %{_desktopdir}/mate-user-share-properties.desktop | |
124 | %{_iconsdir}/hicolor/*x*/apps/mate-obex-server.png | |
125 | %{_mandir}/man1/mate-file-share-properties.1* | |
126 | ||
127 | %if %{with caja} | |
26b971b4 | 128 | %files -n caja-extension-user-share |
baa77069 JB |
129 | %defattr(644,root,root,755) |
130 | %attr(755,root,root) %{_libdir}/caja/extensions-2.0/libcaja-share-extension.so | |
131 | %endif |